Modifiche per il documento Homeopaths

Ultima modifica di Jip-jan Alunkel il marzo 14, 20:13

Dalla versione 8.9
modificato da Jip-jan Alunkel
il dicembre 06, 03:29
Cambia il commento: Renamed from xwiki:practices.WebHome
Alla versione 8.23
modificato da Jip-jan Alunkel
il dicembre 08, 01:49
Cambia il commento: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -6,7 +6,33 @@
6 6  #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
7 7  #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false}))
8 8  
9 -{{html wiki="true" clean="false"}}
9 +{{html wiki="false" clean="false"}}
10 +All about homeopaths.
11 +<div id="homeopaths_map"></div>
12 +
13 +<script>
14 + var map = L.map('homeopaths_map').setView([18, 10], 2);
15 + L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
16 + maxZoom: 19,
17 + attribution: ''
18 + }).addTo(map);
19 + map.attributionControl.setPrefix('');
20 + var markers = [
21 + [ -0.1244324, 51.5006728, "Big Ben" ],
22 + [ -0.119623, 51.503308, "London Eye" ],
23 + [ -0.1279688, 51.5077286, "Nelson's Column<br><a href=\"https://en.wikipedia.org/wiki/Nelson's_Column\">wp</a>" ]
24 + ];
25 + for (var i=0; i<markers.length; i++) {
26 + let lon = markers[i][0],
27 + lat = markers[i][1],
28 + popupText = markers[i][2],
29 + markerLocation = new L.LatLng(lat, lon),
30 + marker = new L.Marker(markerLocation);
31 + map.addLayer(marker);
32 + marker.bindPopup(popupText);
33 + }
34 +</script>
35 +
10 10  #set($form_start = {
11 11   "id": "homeoworld_form",
12 12   "product": "practice",