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 style diff warning when reusing map #816

Merged
merged 3 commits into from
Jun 5, 2019
Merged

Fix style diff warning when reusing map #816

merged 3 commits into from
Jun 5, 2019

Conversation

Pessimistress
Copy link
Collaborator

Always set style from scratch when creating a new Mapbox instance from a recycled Map

@coveralls
Copy link

coveralls commented Jun 4, 2019

Coverage Status

Coverage increased (+11.6%) to 52.112% when pulling c24497f on x/reuse into 8e317bc on master.

@@ -271,7 +271,7 @@ export default class Mapbox {
// Step3: update style and call onload again
if (props.mapStyle) {
this._map.setStyle(props.mapStyle, {
diff: true
diff: false

Choose a reason for hiding this comment

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

add your comment here.

@Pessimistress Pessimistress merged commit 4a90bd7 into master Jun 5, 2019
@Pessimistress Pessimistress deleted the x/reuse branch December 19, 2019 04:03
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.

None yet

3 participants