Skip to content

Instantly share code, notes, and snippets.

@ronniej2014
Created June 4, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronniej2014/da63bba738efbd6665b0 to your computer and use it in GitHub Desktop.
Save ronniej2014/da63bba738efbd6665b0 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://maps.googleapis.com/maps/api/js"></script>
<script>
var myCenter=new google.maps.LatLng(43.658907, -79.384924);
function initialize()
{
var mapProp =
{
center:new google.maps.LatLng(43.658907, -79.384924),
zoom:14,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
var marker=new google.maps.Marker(
{
position:myCenter,
//animation:google.maps.Animation.BOUNCE
}
);
marker.setMap(map);
var infowindow = new google.maps.InfoWindow(
{
//content:"Hello World!"
}
);
//infowindow.open(map, marker);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="googleMap" style="width:480px;height:860px"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment