From 2c9ced081cbfc8e99dca4606457e12fcf71f6c50 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Fri, 14 Feb 2014 12:02:47 +0100 Subject: [PATCH] [CARTES] +objet gis 'groupe_mots' --- json/gis_groupe_mots.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 json/gis_groupe_mots.html diff --git a/json/gis_groupe_mots.html b/json/gis_groupe_mots.html new file mode 100644 index 0000000..d2b4483 --- /dev/null +++ b/json/gis_groupe_mots.html @@ -0,0 +1,32 @@ + + {"type": "Feature", + "geometry": {"type": "Point", "coordinates": [#LON, #LAT]}, + "id":"#ID_GIS", + "properties": { + "title":[(#TITRE_GIS*|sinon{#NOM_SITE*}|supprimer_numero|concat{ + '', + } + json_encode)], + [(#SET{descriptif, [(#DESCRIPTIF_GIS|sinon{#DESCRIPTIF}| + concat{ + #ADRESSE_GIS, + '
', #CODE_POSTAL #VILLE, + '
', #NOM_SITE #URL_SITE, '', + '

', #TITRE_MOT, '', + } + |json_encode)]})] + "description":[(#GET{descriptif})][(#SET{logo_doc,''})] + [(#LOGO_MOT|oui) + [(#SET{logo_doc,#LOGO_MOT|image_passe_partout{25,41}|image_recadre{25,41}})]] + [(#LOGO_MOT|non) + [(#CHEMIN{images/marker_defaut.png}|oui) + [(#SET{logo_doc,#CHEMIN{images/marker_defaut.png}|image_passe_partout{32,32}|image_recadre{32,32}})] + ]] + [(#GET{logo_doc}|oui) + #SET{icon_w,#GET{logo_doc}|extraire_attribut{src}|largeur} + #SET{icon_h,#GET{logo_doc}|extraire_attribut{src}|hauteur} + [,"icon": (#GET{logo_doc}|extraire_attribut{src}|url_absolue|json_encode)], + "icon_size": \[[(#GET{icon_w})],[(#GET{icon_h})]\], + "icon_anchor": \[[(#GET{icon_w}|div{2})],[(#GET{icon_h})]\], + "popup_anchor": \[1,[-(#GET{icon_h}|div{1.2})]\]] + }} -- 2.20.1