Created
October 14, 2010 17:34
-
-
Save dmclark/626621 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var latlng = new google.maps.LatLng(41.857476, -87.6205898); | |
var myOptions = { | |
zoom: <%= @zoom_level %>, | |
center: latlng, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; | |
var map = new google.maps.Map(document.getElementById("showmap"), | |
myOptions); | |
var marker = new google.maps.Marker({ | |
position: latlng, | |
map: map, | |
title:"Hello World!" | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment