[Geoserver-devel] Use of SLD through GeoServer and OpenLayers

Hello,

I’m working with GeoServer and OpenLayers and I have a question I don’t find any answers about.

GeoServer offers a previsualization of layers for which it is possible to add styles. Unfortunately, when I use OpenLayers, styles are not taken into account, why ? Do you know how to correct that ? How to force OpenLayers to use the styles we inserted before in GeoServer ?

Thank you for your help.

Regards,

I guess the style used is the one related to the getMap request.

&styles=& … means use the default style (the one you configured for that layer)

&styes=myStyle& … means use myStyle for that layer

Regards,
Alessio.


Ing. Alessio Fabiani
Founder / CTO GeoSolutions S.A.S.

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: (+39) 0584 96.23.13
fax: (+39) 0584 96.23.13
mobile:(+39) 331 62.33.686

http://www.geo-solutions.it
http://geo-solutions.blogspot.com
http://www.linkedin.com/in/alessiofabiani
https://twitter.com/alfa7961
http://twitter.com/geosolutions_it

On Tue, May 29, 2012 at 12:56 PM, Quentin Briquet <Quentin.Briquet@anonymised.com> wrote:

Hello,

I’m working with GeoServer and OpenLayers and I have a question I don’t find any answers about.

GeoServer offers a previsualization of layers for which it is possible to add styles. Unfortunately, when I use OpenLayers, styles are not taken into account, why ? Do you know how to correct that ? How to force OpenLayers to use the styles we inserted before in GeoServer ?

Thank you for your help.

Regards,

Quentin BRIQUET

Élève Ingénieur-Géomètre – ESGT, Le Mans

TFE SIG à l’École française d’Athènes

quentin.briquet@anonymised.com

(+30)21.03.67.99.41


Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel