Nope didn't work. What I mean is I would create two seperate var's but
both would equal the same map. Those var's would be my id then.

On Dec 14, 12:55 pm, "[email protected]" <[email protected]>
wrote:
> On Dec 14, 10:36 am,Schwimms<[email protected]> wrote:
>
> > Larry, how about creating a class on the id? ...
>
> > var map1 = map
> > var map2 = map
>
> > and then <div id="map1"> and <div id="map2>
>
> I don't know what you mean by that.  Did it work?  If not, please
> follow the posting guidelines and post a link to your map that shows
> the problem you are having.
>
>   -- Larry
>
>
>
>
>
> > On Dec 14, 11:04 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Dec 14, 6:39 am,Schwimms<[email protected]> wrote:
>
> > > > 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.
>
> > > The HTML specification does not allow 2 divs on the same page to have
> > > the same ID.
>
> > >   -- Larry
>
> > > > 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-Hidequotedtext -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--

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