On Jan 3, 9:42 pm, "[email protected]" <[email protected]>
wrote:
> On Jan 3, 7:08 pm, Julie <[email protected]> wrote:
>
> > For some odd reason, the infowindow is out of place when using
> > Internet Explorer, but is fine in FireFox.
>
> The infoWindows look like they are in the right place to me (IE7).
> The map is not centered correctly though.
>
> > Any idea what could be wrong?
>
> The problem is the script is executed inline and is inside the DOM.
> When it executes the DOM is not completely defined and the size of the
> map div is zero.
> Move the script to the bottom of the page, just before the </body>
> tag (after the DOM has been completely defined. Beware, invalid html
> such as unclosed tags could cause problems).
>
BTW - it might be a better experience for your visitors if you just
open the infowindow with the "starting location" form, rather than
opening the one that just has a link to the form (save them the extra
"click").
In your createMarker function, you could only need to change this:
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
to:
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(to_htmls[i]);
});
-- Larry
>
>
> >http://riochurch.com/central_contactus.html
>
> > PS. Click on the link "Marker One" under the map.
>
> What "Marker One"?
>
> -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---