mapbox / mapbox/mapbox-maps-flutter

how to add Raster source along with basic auth

Open
#431 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
380
Forks
204
PR merge metrics
No merged PRs in 30d

Description

sometime rastersource WMS is behind some auth. basic auth is a common one.

I don't see any example to do this. not in docs, source code, test.

Closest

https://github.com/mapbox/mapbox-maps-flutter/blob/e3f17cdf9afb463c048842712f584d26b82845d2/example/integration_test/style/layer/raster_layer_test.dart#L19C1-L24C9

What is basic auth like

on js lib, we use transformRequest i don't know if we have api to do the same thing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with example/integration_test/style/layer/raster_layer_test.dart, especially lines 19-24, and compare the requested behavior with the linked JavaScript transformRequest approach. Determine whether the Flutter API already exposes a way to add Basic Authentication to a WMS Raster source; done means the supported approach is documented or the missing capability is clearly scoped.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.