Re: Problem with map centering in Internet Explorer

2009-01-20 Thread warden [Andrew Leach - Maps API Guru]
On Jan 20, 5:08 pm, Marcus wrote: > Andrew, you're an absolute star! Delaying until the page has finished > loading has stopped IE throwing toys out of its pram. > Thank's a bunch, and free beer to you :) Well, thanks for the offer, but you've done it like this: setTimeout("map_init()", 3000);

Re: Problem with map centering in Internet Explorer

2009-01-20 Thread Marcus
Andrew, you're an absolute star! Delaying until the page has finished loading has stopped IE throwing toys out of its pram. Thank's a bunch, and free beer to you :) Marcus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Problem with map centering in Internet Explorer

2009-01-20 Thread warden [Andrew Leach - Maps API Guru]
On Jan 20, 2:49 pm, Marcus wrote: > No percentages are used for the container div. It's hardcoded id="map_canvas" style="width:500px; height:300px;">. That makes no difference in this case because IE doesn't do anything with sizes until it reaches and can sort everything out in one go. You are

RE: Problem with map centering in Internet Explorer

2009-01-20 Thread Ralph Ames
This might help http://www.easypagez.com/maps/ieworking.html Ralph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To

Re: Problem with map centering in Internet Explorer

2009-01-20 Thread Marcus
No percentages are used for the container div. It's hardcoded . Marcus On Jan 20, 2:39 pm, "geocode...@gmail.com" wrote: > On Jan 20, 6:31 am, Marcus wrote:> Forgot a link to the > offending page.http://www.soundawesome.com/services/The%20Galleon > > You are using percentages to set your map

Re: Problem with map centering in Internet Explorer

2009-01-20 Thread Marcus
The container is and it's size never alters. I tried using the checkResize() before the setCenter(), but it does not seem to make any difference. It's strange how it works in all browers except internet explorer. Bemused, Marcus --~--~-~--~~~---~--~~ You received

Re: Problem with map centering in Internet Explorer

2009-01-20 Thread geocode...@gmail.com
On Jan 20, 6:31 am, Marcus wrote: > Forgot a link to the offending > page.http://www.soundawesome.com/services/The%20Galleon > You are using percentages to set your map size. See this page in Mike Williams' tutorial: Part 20 Using a percentage height for the map div http://econym.org.uk/gmap/ba

Re: Problem with map centering in Internet Explorer

2009-01-20 Thread Eric Z. Ayers
You may need to add a call to 'map.checkResize()' before you call 'map.setCenter()' http://code.google.com/apis/maps/documentation/reference.html#GMap2.checkResize In the GWT bindings, this is done so often that there is a convenience method that combines the two, and checkResize() is called

Re: Problem with map centering in Internet Explorer

2009-01-20 Thread Marcus
Forgot a link to the offending page. http://www.soundawesome.com/services/The%20Galleon Marcus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Map

Re: Problem with map centering in Internet Explorer

2009-01-20 Thread geocode...@gmail.com
On Jan 20, 6:07 am, Marcus wrote: > Hey there, > > I'm having a problem with my map. In Firefox and Safari, the following > code creates a map, with the marker centralized on the canvas. In > Internet Explorer 6 & 7, the marker is placed top-left (at the correct > position on the map), but not ce