Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Jun 5, 2019
1 parent f424790 commit c24497f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mapbox/mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ export default class Mapbox {
// Step3: update style and call onload again
if (props.mapStyle) {
this._map.setStyle(props.mapStyle, {
// 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 c24497f

Please sign in to comment.