[Users] Workaround for google layers not playing nice with treepanel - MORE DIAGNOSIS of the problem
Phil Scadden
p.scadden at gns.cri.nz
Fri May 28 02:23:19 CEST 2010
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.
More information about the Users
mailing list