On Dec 16, 6:12 am, Schwimms <[email protected]> wrote:
> I got away with using a panel. The problem now is the map doesn't
> resize correctly. I have it with both height and width of 100% and the
> map isn't viewable.

Have you seen Mike Williams' tutorial?
Part 20 Using a percentage height for the map div
http://econym.org.uk/gmap/basic19.htm

  -- Larry

> The map and sidebar are set up in a table with 2
> columns. The <panel> is surrounding the <td> for the sidebar. I think
> my problem stems for putting a div inside a table. If you have any
> ideas that'd be great otherwise I will tinker for a bit.
>
> Anyways, Andrew, thank you for your thought. Thanks to all!
>
> On Dec 15, 8:27 am, Schwimms <[email protected]> wrote:
>
> > Andrew, I am using ASP.net and they do have controls to allow for
> > hiding the sidebar, it is called a collapsible panel and I will test
> > that tonight. My only worry is the map resizing correctly. I have the
> > div set to 100% for width and height. I hope that this will work....
>
> > If I still have trouble I will jump on a free hosting place.
>
> > On Dec 15, 4:45 am, Andrew Leach <[email protected]>
> > wrote:
>
> > > On Dec 15, 2:02 am,Schwimms<[email protected]> wrote:
>
> > > > I don't have a site to post. Sorry.
>
> > > Ralph's given a link for some free hosting which he can provide.
>
> > > > What I am trying to do is give a user the option of two views. 1 of
> > > > just the map, and 1 of the map and a sidebar.
>
> > > It strikes me that an easier way to do that would be to provide a
> > > button to do things with the sidebar: hide it and expand the map, or
> > > reduce the map and show it. You could even still update the sidebar if
> > > necessary while it's hidden by altering its innerHTML.
>
> > > I don't know of any examples doing that though; but finding code for
> > > setting styles to hide a div or to change the size of another should
> > > be fairly easy with a Google search. To get the map to resize
> > > correctly you need .checkResize().
>
> > > Andrew- 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