On Oct 21, 9:10 am, alain <[email protected]> wrote:
> Here is the search page:http://www.namta.us/search-result.html
>
> if you do a search with the following, Piano, 50 miles, 92024 zip
> you'll get some result.
>
> Works fine on FF but on IE7 the first time you click on "Search
> Profiles" he zoom is wrong, if you click again it's right.
>
> For some reason with the same bounds value the zoom calculation is
> wrong the first time (zoom value is 3 instead of 12) in the the code
> below:
>
> var zoom = map.getBoundsZoomLevel(bounds);
>
> any suggestions?

The map div is not defined when the map code runs, so it is assigned a
zero size.

Run your map code after the DOM has finished loading (i.e. using the
onload event) or run it at the bottom of the page (just before the </
body> tag.

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