I'm working on a map where I am getting geoJSON data for a couple hundred of
weather observing platforms.
In my layer switcher, I only wanted 1 entry to turn all the platforms on and
off, so I created a vector layer per platform, then added the layers to a
vector container which gives me the 1 layer tree entry I want.

I created individual vector layers because I want to add filtering ability
to individually turn on and off layers depending on what the user wants to
see. For instance if the user wanted to see only platforms with only air
temperature, they could click that selection and I would loop through
turning off platforms which did not have air temperature.

Instead of creating individual vector layers per platform, could I add them
all to one vector layer and have the ability to turn off/on individual
points within that layer?

Concerning the openlayers filters, are they applied only when the layer
loads, or could I have a filter that acts on a feature attribute of air
temperature and fire it off when the user clicks a button? I am not really
clear on how the filter objects work.

Thanks for any pointers!

Dan
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Vector-and-Filter-newbie-question-tp5538471p5538471.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to