From 497b9500d00632f5e309a205bcd75aff7adefad6 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 4 May 2018 12:21:03 +0000 Subject: [PATCH] update items map --- pygeoapi/templates/items.html | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/pygeoapi/templates/items.html b/pygeoapi/templates/items.html index 80d6e2b..2c53eba 100644 --- a/pygeoapi/templates/items.html +++ b/pygeoapi/templates/items.html @@ -8,8 +8,8 @@ width: 80%; } #items-map { - width: 400px; - height: 400px; + width: 100%; + height: 600px; } {% endblock %} @@ -19,20 +19,6 @@

{{ data['title'] }}

{{ data['description'] }}

Features JSON

- - - - - -
- - -
-
{% for link in data['links'] %} {% if link['rel'] == 'prev' %} Prev @@ -40,6 +26,7 @@ Next {% endif %} {% endfor %} +
{% endblock %} @@ -55,7 +42,7 @@ var geojson_data = {{ data['features'] |to_json }}; var items = new L.GeoJSON(geojson_data, { onEachFeature: function (feature, layer) { - var html_ = '' + feature.ID + ''; + var html_ = '' + feature.ID + ''; layer.bindPopup(html_); } });