source: spip-zone/_plugins_/gis/branches/v2/json/gis_articles.html @ 55738

Last change on this file since 55738 was 55738, checked in by brunobergot@…, 12 years ago

éviter un problème avec les apostrophes sur le label des points (l'étoile nous permet de ne pas générer d'entité html)

File size: 1.1 KB
Line 
1                <BOUCLE_art(ARTICLES){id_article ?}{id_rubrique ?}{id_secteur ?}{id_mot ?}{id_auteur ?}{recherche ?}{0, #ENV{limit}}{","}><BOUCLE_gis(GIS){id_article}{","}>
2                {"type": "Feature",
3                "geometry": {"type": "Point", "coordinates": [#LON, #LAT]},
4                "id":"#ID_GIS",
5                "title":[(#TITRE*|sinon{#_art:TITRE*}|supprimer_numero|json_encode)],
6                "description":[(#DESCRIPTIF|sinon{#_art:DESCRIPTIF}|json_encode)][(#SET{logo_doc,''})]
7                [(#LOGO_GIS|oui)
8                [(#SET{logo_doc,#LOGO_GIS|image_passe_partout{32,32}|image_recadre{32,32}})]]
9                [(#LOGO_GIS|non)
10                [(#CHEMIN{images/marker_defaut.png}|oui)
11                        [(#SET{logo_doc,#CHEMIN{images/marker_defaut.png}|image_passe_partout{32,32}|image_recadre{32,32}})]
12                ]]
13                [(#GET{logo_doc}|oui)
14                #SET{icon_w,#GET{logo_doc}|extraire_attribut{src}|largeur}
15                #SET{icon_h,#GET{logo_doc}|extraire_attribut{src}|hauteur}
16                #SET{icon_anchorPoint,''}
17                [,"icon": (#GET{logo_doc}|extraire_attribut{src}|url_absolue|json_encode)],
18                "icon_size": [(#VAL{91}|chr)]#GET{icon_w},#GET{icon_h}[(#VAL{93}|chr)],
19                "icon_anchor": [(#VAL{91}|chr)][(#GET{icon_w}|div{2})],[(#GET{icon_h})][(#VAL{93}|chr)]
20                ]}</BOUCLE_gis></BOUCLE_art>
Note: See TracBrowser for help on using the repository browser.