mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix to not save to savedMap when reuseMaps is false (#1555)
This commit is contained in:
parent
0d862a4ce8
commit
e21500aec9
@ -284,7 +284,7 @@ export default class Mapbox {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Mapbox.savedMap) {
|
||||
if (this.props.reuseMaps && !Mapbox.savedMap) {
|
||||
Mapbox.savedMap = this._map;
|
||||
|
||||
// deregister the mapbox event listeners
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user