mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: do not export layer ids in umap backup (#2600)
This commit is contained in:
commit
fd8915355e
1 changed files with 1 additions and 0 deletions
|
@ -298,6 +298,7 @@ class Map(NamedModel):
|
||||||
with datalayer.geojson.open("rb") as f:
|
with datalayer.geojson.open("rb") as f:
|
||||||
layer = json.loads(f.read())
|
layer = json.loads(f.read())
|
||||||
if datalayer.settings:
|
if datalayer.settings:
|
||||||
|
datalayer.settings.pop("id", None)
|
||||||
layer["_umap_options"] = datalayer.settings
|
layer["_umap_options"] = datalayer.settings
|
||||||
datalayers.append(layer)
|
datalayers.append(layer)
|
||||||
umapjson["layers"] = datalayers
|
umapjson["layers"] = datalayers
|
||||||
|
|
Loading…
Reference in a new issue