Modifiche per il documento Homeopaths

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

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

Summary

Details

XWiki.JavaScriptExtension[0]
Codice
... ... @@ -4,6 +4,21 @@
4 4   attribution: ''
5 5   }).addTo(map);
6 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 +
7 7   var markers = [
8 8   [ -0.1244324, 51.5006728, "Big Ben" ],
9 9   [ -0.119623, 51.503308, "London Eye" ],