AW: [OpenLayers-Users] Geoserver default SLD
Arnd Wippermann
arnd.wippermann at web.de
Fri Nov 25 12:12:55 EST 2011
Yes, it is possible.
You can style your vector features using external sld files.
You have to request the sld file, parse it and add the styleMap to the
vector layer.
Have look at
http://dev.openlayers.org/releases/OpenLayers-2.11/examples/sld.html
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_WFS_Demo/MapServe
r_WFS_Demo.asp?mapservVersion=5.6.1
Arnd
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Tondo
Gesendet: Freitag, 25. November 2011 13:43
An: users at openlayers.org
Betreff: [OpenLayers-Users] Geoserver default SLD
Hi
As far I know, there are layers published by geoserver always with default
SLD style. If I add WMS layer to the map it is styled by default SLD, but if
I add WFS layer it is styled by default orange style. Is it possible to load
layers default SLD style from geoserver if using WFS and assign it to the
OpenLayers WFS vector layer?
Thank you
Regards
Tom
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Geoserver-default-SLD-tp7030996p70309
96.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