Skip to content

Instantly share code, notes, and snippets.

@mepawan
Created April 13, 2017 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mepawan/23676b9d7edd0de82417f13e202ff855 to your computer and use it in GitHub Desktop.
Save mepawan/23676b9d7edd0de82417f13e202ff855 to your computer and use it in GitHub Desktop.
InfoWindow automatically open on page load
var infoWindow = null;
function initialize()
{
infoWindow = new google.maps.InfoWindow();
var windowLatLng = new google.maps.LatLng(43.25,-68.03);
infoWindow.setOptions({
content: "<div>This is the html content.</div>",
position: windowLatLng,
});
infoWindow.open(map);
} // end initialize
google.setOnLoadCallback(initialize);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment