[Users] Trouble with mapPanel and googlelayers - actually trouble with gxlayercontainer.
Phil Scadden
p.scadden at gns.cri.nz
Wed May 5 02:23:40 CEST 2010
On 30/04/2010 5:26 p.m., Eric Lemoine wrote:
> 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?
>>
>
>
> 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.)
>
>
Well deferRender option didnt help. I have found though when creating a
minimal code set, that the problem is related to the gx_layercontainer
in Geoext. If I dont create an ext treepanel for a layer legend, then
the google layers render fine. I have created a minimal reproduction of
the problem, shown attach. Even a pointer to where to get into the debug
would help.
Thanks.
--
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St,
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100505/e7e18983/attachment.html
More information about the Users
mailing list