Hi, You can do it on runtime with
layerWMS.mergeNewParams({ SLD_BODY : "...sld_body..." }); I use this way to highlight a choosen country http://gis.ibbeck.de/OLClient/examples/wms_sld_world.asp Arnd -----Ursprüngliche Nachricht----- Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von t...@f!t Gesendet: Freitag, 30. April 2010 17:47 An: users@openlayers.org Betreff: [OpenLayers-Users] show only specific objects, wms Hy all, I use GeoServer with OpenLayers. I have a WMS Layer with many kinds types of objects. How can I show only for example object whose attribut has a special value? I know I can create SLD so that it shows what I need. But the problem ist that I have about 1000 different attribut values. And I can't create 1000 SLD documents... I hope you understood my problem... Is this possible with a WMS Layer? Or is there a way I can change the SLD on runtime? cheers David -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/show-only-specific-objects-wms-tp4986 382p4986382.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users