Skip to content

Commit

Permalink
Fixed error in time dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
kappu committed Nov 22, 2018
1 parent 2cf1b30 commit 648cff1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mapstore2_adapter/plugins/geonode.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,19 +338,19 @@ def get_overlays(self, viewer, request=None):
return (overlays, selected)

def get_layer_dimensions(self, dimensions):
gs = getattr(settings, "GEOSERVER_PUBLIC_LOCATION", "")
url = gs["source"]["url"]
url = getattr(settings, "GEOSERVER_PUBLIC_LOCATION", "")
if url.endswith('ows'):
url = url[:-3]
url += "gwc/service/wmts"
dim = []
for attr, value in dimensions.items():
if attr == "time":
nVal = {"name": attr, "source": {"type": "multidim-extension", "url": url + "gwc/servcie/wmts"}}
nVal = {"name": attr, "source": {"type": "multidim-extension", "url": url}}
dim.append(nVal)
else:
value["name"] = attr
dim.append(value)
return dimensions
return dim
def get_center_and_zoom(self, view_map, overlay):
center = {
"x": get_valid_number(overlay['bbox']['bounds']['minx'] +
Expand Down

0 comments on commit 648cff1

Please sign in to comment.