forked from MapComplete/MapComplete
Various small bug fixes
This commit is contained in:
commit
5ac035be20
5 changed files with 31 additions and 18 deletions
|
@ -139,6 +139,12 @@ export default class DefaultGUI {
|
|||
features: state.homeLocation,
|
||||
enablePopups: false,
|
||||
})
|
||||
|
||||
state.leafletMap.addCallbackAndRunD(_ => {
|
||||
// Lets assume that all showDataLayers are initialized at this point
|
||||
state.selectedElement.ping()
|
||||
return true;
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ export default class ShowDataLayer {
|
|||
try {
|
||||
this.geoLayer.addData(feat);
|
||||
} catch (e) {
|
||||
console.error("Could not add ", feat, "to the geojson layer in leaflet")
|
||||
console.error("Could not add ", feat, "to the geojson layer in leaflet due to", e, e.stack)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue