source: trunk/spip/esqueleto-redcta/plugins/magusine/squelettes/modeles/gmap.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: 895 bytes
Line 
1<!--
2Exemple d'utilisation:
3<gmap
4|apikey=ABQIAAAANa0Lb49sP2IatQ_6ejDWvxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQHBQNGrNz3kU10-BfeEGcigjzhhg
5|hauteur=300|largeur=500>
6-->
7
8
9<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=#ENV{apikey}" type="text/javascript"></script>
10<script type="text/javascript">
11//<![CDATA[
12var map;
13jQuery(document).ready(function(){
14  if (GBrowserIsCompatible()) {
15  map = new GMap2(document.getElementById("googlemap"));
16  map.setCenter(new GLatLng( #ENV{centre_latitude} , #ENV{centre_longitude} ), 13);
17}
18window.onunload = GUnload;
19});
20
21function createMarker(point, html) {
22  var marker = new GMarker(point);
23  GEvent.addListener(marker, "click", function() {
24    marker.openInfoWindowHtml(html);
25  });
26  return marker;
27}
28
29//]]>
30</script>
31<style type="text/css">
32#googlemap {
33width: #ENV{largeur}px;
34height: #ENV{hauteur}px;
35}
36</style>
37<div id="googlemap"></div>
Note: See TracBrowser for help on using the repository browser.