forked from MapComplete/MapComplete
Fix various bugs; improve UK-addresses theme
This commit is contained in:
parent
e20cf0abfa
commit
8ca9e4f36c
20 changed files with 357 additions and 164 deletions
|
@ -148,11 +148,12 @@ export default class ShowDataLayer {
|
|||
const mp = options.leafletMap.data;
|
||||
|
||||
if(mp === null){
|
||||
return true; // Unregister as the map is destroyed
|
||||
return true; // Unregister as the map has been destroyed
|
||||
}
|
||||
if (mp === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._cleanCount++
|
||||
// clean all the old stuff away, if any
|
||||
if (this.geoLayer !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue