[Users] Workaround for google layers not playing nice with treepanel - MORE DIAGNOSIS of the problem

Andreas Hocevar ahocevar at opengeo.org
Fri May 28 10:00:16 CEST 2010


On May 28, 2010, at 09:50 , Andreas Hocevar wrote:

> Oh, I just saw that you posted one already in the other thread. Sorry. Looking at it right now.

Sorry, but this is not what I would refer to as a minimal example. It includes too many custom components. Please strip it down more: remove dependencies for jquery, GroupTab and GroupTabPanel, and proj4js.

For other readers who may not have the reference to the other thread and the example we are talking about: http://www.geoext.org/pipermail/users/2010-May/000796.html


Thanks,
Andreas.

> 
> Andreas.
> 
> On May 28, 2010, at 09:46 , Andreas Hocevar wrote:
> 
>> Can you please share a minimal example that shows the issue? This will make it much easier to investigate the problem.
>> 
>> Thanks,
>> Andreas.
>> 
>> On May 28, 2010, at 02:23 , Phil Scadden wrote:
>> 
>>> I have actually made some progress in finding out what is going on but 
>>> still stumped. Here is the nub of the issue as far as I can see.
>>> 
>>> Eventually, in both the case where using a treepanel or not, a GeoExt 
>>> callback on "afterlayout" results in a
>>> call to OpenLayers Map Render.
>>> In render you have:
>>> 
>>>       this.div.appendChild(this.viewPortDiv);
>>> 
>>> In the application without treepanel, this results in the the GMap2 div 
>>> (a child of viewPortDiv) taking on the
>>> same client width and hieght as div. When you bind mappanel to a 
>>> treepanel however, the GMap2 div remains with a client height and width 
>>> of zero. viewPortDiv however does change to fit the parent div.
>>> 
>>> Now I just dont know enough about DOM to understand what difference I 
>>> should be looking for in viewPortDiv and its children that can allow 
>>> such a thing to happen. At first glance, viewPortDiv and the child GMap2 
>>> div look the same but then there are a lot of properties. Can anyone 
>>> give me some hints please?
>>> 
>>> 
>>> 
>>> -- 
>>> 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.
>>> 
>>> _______________________________________________
>>> Users mailing list
>>> Users at geoext.org
>>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>> 
>> 
>> 
>> -- 
>> Andreas Hocevar
>> OpenGeo - http://opengeo.org/
>> Expert service straight from the developers.
>> 
>> _______________________________________________
>> Users mailing list
>> Users at geoext.org
>> http://www.geoext.org/cgi-bin/mailman/listinfo/users
> 
> 
> 
> -- 
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
> 
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list