Skip to content

Commit

Permalink
GeoNode fails to fetch layers
Browse files Browse the repository at this point in the history
from @gbassiere fix
  • Loading branch information
kikislater authored Jul 1, 2022
1 parent 55a690d commit 660cfdb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions arcrest/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,14 +772,15 @@ def parentLayer(self):
@property
def subLayers(self):
sub_layers = []
for layer in self._json_struct['subLayers']:
if layer.get('parentLayer'):
value = self._get_subfolder("../%s/" % layer['parentLayer']['id'], MapLayer)
sub_layers.append(value)
if layer.get('parentLayerId'):
value = self._get_subfolder("../%s/" % layer['parentLayerId'], MapLayer)
sub_layers.append(value)
return sub_layers
if 'subLayers' in self._json_struct:
for layer in self._json_struct['subLayers']:
if layer.get('parentLayer'):
value = self._get_subfolder("../%s/" % layer['parentLayer']['id'], MapLayer)
sub_layers.append(value)
if layer.get('parentLayerId'):
value = self._get_subfolder("../%s/" % layer['parentLayerId'], MapLayer)
sub_layers.append(value)
return sub_layers
@property
def minScale(self):
return self._json_struct['minScale']
Expand Down

0 comments on commit 660cfdb

Please sign in to comment.