Reputation: 93
I need to use map-box i am sure that all the configurations are fine. but when i run the app the output of the map is like this:
The Map Widget is:
MapboxMap(
accessToken: MAP_BOX_ACCESS_TOKEN,
initialCameraPosition: CameraPosition(
target: LatLng(34.123456789, 34.123456789),
),
onMapCreated: (_) {},
onStyleLoadedCallback: () {},
styleString: MAP_BOX_URL,
),
I am using the library: mapbox_gl
Upvotes: 2
Views: 551
Reputation: 1
The map is present. It is actually zoomed to maximum level. Pinch down to zoom out and you may see the map. You can set the zoom level like this :
MapboxMap(
accessToken:
'<Your Access Token>',
initialCameraPosition: const CameraPosition(
target: LatLng(41.085904, -80.5865985), zoom: 10.0),
),
Upvotes: 0
Reputation: 31
styleString: MAP_BOX_URL, this in your code is not correct, here you have to provide mapbox style url.
Upvotes: 0