Nowadays we use Google map API v3 for using google map in our page. Google gives us full API documentation to use this and to open google map marker info window but sometimes we get stuck in some specific requirements.
In google map, we point the specific location based on it’s longitude and latitude and create a marker on that point. But If we want to show some information about that point, then we need to attach an info window with that marker which can be associated with marker’s hover or click event.
Open google map marker info window
lat1 = map.markers[i].getPosition().lat();
long1 = map.markers[i].getPosition().lng();
var center = new google.maps.LatLng(lat1, long1) ;
google.maps.event.trigger( map.markers[i], 'click' );
And that’s all the easy code to open google map marker info window.