source: trunk/spip/esqueleto-redcta/plugins/magusine/squelettes/blocs/galeries/google-maps-rubrique.html @ 556

Last change on this file since 556 was 80, checked in by guille, 16 years ago

el plugin completo

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1<B_documents_gmap>
2<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<BOUCLE_api_key(SPIP_ARTY_PARAMETRES){parametre=google_api_key}>#VALEUR</BOUCLE_api_key>" type="text/javascript"></script>
3<style type="text/css">
4.gmaps {
5  width: [(#ENV{conteneur}|=={1}|?{'[(#LARGEUR_CONTEXTE1|moins{6})]',''})][(#ENV{conteneur}|=={2}|?{'[(#LARGEUR_CONTEXTE2|moins{6})]',''})][(#ENV{conteneur}|=={3}|?{'#LARGEUR_CORPS',''})]px;
6  height: #ENV{parametre}px;
7}
8</style>
9<BOUCLE_documents_gmap(DOCUMENTS){id_rubrique}{extension==kml|kmz}{par num titre}>
10<div id="googlemap" class="listagebloc googlemap#ID_DOCUMENT">
11[<h2>(#TITRE|supprimer_numero)</h2>]
12<li><div id="map#ID_DOCUMENT" class="gmaps"></div></li>
13[<li class="listageinfo">(#DESCRIPTIF)</li>]
14</div>
15<script type="text/javascript">
16//<![CDATA[
17var map#ID_DOCUMENT;
18var geoXml#ID_DOCUMENT = new GGeoXml("#URL_SITE_SPIP/#FICHIER");
19
20jQuery(document).ready(function(){
21  if (GBrowserIsCompatible()) {
22    map#ID_DOCUMENT = new GMap2(document.getElementById("map#ID_DOCUMENT"));
23    <BOUCLE_parametres(SPIP_ARTY_PARAMETRES){parametre=gmaps_afficher_controles}{valeur=true}{0, 1}>
24    map#ID_DOCUMENT.addControl(new GSmallMapControl());
25    map#ID_DOCUMENT.addControl(new GMapTypeControl());
26    </BOUCLE_parametres>
27    map#ID_DOCUMENT.setCenter(new GLatLng(41.875696,-87.624207), 2); 
28    map#ID_DOCUMENT.addOverlay(geoXml#ID_DOCUMENT);
29    geoXml#ID_DOCUMENT.gotoDefaultViewport(map#ID_DOCUMENT); 
30  }
31});
32//]]>
33</script>
34</BOUCLE_documents_gmap>
Note: See TracBrowser for help on using the repository browser.