Commit b7e5704803c7135e8a5f2f3181d5b29e636bd15f
1 parent
d507524f
Map now initialize correctly
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
contact.php
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | <p>Pour toute information, vous pouvez contacter Mme Pichonnat</p> | 3 | <p>Pour toute information, vous pouvez contacter Mme Pichonnat</p> |
4 | </div> | 4 | </div> |
5 | | 5 | |
6 | + | ||
6 | <div id="map-canvas"></div> | 7 | <div id="map-canvas"></div> |
7 | <script> | 8 | <script> |
8 | function initialize() | 9 | function initialize() |
@@ -16,5 +17,5 @@ | @@ -16,5 +17,5 @@ | ||
16 | } | 17 | } |
17 | var map = new google.maps.Map(mapCanvas, mapOptions) | 18 | var map = new google.maps.Map(mapCanvas, mapOptions) |
18 | } | 19 | } |
19 | - google.maps.event.addDomListener(window, 'load', initialize); | 20 | + initialize() |
20 | </script> | 21 | </script> |