mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Map box is not integrated!

Open Usamait13 opened this issue 1 year ago • 1 comments

i am trying to implement mapbox in flutter app. I have followed all the steps but i am unable to load mapbox in my app it gives the following error.

`[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Using MapView, MapSurface, Snapshotter or other Map components requires providing a valid access token when inflating or creating the map. Provide the token by either:

  1. Creating a mapbox_access_token string resource.
  2. Or programmatically calling MapboxOptions.accessToken = <your_access_token>. The access token parameter is required when using a Mapbox service. Please see https://www.mapbox.com/help/create-api-access-token/ to learn how to create one. More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens., null, com.mapbox.maps.MapboxConfigurationException: Using MapView, MapSurface, Snapshotter or other Map components requires providing a valid access token when inflating or creating the map. Provide the token by either:
  3. Creating a mapbox_access_token string resource.
  4. Or programmatically calling MapboxOptions.accessToken = <your_access_token>. The access token parameter is required when using a Mapbox service. Please see https://www.mapbox.com/help/create-api-access-token/ to learn how to create one. More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens.`

Usamait13 avatar Dec 28 '24 18:12 Usamait13

Happy New Year @Usamait13! Could you provide how did you set the access token to our Maps service, did you follow the steps here but still it does not work?

maios avatar Jan 02 '25 10:01 maios