Modifiche per il documento Homeopaths
Ultima modifica di Jip-jan Alunkel il marzo 14, 20:13
Dalla versione 8.23
modificato da Jip-jan Alunkel
il dicembre 08, 01:49
il dicembre 08, 01:49
Cambia il commento:
Renamed from xwiki:practices.WebHome
Alla versione 8.21
modificato da Jip-jan Alunkel
il dicembre 08, 01:01
il dicembre 08, 01:01
Cambia il commento:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7,11 +7,10 @@ 7 7 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false})) 8 8 9 9 {{html wiki="false" clean="false"}} 10 -All about homeopaths. 11 11 <div id="homeopaths_map"></div> 12 12 13 13 <script> 14 - var map = L.map('homeopaths_map').setView([ 18,10], 2);13 + var map = L.map('homeopaths_map').setView([20, 0], 2); 15 15 L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { 16 16 maxZoom: 19, 17 17 attribution: '' ... ... @@ -23,11 +23,11 @@ 23 23 [ -0.1279688, 51.5077286, "Nelson's Column<br><a href=\"https://en.wikipedia.org/wiki/Nelson's_Column\">wp</a>" ] 24 24 ]; 25 25 for (var i=0; i<markers.length; i++) { 26 - letlon = markers[i][0],27 - ,28 - ,29 - ,30 - 25 + var lon = markers[i][0]; 26 + var lat = markers[i][1]; 27 + var popupText = markers[i][2]; 28 + var markerLocation = new L.LatLng(lat, lon); 29 + var marker = new L.Marker(markerLocation); 31 31 map.addLayer(marker); 32 32 marker.bindPopup(popupText); 33 33 }