Created
December 7, 2011 18:09
-
-
Save tgk/1443894 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(function() { | |
var map, marker; | |
map = new google.maps.Map($("#map-canvas")[0], { | |
zoom: 1, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}); | |
map.setCenter(new google.maps.LatLng(0, 0)); | |
marker = new google.maps.Marker({ | |
position: new google.maps.LatLng(56, 32), | |
map: map | |
}); | |
return google.maps.event.addListener(marker, "click", function(event) { | |
console.log("You clicked me"); | |
return marker.setVisible(false); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment