Skip to content

Commit

Permalink
Update MapScript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
joh13010 committed Jan 3, 2017
1 parent 6c0265b commit e09f5b4
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions MapScript.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
var map;
var myLocation = {lat: 43.3095, lng: -73.644};

function addMarker(lt, ln, prov)
{
console.log("Latitude: " + lt + ". Longitude: " + ln);
var location = {lat: lt, lng: ln};
var marker = new google.maps.Marker({
position: location,
map: map
});
marker.setMap(map);
}

function initMap() {
var myLatLng = myLocation;

Expand All @@ -9,16 +21,16 @@ function initMap() {
rotateControl: true
});

var marker = new google.maps.Marker({
/* var marker = new google.maps.Marker({
position: myLatLng,
map: map,
animation:google.maps.Animation.DROP,
title: 'Hello World!'
});
}); */

var infoWindow = new google.maps.InfoWindow({content:"Hello"});
/*var infoWindow = new google.maps.InfoWindow({content:"Hello"});
google.maps.event.addListener(marker,'click',function(e){
infoWindow.open(map, marker);
});
});*/
}

0 comments on commit e09f5b4

Please sign in to comment.