Resize has to be called when you programatically change the map size. For some reason toggling visibility also requires triggering the event.
Chad Killingsworth On Jun 21, 9:12 pm, Ruslan Sivak <[email protected]> wrote: > Chad, > > Thank you. Doing both of those suggestions seemed to work. It seems a > little weird that I have to call a resize event to force a redraw when > changing options. Shouldn't it auto redraw once you change the map > options or recenter the map? Is this a bug? > > Russ > > On 6/21/2010 6:10 PM, Chad Killingsworth wrote: > > > > > It looks to me like you need to trigger the map resize event when you > > show the map. > > > I would also suggest that you not recreate the map, but simply change > > the options on the existing map. > > > Chad Killingsworth > > > On Jun 21, 4:09 pm, Ruslan Sivak<[email protected]> wrote: > > >> I have a page that I am migrating from v2 to v3. One thing that > >> doesn't seem to work properly is using the same div to load a > >> different map. > > >> Here is a sample of my map. I tried to strip it down as much as > >> possible. > > >>http://www.vshift.com/demos/map/map.html > > >> If you click on one state it shows up fine. If you then close the > >> popup, and then click on another, the map doesn't properly load. > > >> What am I doing wrong? > > >> Russ -- 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.
