mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix style diff warning when reusing map (#816)
This commit is contained in:
parent
435bb15cb6
commit
e6cce42477
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user