You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Configuration of their access token as string resource with key:
R.string.mapbox_access_token
@bleege
you always indicated to me that we should not enforce this.
If this requirement has changed we should update the rest of classes to reflect this.
Leaving a note here, that the previous requirement of having the ApiAccess class in the SDK itself could be removed with introduction of MapboxMapSettings in #4076 . This will cover 99% of our use-cases. (need to double check during implementation of that feature).
To solve this issue, I created configureAndStartMapboxEventManager() startup method that needs to be called first. It's probably not ideal in the long term, but it comes with the big benefit of removing the need for every call to getMapboxEventsManager() to have pass in the Context for every time its used. This is extra helpful in classes that don't have access to Context and would have to be reconfigured to provide it.
The ability to configure the MapboxEventsManager to still use Staging remains, by setting them in AppManifest.
Activity
tobrun commentedon Feb 23, 2016
Leaving a note here, that the previous requirement of having the
ApiAccessclass in the SDK itself could be removed with introduction ofMapboxMapSettingsin #4076 . This will cover 99% of our use-cases. (need to double check during implementation of that feature).bleege commentedon Feb 23, 2016
Yep this needs to be removed. Good catch.
[android] #4077 - Creating configureAndStartMapboxEventManager() to m…
[android] #4077 - Documenting
bleege commentedon Feb 25, 2016
To solve this issue, I created
configureAndStartMapboxEventManager()startup method that needs to be called first. It's probably not ideal in the long term, but it comes with the big benefit of removing the need for every call togetMapboxEventsManager()to have pass in theContextfor every time its used. This is extra helpful in classes that don't have access toContextand would have to be reconfigured to provide it.The ability to configure the MapboxEventsManager to still use Staging remains, by setting them in AppManifest.