Commit 6250fe8d4ca3efed90476dc2166b8a4bb4ea2332
1 parent
b7e57048
Added marker on map
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
contact.php
... | ... | @@ -9,13 +9,19 @@ |
9 | 9 | function initialize() |
10 | 10 | { |
11 | 11 | var mapCanvas = document.getElementById('map-canvas'); |
12 | + var polytechPos = new google.maps.LatLng(50.6074998, 3.1373338); | |
12 | 13 | var mapOptions = |
13 | 14 | { |
14 | - center: new google.maps.LatLng(50.6074998, 3.1373338), | |
15 | + center: polytechPos, | |
15 | 16 | zoom: 16, |
16 | 17 | mapTypeId: google.maps.MapTypeId.ROADMAP |
17 | 18 | } |
18 | 19 | var map = new google.maps.Map(mapCanvas, mapOptions) |
20 | + var marker = new google.maps.Marker({ | |
21 | + position: polytechPos, | |
22 | + map: map, | |
23 | + title:"Polytech Lille" | |
24 | + }); | |
19 | 25 | } |
20 | 26 | initialize() |
21 | 27 | </script> | ... | ... |