Skip to content

Commit faf2100

Browse files
committed
re-add logic for point type geometry
1 parent 41d0403 commit faf2100

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pygeoapi/templates/collections/items/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,17 @@ <h1>{% for l in data['links'] if l.rel == 'collection' %} {{ l['title'] }} {% en
171171
layer.bindPopup(html);
172172
}
173173
});
174+
{% if data['features'][0]['geometry']['type'] == 'Point' %}
174175
var markers = L.markerClusterGroup({
175176
disableClusteringAtZoom: 9,
176177
chunkedLoading: true,
177178
chunkInterval: 500,
178179
});
179180
markers.clearLayers().addLayer(items);
180181
map.addLayer(markers);
182+
{% else %}
183+
map.addLayer(items);
184+
{% endif %}
181185

182186
map.fitBounds(items.getBounds());
183187
</script>

0 commit comments

Comments
 (0)