Created
April 13, 2017 09:53
-
-
Save mepawan/23676b9d7edd0de82417f13e202ff855 to your computer and use it in GitHub Desktop.
InfoWindow automatically open on page load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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