Changes for page Homeopaths
Last modified by Jip-jan Alunkel on March 14, 20:13
From version 8.24
edited by Jip-jan Alunkel
on December 08, 01:49
on December 08, 01:49
Change comment:
Renamed from xwiki:practices.WebHome
To version 8.26
edited by Jip-jan Alunkel
on December 08, 13:34
on December 08, 13:34
Change comment:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -34,7 +34,7 @@ 34 34 marker.bindPopup(popupText); 35 35 } 36 36 </script> 37 - 37 +<h2>Add your practice to the map</h2> 38 38 #set($form_start = { 39 39 "id": "homeoworld_form", 40 40 "product": "practice",
- XWiki.JavaScriptExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +forbid - Code
-
... ... @@ -1,0 +1,21 @@ 1 + var map = L.map('homeopaths_map').setView([18, 10], 2); 2 + L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { 3 + maxZoom: 19, 4 + attribution: '' 5 + }).addTo(map); 6 + map.attributionControl.setPrefix(''); 7 + var markers = [ 8 + [ -0.1244324, 51.5006728, "Big Ben" ], 9 + [ -0.119623, 51.503308, "London Eye" ], 10 + [ -0.1279688, 51.5077286, "Nelson's Column<br><a href=\"https://en.wikipedia.org/wiki/Nelson's_Column\">wp</a>" ] 11 + ]; 12 + for (var i=0; i<markers.length; i++) { 13 + let lon = markers[i][0], 14 + lat = markers[i][1], 15 + popupText = markers[i][2], 16 + markerLocation = new L.LatLng(lat, lon), 17 + marker = new L.Marker(markerLocation); 18 + map.addLayer(marker); 19 + marker.bindPopup(popupText); 20 + } 21 + - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +Yes - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +currentPage
- XWiki.StyleSheetExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +long