Skip to content

Instantly share code, notes, and snippets.

@dmclark
Created October 14, 2010 17:34
Show Gist options
  • Save dmclark/626621 to your computer and use it in GitHub Desktop.
Save dmclark/626621 to your computer and use it in GitHub Desktop.
$(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