[OpenLayers-Trac] Re: [OpenLayers] #3468: filter on snapping target does not work

OpenLayers trac-20090302 at openlayers.org
Wed Aug 17 07:17:24 EDT 2011


#3468: filter on snapping target does not work
------------------------------+---------------------------------------------
 Reporter:  bartvde           |       Owner:  tschaub     
     Type:  bug               |      Status:  new         
 Priority:  minor             |   Milestone:  2.12 Release
Component:  Control.Snapping  |     Version:  2.10        
 Keywords:                    |       State:              
------------------------------+---------------------------------------------

Comment(by bartvde):

 But it seems the most logical thing to do for the Snapping control is to
 always pass in the feature, since it seems all filter types can deal with
 that, Comparison filters will just use the attributes if a feature is
 passed in:

 {{{
     evaluate: function(context) {
         if (context instanceof OpenLayers.Feature.Vector) {
             context = context.attributes;
         }
 }}}

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3468#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list