parent
001b79795a
commit
75326aa6ee
1 changed files with 1 additions and 0 deletions
|
@ -905,6 +905,7 @@ L.U.Map.include({
|
||||||
if (importedData.geometry) this.options.center = this.latLng(importedData.geometry)
|
if (importedData.geometry) this.options.center = this.latLng(importedData.geometry)
|
||||||
const self = this
|
const self = this
|
||||||
importedData.layers.forEach((geojson) => {
|
importedData.layers.forEach((geojson) => {
|
||||||
|
delete geojson._umap_options['id'] // Never trust an id at this stage
|
||||||
const dataLayer = self.createDataLayer(geojson._umap_options)
|
const dataLayer = self.createDataLayer(geojson._umap_options)
|
||||||
dataLayer.fromUmapGeoJSON(geojson)
|
dataLayer.fromUmapGeoJSON(geojson)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue