Last change
on this file since 83 was
80,
checked in by guille, 16 years ago
|
el plugin completo
|
-
Property svn:executable set to
*
|
File size:
895 bytes
|
Line | |
---|
1 | <!-- |
---|
2 | Exemple 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&v=2&key=#ENV{apikey}" type="text/javascript"></script> |
---|
10 | <script type="text/javascript"> |
---|
11 | //<![CDATA[ |
---|
12 | var map; |
---|
13 | jQuery(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 | } |
---|
18 | window.onunload = GUnload; |
---|
19 | }); |
---|
20 | |
---|
21 | function 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 { |
---|
33 | width: #ENV{largeur}px; |
---|
34 | height: #ENV{hauteur}px; |
---|
35 | } |
---|
36 | </style> |
---|
37 | <div id="googlemap"></div> |
---|
Note: See
TracBrowser
for help on using the repository browser.