[OpenLayers-Trac] [OpenLayers] #2841: Filter strategy constructor
should not need filter
OpenLayers
trac-20090302 at openlayers.org
Fri Sep 17 03:48:40 EDT 2010
#2841: Filter strategy constructor should not need filter
----------------------+-----------------------------------------------------
Reporter: bartvde | Owner: fredj
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Strategy | Version: 2.10
Keywords: | State:
----------------------+-----------------------------------------------------
My use case is: at the startup of my application, I want to show all
features. Then later on users can control the visibility of features by
using checkboxes in a legend, so I will use setFilter then. However, now I
have to instantiate my Filter strategy with something like (a filter that
matches everything):
{{{
new OpenLayers.Strategy.Filter({
filter: new OpenLayers.Filter.Comparison({type:
OpenLayers.Filter.Comparison.LIKE, property: 'categorie', value: ''})
})
]}}
How about allowing instantiating the strategy with no filter?
--
Ticket URL: <http://trac.openlayers.org/ticket/2841>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list