[OpenLayers-Trac] [OpenLayers] #2979: Give Layer.Vector a method getFeaturesByAttribute

OpenLayers trac-20090302 at openlayers.org
Mon Dec 13 17:12:13 EST 2010


#2979: Give Layer.Vector a method getFeaturesByAttribute
--------------------------+-------------------------------------------------
 Reporter:  marcjansen    |       Owner:  crschmidt   
     Type:  feature       |      Status:  new         
 Priority:  minor         |   Milestone:  2.11 Release
Component:  Layer.Vector  |     Version:  2.10        
 Keywords:                |       State:              
--------------------------+-------------------------------------------------
 I think it would be very usefull, if instances of OpenLayers.Layer.Vector
 would provide a method to get features by their attributes and their
 respective values.

 See e.g. the discussion here on the developer mailing list:
 http://osgeo-org.1803224.n2.nabble.com/Layer-Vector-getFeatureBy-and-
 getFeaturesByAttribute-td5819790.html

 The attached patch implements such a method as Eric suggested and includes
 tests. I would gladly provide an example if that is needed (But I
 personally think it is a little bit overkill).

 Thanks for any review.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2979>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list