[Users] Trouble with mapPanel and googlelayers.

Eric Lemoine eric.lemoine at camptocamp.com
Fri Apr 30 07:26:04 CEST 2010


On Thursday, April 29, 2010, Phil Scadden <p.scadden at gns.cri.nz> wrote:
> Geoext 0.7rc2, openlayer 2.9, ext 3.1.1
>
> Having issues with google layers in a mappanel. The application is
> fairly complex. MapPanel is in an item of a group panel and is not the
> active group. In another group, user selects a map ( like a link but in
> fact executes code). The link loads google layers into a map, assigned
> map to mapPanel, zoomToExtent, then switches the group so mappanel
> displayed. For maps without google layers this is fine. With google
> layers, the map is blank. If I layer swtich to change which google
> layers is displayed, then up comes the map - but the extent is
> completely wrong. Now in FF or Safari, if I switch to an ordinary tab,
> and then switch back to the tab with geoext mapPanel, everything is
> magically working again! (provided I changed google layer first). In IE
> the extents stay wrong.
>
> Any ideas on what special needs to be done for google layers?

Hi Phil

I would recommend writing a small example showing the problem. If I
understand correctly just a MapPanel with a Google layer in a TabPanel
should exhibit the issue. Most probably the problem should be fixed in
the MapPanel, but there may be possible workarounds in the application
code. At this point I personnally don't know. (You may also want to
look at the "defer render" options that Ext provides here and there.)

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list