Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Mapbox default token warning showing up all the time #5191

Merged
merged 1 commit into from
Apr 11, 2017

Conversation

kalmykov
Copy link

@kalmykov kalmykov commented Apr 10, 2017

This PR fixes an error made in #4749 : MapboxImageryProvider checks for parameter options.key instead of options.accessToken (this is probably just copy-paste from BingImageryProvider) for detecting usage of default access token. This results in permanent access token warning, no matter which token you use.

Temporary workaround for this is to pass 2 parameters, both accessToken and key , with same value.

I've sent CLA back in January 2016. I can re-send it if you need.

@kalmykov kalmykov changed the title Fix Mapbox default warning message showing up all the time Fix Mapbox default token warning showing up all the time Apr 10, 2017
@hpinkos
Copy link
Contributor

hpinkos commented Apr 11, 2017

Good catch @kalmykov, thanks!

@hpinkos hpinkos merged commit 327ce32 into CesiumGS:master Apr 11, 2017
@hpinkos
Copy link
Contributor

hpinkos commented Apr 11, 2017

Added a note to CHANGES in 3115443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants