[OpenLayers-Users] layer.clone()
Slawomir Messner
slawomir.messner at staff.uni-marburg.de
Tue May 25 03:40:41 EDT 2010
Hi,
is it possible that the clone() method of OL.Layer.Vector clones the
features but forgets to set the layer attribute of each feature to the
cloned layer?
I had the problem, that I couldn't modify the features in the new layer
until I wrote the following code after cloning:
for (var t = 0; t < newLayer.features.length; t++) {
newLayer.features[t].layer = newLayer;
}
It's a bug or a feature?
--
-----------------------------------------------
Slawomir Messner
Forschungszentrum "Deutscher Sprachatlas"
06421-28-24981
More information about the Users
mailing list