So I write:
map0=new
google.maps.Map(document.getElementById("map_canvas0"),options)
map1=new
google.maps.Map(document.getElementById("map_canvas1"),options)
...
<body onload="initialize()">
<div id="map_canvas0" style="width:100%; height:100%"></div>
<div id="map_canvas1" style="width:100%; height:100%"></div>
</body>
And then ?
(sorry, I'm not used to html and css) :(
On 21 fév, 02:27, Chris Apolzon <[email protected]> wrote:
> I think the best way to handle that is to actually have each map get its own
> div and show/hide the div itself as opposed to trying to swap out which map
> owns the div. May the powers of CSS be with you ;)
>
> On Fri, Feb 19, 2010 at 2:46 PM, JCD21 <[email protected]> wrote:
> > Hello.
> > I want to display several maps on a html page at the same place but
> > one after another.
> > I know it's possible to create several instances, for example map0=new
> > google.maps.Map(document.getElementById("map_canvas"),options),
> > map1=... in the same file but what's the code to display map0 and
> > then map1 on the page?
> > Thank you.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-maps-js-api-v3%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.