I thought the map size was defined in the div? ... <div id="map" width="750px" height="750px"> Here is my second div... <div id="map" width="100%" height="100%">...(not exactly sure if I wrote that correctly since I do not have my project in front of me)... both maps are coded exactly the same with the same markers pulling from a database.
When you say create a seperate gmap2 I am assuming I have to double up the code?? The one map has a lot of code on it. Any examples to your post.. You lost me at disconect the map ...I thought I could just create a class out of the one the map such as: var map1 = map var map2 = map Is this possible? I already tried it although that didn't work. Do you know what I would do to get that to work? On Dec 14, 12:21 am, Mike Williams <[email protected]> wrote: > If they're different sizes, then I can't see how they can be *exactly* > the same map. > > To treat them as different maps, put one in <div id="map2"> and create a > separate GMap2 object for each. > > Hint: remember to use the {size:} option when you create the GMap2 > that's in the hidden tab, otherwise the API will consider the hidden map > to have zero size. > > To treat them as one map, you'll need to add some lines to the code that > switches tabs to disconnect the map div from one tab and append it to > the other, change its .style.width and .style.height to change the size, > and finally call map.checkResize() so that the API knows about the size > change. > > -- > Mike Williamshttp://econym.org.uk/gmap -- 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.
