[OpenLayers-Users] show only specific objects, wms

Arnd Wippermann arnd.wippermann at web.de
Fri Apr 30 12:39:24 EDT 2010


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-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von T at f!t
Gesendet: Freitag, 30. April 2010 17:47
An: users at 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 at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list