Skip to content

Commit

Permalink
[Fixes #32] Annotations layer not saved and restored correctly when o…
Browse files Browse the repository at this point in the history
…pening a map on Mapstore2 and GeoNode 2.10.3
  • Loading branch information
afabiani committed Oct 13, 2020
1 parent 35b609b commit 71262c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mapstore2_adapter/plugins/geonode.py
Expand Up @@ -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"]:
Expand Down

0 comments on commit 71262c6

Please sign in to comment.