So I am stuck on figuring out how I can add an info window to a marker during the overlaycomplete event. I have figured out how to add a title to the marker but I can’t get an info window to work…. Could any help please?
Here is the code I currently have to create the title…
google.maps.event.addListener(drawingManager, 'overlaycomplete', function(event) {
if (event.type == google.maps.drawing.OverlayType.MARKER) {
event.overlay.setTitle("Hello");
}
});
1 Answer