From 71262c652cc2765743bd3cb56b53c92b5b9bc943 Mon Sep 17 00:00:00 2001 From: afabiani Date: Tue, 13 Oct 2020 19:11:33 +0200 Subject: [PATCH] [Fixes #32] Annotations layer not saved and restored correctly when opening a map on Mapstore2 and GeoNode 2.10.3 --- mapstore2_adapter/plugins/geonode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mapstore2_adapter/plugins/geonode.py b/mapstore2_adapter/plugins/geonode.py index d7c2af7..36310ac 100644 --- a/mapstore2_adapter/plugins/geonode.py +++ b/mapstore2_adapter/plugins/geonode.py @@ -463,6 +463,8 @@ def get_overlays(self, viewer, request=None): # Push extraParams into GeoNode layerParams if 'extraParams' in layer and layer['extraParams']: overlay['extraParams'] = layer['extraParams'] + elif 'name' in layer and layer['name'] == 'Annotations': + overlay = layer # Restore the id of ms2 layer if "extraParams" in layer and "msId" in layer["extraParams"]: