Skip to content

React mapbox style#4720

Merged
archmoj merged 3 commits into
masterfrom
fix4719-mapbox-react-style
Apr 6, 2020
Merged

React mapbox style#4720
archmoj merged 3 commits into
masterfrom
fix4719-mapbox-react-style

Conversation

@archmoj

@archmoj archmoj commented Apr 2, 2020

Copy link
Copy Markdown
Contributor

Fixes #4719.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Apr 2, 2020
var promises = [];
var styleObj = getStyleObj(opts.style);

if(self.styleObj.id !== styleObj.id) {

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

😂

@alexcjohnson alexcjohnson left a comment

Copy link
Copy Markdown
Collaborator

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