diff --git a/pygeoapi/templates/collections/edr/query.html b/pygeoapi/templates/collections/edr/query.html index 367c86bb8..ac7f17d2d 100644 --- a/pygeoapi/templates/collections/edr/query.html +++ b/pygeoapi/templates/collections/edr/query.html @@ -274,7 +274,6 @@ layer.bindPopup(html); } }); - {% if data.type == "FeatureCollection" and data.features and data.features[0]['geometry']['type'] == 'Point' %} var markers = L.markerClusterGroup({ disableClusteringAtZoom: 9, chunkedLoading: true, @@ -282,7 +281,6 @@ }); markers.clearLayers().addLayer(items); map.addLayer(markers); - {% endif %} map.fitBounds(items.getBounds(), {maxZoom: 15}); {% endif %} diff --git a/pygeoapi/templates/collections/items/index.html b/pygeoapi/templates/collections/items/index.html index bb9b48855..d2049becd 100644 --- a/pygeoapi/templates/collections/items/index.html +++ b/pygeoapi/templates/collections/items/index.html @@ -169,7 +169,6 @@

{% for l in data['links'] if l.rel == 'collection' %} {{ l['title'] }} {% en layer.bindPopup(html); } }); - {% if data['features'][0]['geometry']['type'] == 'Point' %} var markers = L.markerClusterGroup({ disableClusteringAtZoom: 9, chunkedLoading: true, @@ -177,9 +176,6 @@

{% for l in data['links'] if l.rel == 'collection' %} {{ l['title'] }} {% en }); markers.clearLayers().addLayer(items); map.addLayer(markers); - {% else %} - map.addLayer(items); - {% endif %} map.fitBounds(items.getBounds());