If you look at the source of http://www.google.com/apis
Find a section marked <!-- ############ Map loader ############# -->
Right under there is the code for the marker, including the event listener for clicking it:
GEvent.addListener(marker,
marker.openInfoWindowHtml(
});
where WINDOW_HTML is the html code for the marker.
The next line after that is what expands the marker right away (same code as in the event listener):
marker.openInfoWindowHtml(
So basically, replace 'marker' with your own variable name for your info box (if necessary) and WINDOW_HTML with your html code or reference to such.
Main Topics
Browse All Topics





by: BogoJokerPosted on 2007-08-10 at 20:32:35ID: 19674792
I don't have too much experience with Google Maps but I looked around and I found this. Add openInfoWindowHTML right on the GMarker will open it immediatly. You can of course also put the openInfoWindowHtml on the point on the onclick function of the GMarker.
ata); ata); // This is the line that causes the point to open on page load
.com/messa geboard/sh owthread.p hp? t=13309
var data = '<div style="width: 225px; padding-right: 10px">Example<br />123 Fake Street</div>';
var point = new GMarker(new GLatLng(30.3965, -88.889993));
map.addOverlay(point);
GEvent.addListener(point, "click", function() {
point.openInfoWindowHtml(d
});
point.openInfoWindowHtml(d
I will give credit where credit is due, I got this from another forum. The post is at the bottom of this thread:
http://www.htmlhelpcentral
Hope this helps,
Joe P