Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
strk CreditAttribution: strk commentedThe 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)
Comment #2
strk CreditAttribution: strk commentedFixed: http://drupal.org/cvs?commit=442902
Comment #4
tmcw CreditAttribution: tmcw commentedCan 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.