On Jan 7, 3:47 am, Highlander <[email protected]> wrote:
> Hi
>
> I apologise if this is a problem that has been answered before but
> after much searching I couldn't find the answer so hopefully someone
> can help me.
>
> I've built a GoogleMap that loads markers from an XML file. This was
> all working fine until I built it into a .Net user control now it does
> not render properly in either IE, FireFox, or Chrome.
>
> When you load the page in IE, it adds all the markers as you'd expect
> but the map background is not rendering centrally. Then if you drag it
> round as you may see it does strange things. In FireFox and Chrome all
> you get are the drop down lists appear but nothing else?! However
> there are no script errors being shown!
>
> Please can you have a look 
> herehttp://www.select-education.net/test-controls.aspx
> and see if you can spot here I've gone wrong!


It is acting like the browser is not returning the correct size of the
div that contains the map when the map is initialized.


1. You have white space before your <!DOCTYPE declaration which is
technically invalid and can make IE render in quirks mode.
2. Your javascript that renders the map doesn't wait for the DOM to
finish rendering.  The general advice is either run the script that
creates the map in a function that gets called by the page onload
event or run it inline, just before the </body> tag (after the DOM has
been completely defined).  Running it at an arbitrary time, with
setTimeout is bound to cause weird problems.

  -- 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.


Reply via email to