Outils pour utilisateurs

Outils du site


geo:carto_ri

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
geo:carto_ri [2017/06/07 19:49] jbpuelgeo:carto_ri [2017/06/07 20:03] (Version actuelle) jbpuel
Ligne 46: Ligne 46:
   
   <!-- Gestion des spots -->   <!-- Gestion des spots -->
 +  var greenIcon = new L.Icon({
 +    iconUrl: 'https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-green.png',
 +    shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
 +    iconSize: [25, 41],
 +    iconAnchor: [12, 41],
 +    popupAnchor: [1, -34],
 +    shadowSize: [41, 41]
 +  });
   var coordo = [];   var coordo = [];
   var nbspots=0;   var nbspots=0;
Ligne 73: Ligne 81:
   sp=1;   sp=1;
   var url_ri = "https://www.auckland.ac.nz/en.html";   var url_ri = "https://www.auckland.ac.nz/en.html";
-  L.marker([coordo[2*sp-2] , coordo[2*sp-1]]).bindPopup("<b>Université d'Auckland</b><br />UMR EFTS<br />Thème : <br /><a href=" + url_ri + ">Lien</a>").addTo(spots);+  L.marker([coordo[2*sp-2] , coordo[2*sp-1]], {icon: greenIcon}).bindPopup("<b>Université d'Auckland</b><br />UMR EFTS<br />Thème : <br /><a href=" + url_ri + ">Lien</a>").addTo(spots);
  
   sp=2;   sp=2;
geo/carto_ri.1496864972.txt.gz · Dernière modification : 2017/06/07 19:49 de jbpuel