Fix to not save to savedMap when reuseMaps is false (#1555)

This commit is contained in:
Ayumu Nozawa 2021-09-07 03:25:05 +09:00 committed by GitHub
parent 0d862a4ce8
commit e21500aec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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