Modifiche per il documento Homeopaths

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

Dalla versione 8.28
modificato da Jip-jan Alunkel
il dicembre 08, 13:45
Cambia il commento: Renamed from xwiki:practices.WebHome
Alla versione 8.24
modificato da Jip-jan Alunkel
il dicembre 08, 01:49
Cambia il commento: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -34,7 +34,7 @@
34 34   marker.bindPopup(popupText);
35 35   }
36 36  </script>
37 -<h2>Add your practice to the map</h2>
37 +
38 38  #set($form_start = {
39 39   "id": "homeoworld_form",
40 40   "product": "practice",
XWiki.JavaScriptExtension[0]
Criteri della cache
... ... @@ -1,1 +1,0 @@
1 -forbid
Codice
... ... @@ -1,36 +1,0 @@
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 -
8 - #set($query = $services.query.xwql("from doc.object('homeopaths.Code.homeopathsClass') as caseObj"))
9 - #set($result = $query.execute())
10 - #set($map = {})
11 - #foreach($item in $result)
12 - #set($result_doc = $xwiki.getDocument("${item}"))
13 - #set($result_obj = $result_doc.getObject("homeopaths.Code.homeopathsClass"))
14 - #set($discard = $map.put("${item}", $result_obj.getProperty("latlong").value))
15 - #end
16 - #if($objecttool.allNull($map))
17 - {}
18 - #else
19 - $jsontool.serialize(${map})
20 - #end
21 -
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 - }
36 -
Analizza il contenuto
... ... @@ -1,1 +1,0 @@
1 -Sì
Usa questa estensione
... ... @@ -1,1 +1,0 @@
1 -currentPage
XWiki.StyleSheetExtension[0]
Criteri della cache
... ... @@ -1,1 +1,0 @@
1 -long