Merge pull request #1163 from umap-project/fix-1042
Pass options at datalayer creation when importing from umap file
This commit is contained in:
commit
d16feca225
1 changed files with 1 additions and 1 deletions
|
@ -1038,7 +1038,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) => {
|
||||||
const dataLayer = self.createDataLayer()
|
const dataLayer = self.createDataLayer(geojson._umap_options)
|
||||||
dataLayer.fromUmapGeoJSON(geojson)
|
dataLayer.fromUmapGeoJSON(geojson)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue