The following example shows a simple Marker (standard icon) on Google maps for the location and when clicking the icon, it opens the info window. Can I show the info window
If you want to show the info window opened by default without click, just add a new code like bellow:
Your code:
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
So we have a new code like this:
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
infowindow.open(map,marker);
As you can see, we just add a little line code with infowindow.open(map,marker);