[Users] Tabs and WMSGetFeatureInfo event issue(GeoExt1.0)
Dan Ramage
dan at inlet.geol.sc.edu
Tue Jun 7 21:51:04 CEST 2011
I figured out what was happening, it was my fault of course. Although it
leads to a Javascript/object question.
The basic issue was in my mapping object I have a member variable that is an
array. Both tabs use the same mapping object and in that object was an array
of my GetFeatureInfo controls.
I noticed when I went to create the second tab(both are created via var
mapObj = new rcoosmapping.secooraOLMap(); in a loop) the array had the
values from the first tab created.
A quick snippet of the object to show how I initially had my member
variables defined:
rcoosmapping.olMap = Ext.extend(Ext.Panel,
{
olMap : undefined,
obsNfoArray : [],
.
.
.
}
I got rid of the obsNfoArray defined above and moved it into the constructor
and that solved the issue.
I am not quite sure I understand why the array was persistent.
Dan
More information about the Users
mailing list