Last active
August 29, 2015 14:18
-
-
Save keeprock/049898ec913594c0ba46 to your computer and use it in GitHub Desktop.
Create tooltip on click using marker
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
var point = new google.maps.LatLng(COORDS); | |
var data = "SOME_TEXT"; | |
var infowindow = new google.maps.InfoWindow({ | |
content: data | |
}); | |
var marker = new google.maps.Marker({ | |
position: point, | |
title:"SOME_TEXT" | |
}); | |
google.maps.event.addListener(marker, 'click', function() { | |
infowindow.open(map,marker); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment