From 6250fe8d4ca3efed90476dc2166b8a4bb4ea2332 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sun, 1 Mar 2015 20:26:15 +0100 Subject: [PATCH] Added marker on map --- contact.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contact.php b/contact.php index 0670502..f4ebcf2 100755 --- a/contact.php +++ b/contact.php @@ -9,13 +9,19 @@ function initialize() { var mapCanvas = document.getElementById('map-canvas'); + var polytechPos = new google.maps.LatLng(50.6074998, 3.1373338); var mapOptions = { - center: new google.maps.LatLng(50.6074998, 3.1373338), + center: polytechPos, zoom: 16, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(mapCanvas, mapOptions) + var marker = new google.maps.Marker({ + position: polytechPos, + map: map, + title:"Polytech Lille" + }); } initialize() -- libgit2 0.21.2