Selaa lähdekoodia

enable markerclustering on map #2622

bach 2 kuukautta sitten
vanhempi
commit
7d4acf9e25
2 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 1 0
      config/sync/core.extension.yml
  2. 5 0
      config/sync/views.view.projets.yml

+ 1 - 0
config/sync/core.extension.yml

@@ -77,6 +77,7 @@ module:
   language: 0
   layout_discovery: 0
   leaflet: 0
+  leaflet_markercluster: 0
   leaflet_more_maps: 0
   leaflet_more_markers: 0
   leaflet_views: 0

+ 5 - 0
config/sync/views.view.projets.yml

@@ -1386,6 +1386,11 @@ display:
             html: '<div class="lmm-icon [node:field_map_marker:classes]">[node:field_map_marker:icon]</div>'
             html_class: leaflet-map-divicon
             circle_marker_options: '{"radius":5,"color":"{{ views_conditional_field }}","fillColor":"{{ views_conditional_field }}","fillOpacity":0.5}'
+          leaflet_markercluster:
+            control: true
+            include_path: true
+            options: '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds":false}'
+            excluded: '0'
           fullscreen:
             control: false
             options: '{"position":"topleft","pseudoFullscreen":false}'