Skip to content

Instantly share code, notes, and snippets.

$ ->
map = new google.maps.Map $("#map-canvas")[0],
zoom: 1
mapTypeId: google.maps.MapTypeId.ROADMAP
map.setCenter new google.maps.LatLng(0, 0)
addMarker = (long, lat) ->
new google.maps.Marker
position: new google.maps.LatLng long, lat
map: map