Modifiche per il documento Homeopaths
Ultima modifica di Jip-jan Alunkel il marzo 14, 20:13
Dalla versione 8.25
modificato da Jip-jan Alunkel
il dicembre 08, 01:52
il dicembre 08, 01:52
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,13 +7,10 @@ 7 7 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false})) 8 8 9 9 {{html wiki="false" clean="false"}} 10 -<p> 11 -All about homeopaths. 12 -</p> 13 13 <div id="homeopaths_map"></div> 14 14 15 15 <script> 16 - var map = L.map('homeopaths_map').setView([ 18,10], 2);13 + var map = L.map('homeopaths_map').setView([20, 0], 2); 17 17 L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { 18 18 maxZoom: 19, 19 19 attribution: '' ... ... @@ -25,16 +25,16 @@ 25 25 [ -0.1279688, 51.5077286, "Nelson's Column<br><a href=\"https://en.wikipedia.org/wiki/Nelson's_Column\">wp</a>" ] 26 26 ]; 27 27 for (var i=0; i<markers.length; i++) { 28 - letlon = markers[i][0],29 - ,30 - ,31 - ,32 - 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); 33 33 map.addLayer(marker); 34 34 marker.bindPopup(popupText); 35 35 } 36 36 </script> 37 - <h2>Add your practice to the map</h2>34 + 38 38 #set($form_start = { 39 39 "id": "homeoworld_form", 40 40 "product": "practice",