Hi,
If the layerstore is correctly synched to the map then adding the layer
to the map should add it directly to the store.
Otherwise:
store.loadData([layer], true); //second parameter is to append the data
Regards,
Seth
On 23/11/2010 18:48, IT Intern wrote:
Hello GeoExt users,
I am sure this is easy but I must be doing something wrong as I've
been getting errors and wrong results.
I have a layer store and then later on in my code I want to add
another layer to it. I have tried both the .add() and .insert()
methods without success, preferably would like to use .insert();
layerStore.insert(0, map.getLayersByName('Panoramio Photos')[0]);
can someone please explain this to me,
Thank you for your time and consideration,
elshae
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users