Modifiche per il documento Homeopaths
Ultima modifica di Jip-jan Alunkel il marzo 14, 20:13
Dalla versione 8.19
modificato da Jip-jan Alunkel
il dicembre 08, 00:31
il dicembre 08, 00:31
Cambia il commento:
Renamed from xwiki:practices.WebHome
Alla 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
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7,17 +7,34 @@ 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> 10 10 <div id="homeopaths_map"></div> 11 11 12 12 <script> 13 -var map = L.map('homeopaths_map').setView([ 0, 0], 2);14 -L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { 16 + var map = L.map('homeopaths_map').setView([18, 10], 2); 17 + L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { 15 15 maxZoom: 19, 16 16 attribution: '' 17 -}).addTo(map); 18 -map.attributionControl.setPrefix(''); 20 + }).addTo(map); 21 + map.attributionControl.setPrefix(''); 22 + var markers = [ 23 + [ -0.1244324, 51.5006728, "Big Ben" ], 24 + [ -0.119623, 51.503308, "London Eye" ], 25 + [ -0.1279688, 51.5077286, "Nelson's Column<br><a href=\"https://en.wikipedia.org/wiki/Nelson's_Column\">wp</a>" ] 26 + ]; 27 + for (var i=0; i<markers.length; i++) { 28 + let lon = markers[i][0], 29 + lat = markers[i][1], 30 + popupText = markers[i][2], 31 + markerLocation = new L.LatLng(lat, lon), 32 + marker = new L.Marker(markerLocation); 33 + map.addLayer(marker); 34 + marker.bindPopup(popupText); 35 + } 19 19 </script> 20 - 37 +<h2>Add your practice to the map</h2> 21 21 #set($form_start = { 22 22 "id": "homeoworld_form", 23 23 "product": "practice",