Skip to content

Commit

Permalink
Fix style diff warning when reusing map (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jun 5, 2019
1 parent 8e317bc commit 4a90bd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mapbox/mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ export default class Mapbox {
// Step3: update style and call onload again
if (props.mapStyle) {
this._map.setStyle(props.mapStyle, {
diff: true
// From the user's perspective, there's no "diffing" on initialization
// We always rebuild the style from scratch when creating a new Mapbox instance
diff: false
});
}

Expand Down

0 comments on commit 4a90bd7

Please sign in to comment.