<script src="[(#CHEMIN{lib/leaflet/dist/leaflet.js}|url_absolue)]" type="text/javascript"></script>
<script src="[(#CHEMIN{lib/leaflet/plugins/Control.FullScreen.js}|url_absolue)]" type="text/javascript"></script>
+<script src="[(#CHEMIN{lib/leaflet/plugins/leaflet.markercluster-src.js}|url_absolue)]" type="text/javascript"></script>
<script>
<BOUCLE_mots_types(MOTS){type = (#ENV{groupe})}>
- var group_#ID_MOT = new L.LayerGroup();
+ var group_#ID_MOT = new L.markerClusterGroup();
var templateIcon = L.Icon.extend({
options: {
iconUrl: '[(#LOGO_MOT||extraire_attribut{src}|url_absolue)]',
[(#ENV{popup}|!={non}|oui)
markerGis.bindPopup("[(#ENV{images}|!={non}|oui)<span style='float: left; width: 45px;'><img src='[(#LOGO_SYNDIC||extraire_attribut{src}|url_absolue)]' alt='' width='100%' height='100%'></span>]<h4>#TITRE</h4>[<p>(#DESCRIPTIF|attribut_html)</p>][(#ENV{images}|!={non}|oui)<span class='spip_documents spip_documents_right' style='float: right; width: 100px;'>\<img src='[(#LOGO_SYNDIC_SURVOL||extraire_attribut{src}|url_absolue)]' alt='' width='100px' height='100%'></span>]#ADRESSE<br/> #CODE_POSTAL #VILLE<br/><a href='#URL_SITE' target='_blank'>#NOM_SITE - #URL_SITE</a><br/><br/><em>Statut: [(#_mots_types:TITRE|supprimer_numero)]</em>");
]
- group_#ID_MOT.addLayer(markerGis)
+ group_#_mots_types:ID_MOT.addLayer(markerGis)
</BOUCLE_coord>
</BOUCLE_sites>
</BOUCLE_mots_types>