source: spip-zone/_plugins_/cartes/trunk/prive/objets/contenu/carte.html @ 96585

Last change on this file since 96585 was 96585, checked in by kent1@…, 3 years ago

Afficher le nom de la couche

  • Property svn:executable set to *
File size: 3.2 KB
Line 
1<BOUCLE_carte(CARTES){id_carte}{statut?}>
2
3[<div class="champ contenu_titre[ (#TITRE*|strlen|?{'',vide})]">
4        <label><:carte:champ_titre_label:> : </label>
5        <span dir="#LANG_DIR" class="#EDIT{titre} titre">(#TITRE)</span>
6</div>]
7
8[<div class="champ contenu_descriptif[ (#TEXTE*|strlen|?{'',vide})]">
9        <label><:carte:champ_texte_label:> : </label>
10        <span dir="#LANG_DIR" class="#EDIT{texte} texte">(#TEXTE)</span>
11</div>]
12
13<div class="champ contenu_layer_defaut">
14        <label><:gis:cfg_lbl_layer_defaut:> : </label>
15        <span dir="#LANG_DIR" class="#EDIT{layer_defaut} layer_defaut">[(#EVAL{$GLOBALS\['gis_layers'\]}|table_valeur{[(#ENV{layer_defaut,[(#LAYER_DEFAUT|sinon{[(#CONFIG{gis/layer_defaut,openstreetmap_mapnik})]})]/nom})]})]</span>
16        [(#INCLURE{fond=modeles/carte_gis_preview,lat=[(#LAT|sinon{0})],lon=[(#LAT|sinon{0})],zoom=[(#ZOOM_DEFAUT|sinon{#CONFIG{gis/zoom,0}})],layer_defaut=[(#LAYER_DEFAUT|sinon{[(#CONFIG{gis/layer_defaut,openstreetmap_mapnik})]})],id_map=layer_defaut})]
17</div>
18
19[<div class="champ contenu_centrage">
20        <label><:carte:legend_centrage:></label>
21        (#LAT|et{#LON}|oui)
22        [(#SET{geojson,[\{"type": "FeatureCollection","features": \[\{"type": "Feature","geometry": \{"type":"Point","coordinates":\[(#LON),[(#LAT)]\]\},"id":"centre","properties": \{\}\}\]\}]})]
23        [(#INCLURE{fond=modeles/carte_gis_preview,lat=#LAT,lon=#LON,zoom=[(#ZOOM_DEFAUT|sinon{#CONFIG{gis/zoom,0}})],geojson=#GET{geojson},id_map=centrage})]
24</div>]
25
26[<div class="champ contenu_zoom_defaut[ (#ZOOM_DEFAUT*|strlen|?{'',vide})]">
27        <label><:carte:champ_zoom_defaut_label:> : </label>
28        <span dir="#LANG_DIR" class="#EDIT{zoom_defaut} zoom_defaut">(#ZOOM_DEFAUT)</span>
29</div>]
30
31[<div class="champ contenu_center_points[ (#CENTER_POINTS|=={on}|?{'',vide})]">
32        (#CENTER_POINTS|=={on}|?{' ',''})
33        <label><:carte:champ_center_points_label:></label>
34</div>]
35[<div class="champ contenu_zoom_min[ (#ZOOM_MIN*|strlen|?{'',vide})]">
36        <label><:carte:champ_zoom_min_label:> : </label>
37        <span dir="#LANG_DIR" class="#EDIT{zoom_min} zoom_min">(#ZOOM_MIN)</span>
38</div>]
39
40[<div class="champ contenu_zoom_max[ (#ZOOM_MAX*|strlen|?{'',vide})]">
41        <label><:carte:champ_zoom_max_label:> : </label>
42        <span dir="#LANG_DIR" class="#EDIT{zoom_max} zoom_max">(#ZOOM_MAX)</span>
43</div>]
44
45[<div class="champ contenu_bounds[ (#GEOMETRY*|strlen|?{'',vide})]">
46        <label><:carte:champ_bounds_label:> : </label>[(#SET{geojson,[(#GEOMETRY|wkt_to_json)]})][(#SET{zoom,[(#ZOOM_DEFAUT|sinon{#CONFIG{gis/zoom,0}})]})]
47        (#GEOMETRY*|strlen|oui)
48        #MODELE{carte_gis_preview,geojson=#GET{geojson},id_map=#ID_CARTE,zoom=#GET{zoom},lat=#LAT,lon=#LON}
49</div>]
50
51[<div class="champ contenu_style_carte[ (#STYLE_CARTE*|strlen|?{'',vide})]">
52        <label><:carte:champ_style_carte_label:> : </label>
53        <span dir="#LANG_DIR" class="#EDIT{style_carte} style_carte">(#STYLE_CARTE)</span>
54</div>]
55
56[<div class="champ contenu_footer_carte[ (#FOOTER_CARTE*|strlen|?{'',vide})]">
57        <label><:carte:champ_footer_carte_label:> : </label>
58        <span dir="#LANG_DIR" class="#EDIT{footer_carte} footer_carte">(#FOOTER_CARTE)</span>
59</div>]
60
61[<div class="champ contenu_descriptif[ (#TEXTE*|strlen|?{'',vide})]">
62        <label><:carte:champ_texte_footer_label:> : </label>
63        <span dir="#LANG_DIR" class="#EDIT{texte} texte">(#TEXTE_FOOTER)</span>
64</div>]
65</BOUCLE_carte>
Note: See TracBrowser for help on using the repository browser.