While trying to debug an odd behavior with my custom controls I found that there are 'function' typed elements in the 'features' array in a layer created by openlayers_views_vector.

I'm trying to figure the reason for this.

Comments

strk’s picture

Component: OpenLayers Views » OpenLayers API

The API .addFeatures() receives 5 feature 'objects', and returns 40 objects of mixed 'object' and 'function' type.
The 'function' types are members of newFeatureSet named 'remove' !!
I bet it's GeoExt (or ext) adding that non-hidden method to arrays... (or something like that)

strk’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tmcw’s picture

Can you post an issue for GeoExt about this? It's kind of an awful thing to do, to extend Object without at least trying to make the property non-iterable - it's against practically every code standard.