Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Open a certain infoWindow on load #198

Closed
fschroiff opened this issue Apr 19, 2013 · 1 comment
Closed

Open a certain infoWindow on load #198

fschroiff opened this issue Apr 19, 2013 · 1 comment

Comments

@fschroiff
Copy link

I have tried to understand the documentation, but I still cannot figure out how to open a certain marker's infoWindow on load. Who can help me, or point me to a step for step tutorial (which I still haven't found after one hour of smashing my head against the wall).

@fschroiff
Copy link
Author

Finally wrapped my head around it with the help of an experienced js programmer, Chrome's console and this comment: #40 (comment)

The markers are in an array: map.markers. So if you want to trigger a click on a marker you need to know the position of the marker in the array. Then you can do google.maps.event.trigger(map.markers[your-position-number-here],'click');

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant