[PLUGINS] +clavettes et dependances
[lhc/web/clavette_www.git] / www / plugins / gis / modeles / carte_gis_objet.html
1 [(#REM)
2 S'il y a au moins un point GIS *ou* au moins un fichier de tracé, on affiche une carte.
3 Celle-ci contiendra tous les points liés à l'objet demandé, et tous les tracés joints quelque soit leur format.
4 ]
5
6 #SET{carte,''}
7 #SET{point,non}
8 <BOUCLE_gis(GIS){objet}{id_objet}{0,1}>
9 #SET{carte,oui}
10 #SET{point,oui}
11 </BOUCLE_gis>
12 #SET{kml,#LISTE} #SET{gpx,#LISTE} #SET{json,#LISTE}
13 <BOUCLE_trace(DOCUMENTS){objet}{id_objet}{extension IN gpx,kml,json}>
14 #SET{#EXTENSION, #GET{#EXTENSION}|push{#ID_DOCUMENT}}
15 #SET{carte,oui}
16 </BOUCLE_trace>
17
18 [(#GET{carte}|oui)
19 [(#INCLURE{fond=modeles/carte_gis,
20 env,
21 objet=#ENV{objet},
22 id_objet=#ENV{id_objet},
23 point=#GET{point},
24 geojson=#GET{json},
25 gpx=#GET{gpx},
26 kml=#GET{kml}})]
27 ]