[OpenLayers-Users] featureadded not passing single feature to event
listener, returning all features
Carlos Krefft
ckrefft at rsmas.miami.edu
Fri Mar 18 11:22:06 EDT 2011
When I add the "featureadded" event listener I seem to get all features
passed. Same thing with "beforefeatureadded"
In the code below "this" returns all features instead of ONE feauture. Is
this a bug or am I doing something wrong?
myLayer.events.register("featureadded", CSTARS.UI.Map.Results.Layer,
featureAdded);
function featureAdded() {
console.log(this);
}
Relevant Documentation:
http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLay
ers/Layer/Vector-js.html
Kind Regards,
Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110318/d03e29f5/attachment-0001.html
More information about the Users
mailing list