Skip to content

React mapbox style #4720

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 3 commits into from
Apr 6, 2020
Merged

React mapbox style #4720

merged 3 commits into from
Apr 6, 2020

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Apr 2, 2020

Fixes #4719.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Apr 2, 2020
@@ -151,7 +151,7 @@ proto.updateMap = function(calcData, fullLayout, resolve, reject) {
var promises = [];
var styleObj = getStyleObj(opts.style);

if(self.styleObj.id !== styleObj.id) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

At first I was concerned about order of keys:

JSON.stringify({a: 1, b: 2}) !== JSON.stringify({b: 2, a: 1})

But I see we're making styleObj in a predictable order in the getStyleObj function, so this should be robust 🎉

self.traceHash = [];
self.layerList = {};
self.traceHash = {};
self.layerList = [];
Copy link
Collaborator

Choose a reason for hiding this comment

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

😂

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃

@archmoj archmoj merged commit 77f576c into master Apr 6, 2020
@archmoj archmoj deleted the fix4719-mapbox-react-style branch April 6, 2020 19:28
@archmoj archmoj added this to the v1.54.0 milestone Apr 20, 2020
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.

Fail to react to tiles in mapbox.style.sources
2 participants