You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.9 KiB
HTML
52 lines
1.9 KiB
HTML
#HTTP_HEADER{Content-Type: application/vnd.google-earth.kml+xml;charset=#CHARSET}[(#ENV**{dl}
|
|
|?{#HTTP_HEADER{Content-Disposition: attachment; filename=#CONFIG{gis/nom_fichier_kml}|sinon{gis}|concat{.kml}},''})]<?xml
|
|
version="1.0" encoding="#CHARSET" ?>
|
|
<kml xmlns="http://www.opengis.net/kml/2.2"
|
|
xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<Document>
|
|
[<name>(#NOM_SITE_SPIP|texte_backend)</name>]
|
|
[<description>(#DESCRIPTIF_SITE_SPIP|supprimer_tags|texte_backend)</description>]
|
|
<BOUCLE_gis(GIS gis_liens){id_gis ?}{id_rubrique ?}{id_article ?}{id_breve ?}{id_document ?}{id_mot ?}{id_auteur ?}{id_syndic ?}{recherche ?}{0, #ENV{limit,500}}>
|
|
<Placemark id="#gis[(#ID_GIS)]">
|
|
<name>[(#TITRE|sinon{#INFO_TITRE{#OBJET,#ID_OBJET}}|supprimer_numero|texte_backend)]</name>
|
|
<atom:link rel="related" href="[(#ID_OBJET|generer_url_entite{#OBJET}|url_absolue)]" />
|
|
<description>
|
|
<![CDATA[
|
|
[(#DESCRIPTIF|texte_backend)]
|
|
]]>
|
|
</description>
|
|
[<Point>
|
|
<coordinates>(#LON),[(#LAT)]</coordinates>
|
|
</Point>]
|
|
[(#SET{logo_doc,''})]
|
|
[(#LOGO_GIS|oui)
|
|
[(#SET{logo_doc,#LOGO_GIS|image_passe_partout{28,28}|image_recadre{28,28}|image_recadre{32,32,center}})]]
|
|
[(#LOGO_GIS|non)
|
|
[(#CHEMIN{images/marker_defaut.png}|oui)[
|
|
(#SET{logo_doc,#CHEMIN{images/marker_defaut.png}|image_passe_partout{28,28}|image_recadre{28,28}})]
|
|
]]
|
|
[(#GET{logo_doc}|oui)
|
|
#SET{icon_w,#GET{logo_doc}|extraire_attribut{src}|largeur}
|
|
#SET{icon_h,#GET{logo_doc}|extraire_attribut{src}|hauteur}
|
|
#SET{icon_anchorPoint,''}
|
|
<Style>
|
|
<IconStyle>
|
|
<scale>1.0</scale>
|
|
[<Icon>
|
|
<href>(#GET{logo_doc}|extraire_attribut{src}|url_absolue)</href>
|
|
</Icon>]
|
|
<hotSpot x="0.5" y="0.5" xunits="pixels" yunits="pixels"/>
|
|
</IconStyle>
|
|
</Style>
|
|
<ExtendedData>
|
|
[<Data name="iconSize">
|
|
<value>(#GET{icon_w}),[(#GET{icon_h})]</value>
|
|
</Data>]
|
|
<Data name="iconAnchor">
|
|
<value>0.5,0.5</value>
|
|
</Data>
|
|
</ExtendedData>]
|
|
</Placemark>
|
|
</BOUCLE_gis>
|
|
</Document>
|
|
</kml> |