[OpenLayers-Users] How to hide a feature from the map?
Paul Meems
bontepaarden at gmail.com
Mon May 7 05:34:25 EDT 2012
I have a WFS layer that shows about 10 features.
I have made a SLD for this layer.
This SLD works fine when I define fill colors but when my attribute value
is 0 I don't want to see the feature so I added this to my SLD:
<Rule>
<Name>Default</Name>
<PolygonSymbolizer>
<Fill>false</Fill>
<Stroke>false</Stroke>
</PolygonSymbolizer>
</Rule>
This results in my undefined (=default style) feature to be drawn with a
gray fill color and a black stroke.
I can't filter this feature because the user can do some calculations which
results in modified values of my attribute and thus in my coloring.
How should I hide this feature?
Thanks,
Paul
--
Organizing the International Open Source GIS conference 2012 in The
Netherlands:
http://www.mapwindow.org/conference/2012/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120507/b72d7752/attachment-0001.html
More information about the Users
mailing list