AW: [OpenLayers-Users] Hide/Show different features in one Layer ?
Arnd Wippermann
arnd.wippermann at web.de
Thu Mar 1 12:37:37 EST 2012
Hi,
It's possible to change the visibility of features by their attributes.
Apply a styleMap with rules to the vectorlayer and modify the rules
display property by your checkboxes.
See this example
Switching of the Feature Visibility, group values
http://gis.ibbeck.de/ginfo/apps/OLExamples/Index/index.html#A16
Arnd
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Albert
Gesendet: Donnerstag, 1. März 2012 16:21
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Hide/Show different features in one Layer ?
hi users
I have many different features on my vector layer and I want to hide/show
them by checboxes on my interface.
my q is: do I have to separate them in different layers in GeoServer ? or
there is another way to do that ?
also if I have to separate them, how can I display them together on my first
view ? (using WFS protocol ) . I read about grouping layers but I'm not sure
if that's help.
thanks a lot.
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Hide-Show-different-features-in-one-Laye
r-tp4535434p4535434.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list