Hi guys, hope someone can help :)
I originally posted this in the Help forum > Maps > Map Won't Load >
Recreational Maps User section but I received a reply saying that this
sort of problem might be better to post over here.
So here is the problem. I have my google API map set up, and its
working fine in all other browsers, apart from IE 6 and 7. The problem
started when I needed to included the map within tabs. Of course, when
the map is hidden, the API can not get the size. So after some
research I realized that I needed to call the map.checkResize() when
the tab with the map in is shown.
So I now run the map.checkResize() via the onShow method when the tab
is clicked, so that when the tab shows it updates itself. This works
fine apart form in IE 6 and 7, which after more research I found out
that they need to know the size of the map via Javascript so in my API
code I call the
map = new GMap2(document.getElementById("map"),{size:new
GSize(370,220)});
This works fine in IE 6 and 7, but only if the page is loaded with
the map tab already in view.
This will load the map no problem in all browsers
e.g: http://labwaves.com/dev/contactUs.php#Map
but if you visit the page normally
e.g: http://labwaves.com/dev/contactUs.php
and then tab over to the map, it will not load correctly in IE 6 or 7
It will display like this> http://labwaves.com/dev/brokenMap.JPG
I think this could be fixed if I could get the GSize set along with
when the map.checkResize() is run, but I am unsure of how to do this
(I have never worked with the google maps API before).
(I have made things easier to see in the source code of the page as
well if anyone wants to take a look)
All help really appreciated!
Many Thanks
--
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.