Commit 8d74281c authored by Baptiste Jonglez's avatar Baptiste Jonglez

map: disable clustering when map is at maximum zoom level

parent dff0df7a
......@@ -80,7 +80,8 @@ style="padding:0px;height:calc(100vh - 50px)"
var markerClusters = L.markerClusterGroup({
spiderfyOnMaxZoom: false,
showCoverageOnHover: false,
maxClusterRadius: 20
maxClusterRadius: 20,
disableClusteringAtZoom: 19
});
var allMarkers = [[{{ located_point_lat }}, {{ located_point_lon }}]];
// Legend
......
......@@ -80,7 +80,8 @@
var markerClusters = L.markerClusterGroup({
spiderfyOnMaxZoom: false,
showCoverageOnHover: false,
maxClusterRadius: 20
maxClusterRadius: 20,
disableClusteringAtZoom: 19
});
var crosshairIcon = L.icon({
iconUrl: '{% static "panorama/img/marker-blue.png" %}',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment