Parcourir la source

Fix missing clustering change on minimap

Baptiste Jonglez il y a 7 ans
Parent
commit
cc57880556
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      panorama/templates/panorama/view.html

+ 2 - 1
panorama/templates/panorama/view.html

@@ -64,7 +64,8 @@
       var markerClusters = L.markerClusterGroup({
       var markerClusters = L.markerClusterGroup({
           spiderfyOnMaxZoom: false,
           spiderfyOnMaxZoom: false,
           showCoverageOnHover: false,
           showCoverageOnHover: false,
-          maxClusterRadius: 20
+          maxClusterRadius: 20,
+          disableClusteringAtZoom: 19
       });
       });
       var panoIcon = L.icon({
       var panoIcon = L.icon({
           iconUrl: '{% static "panorama/img/marker-red.png" %}',
           iconUrl: '{% static "panorama/img/marker-red.png" %}',