fix: do not export layer ids in umap backup (#2600)

This commit is contained in:
David Larlet 2025-04-04 11:54:30 -04:00 committed by GitHub
commit fd8915355e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -298,6 +298,7 @@ class Map(NamedModel):
with datalayer.geojson.open("rb") as f:
layer = json.loads(f.read())
if datalayer.settings:
datalayer.settings.pop("id", None)
layer["_umap_options"] = datalayer.settings
datalayers.append(layer)
umapjson["layers"] = datalayers