Closed samderlust closed 10 months ago
Need to follow instruction on how to supply your access tokensOn Nov 1, 2023, at 5:15 PM, Sáng Nguyen @.***> wrote: I got black screen while try to use the mapbox navigation MapBoxNavigationView( options: MapBoxOptions( initialLatitude: 36.1175275, initialLongitude: -115.1839524, zoom: 13.0, tilt: 0.0, bearing: 0.0, enableRefresh: false, alternatives: true, voiceInstructionsEnabled: true, bannerInstructionsEnabled: true, allowsUTurnAtWayPoints: true, mode: MapBoxNavigationMode.drivingWithTraffic, mapStyleUrlDay: "mapbox://styles/mapbox/light-v11", // mapStyleUrlNight: "mapbox://styles/mapbox/dark-v11", units: VoiceUnits.imperial, simulateRoute: true, language: "en", ), onRouteEvent: (event) { debugPrint("EVENT ${event.eventType}"); }, onCreated: (controller) async { mapCtrl.value = controller; await mapCtrl.value?.initialize(); // controller.buildRoute(wayPoints: wayPoints); }, ),
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
@eopeter I've already set up the access key.
Where did you put the Mapbox access token? Do you have the console output when the page loads? Does it work without the MapStyleUrl?
@eopeter i put it in a .netrc
file. and don't have any log to console
it doesn't work without MapStyleUrl too
I've also use mapbox_maps_flutter
in my app
This is what I got in xcode console. not display in flutter console
[Error, maps-core]: {}[Setup]: Failed to load style: HTTP status code 401
[Error, events_service]: Events sending aborted
[Error, events_service]: Events sending aborted
The access token needs to be in your info.plist
yes I put it under <key>MBXAccessToken</key>
@eopeter Do I need a different token for Navigation SDK or can be used same one with Maps SDK
I got black screen while try to use the mapbox navigation