Skip to content

Commit

Permalink
Create MapScript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
joh13010 committed Jan 2, 2017
1 parent 1545e47 commit 66fea90
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions MapScript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
var map;
var myLocation = {lat: 43.3095, lng: -73.644};
function initMap() {
var myLatLng = myLocation;

var map = new google.maps.Map(document.getElementById('map'), {
zoom: 15,
center: myLatLng,
rotateControl: true
});

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"});
google.maps.event.addListener(marker,'click',function(e){

infoWindow.open(map, marker);
});
}

0 comments on commit 66fea90

Please sign in to comment.