Skip to content

Special mapboxAccessToken case for Atlas users #919

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

Merged
merged 1 commit into from
Sep 8, 2016

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Sep 8, 2016

This PR makes sure that plotly.js does not attempt to reach the mapbox public server when users are connected to a Mapbox Atlas server.

- setting mapboxAccessToken to '', guarantees that plotly.js
  will not attempt to make request to the public mapbox server
  regardless of what layout.mapbox.accesstoken is set to.
@etpinard etpinard added bug something broken status: reviewable labels Sep 8, 2016
@etpinard etpinard added this to the v1.18.0 milestone Sep 8, 2016
'See https://www.mapbox.com/developers/api/#access-tokens'
].join(' ');

Plotly.plot(gd, [{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, because there's an error thrown we can't catch yr '' return from plot, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit, ^^ sorry, that doesn't make sense. Ignore.

@theengineear
Copy link
Contributor

Cool! findAccessToken looks nice and centralized. 💃!

@etpinard etpinard merged commit ab51c36 into master Sep 8, 2016
@etpinard etpinard deleted the mapbox-no-request-config branch September 8, 2016 19:33
etpinard added a commit that referenced this pull request Sep 8, 2016
Special mapboxAccessToken case for Atlas users
@etpinard etpinard removed this from the v1.18.0 milestone Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants