On Jul 25, 4:49 pm, Harvey Maps <[email protected]> wrote: > I’ve developed a web page that displays multiple DIV’s each with a map > reference. I have a set of tab styled buttons that allow the user to > select between the maps. When the button OnClick() fires, I change > the STYLE Display value from ‘none’ to display (blank value) and vice- > versa for the second DIV (tag2). > > document.getElementById(myDivTag1).style.display = 'none'; > document.getElementById(myDivTag2).style.display = ''; > > or > > document.getElementById(myDivTag1).style.display = ''; > document.getElementById(myDivTag2).style.display = 'none'; > > The problem I’m seeing, when the change of the DIV tags occurs the map > that was in hiding is not displayed in whole. Most of the image tiles > do not show nor do they respond to the cursor. A browser resize > causes the map to re-display correctly. > > Question: Is there a method call to cause the map interface to > redisplay?
You can use either map.checkResize() (assuming your GMap2 object is named "map") or the size option to the GMap2 constructor. -- Larry > > Thanks in advance for any suggestions… > > --Harvey -- 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.
