We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41d0403 commit faf2100Copy full SHA for faf2100
pygeoapi/templates/collections/items/index.html
@@ -171,13 +171,17 @@ <h1>{% for l in data['links'] if l.rel == 'collection' %} {{ l['title'] }} {% en
171
layer.bindPopup(html);
172
}
173
});
174
+ {% if data['features'][0]['geometry']['type'] == 'Point' %}
175
var markers = L.markerClusterGroup({
176
disableClusteringAtZoom: 9,
177
chunkedLoading: true,
178
chunkInterval: 500,
179
180
markers.clearLayers().addLayer(items);
181
map.addLayer(markers);
182
+ {% else %}
183
+ map.addLayer(items);
184
+ {% endif %}
185
186
map.fitBounds(items.getBounds());
187
</script>
0 commit comments