One of my applications shows multiple location markers on a Google map. How can I show an InfoWindow after a short delay?
Here is my script:
google.maps.event.addListener(marker, 'mouseover', onMarkerClick);
//create a function that will open an InfoWindow for a marker mouseover
var onMarkerClick = function() {
var marker = this;
var latLng = marker.getPosition();
infowindow.setContent(
'<h3>Marker position is:</h3>' + latLng.lat() + ', ' + latLng.lng());
infowindow.open(map, marker);
};