Does anyone know if its possible to have the Cloud window within a gmap display on page load, rather then only after the user clicks the marker?
I'm pretty sure its possible with the google maps api by simply doing this:
marker.openInfoWindowHtml(html);
Thanks.
Comments
Comment #1
xmarket commentedAdd a custom js to the page and do:
Without marker id:
Comment #2
alexkb commentedThat worked great, thanks xmarket!
For anyone that wants to find the dom id, simply add an alert before the if condition:
And if you're looking for the name of the example_marker_id, simply look through your inline javascript in your html source for a reference to "marker" like so:
"marker": { "<this is your marker id>": { "basic":...Cheers.
- Alex
Comment #3
xmarket commentedIt's a little bit easier if you have firebug. On its DOM tab you can find all of the map definitions at Drupal.settings.gmaps.map.{map_id}.overlays.marker.{marker_id}.
Of course, there are usually multiple maps and multiple markers per map.