On Wed, Apr 17, 2013 at 6:51 PM, markusin <[email protected]>wrote:

> HI Andrea,
>
> thanks for the explanation. I read on the page
> http://docs.geoserver.org/latest/en/user/styling/sld-working.html
> <http://docs.geoserver.org/latest/en/user/styling/sld-working.html>
> and got the problem!
>
> without specifying the layer geoserver chooses as layer the value in the
> element:
> NamedLayer/Name
>
> So now I have to find out in Openlayers, how not to set the layer in such a
> request.
>

Or, you set the user style as default (I believe it's
<IsDefault>1</IsDefault>)
or also add &styles=... and use the same name as your user style there

Cheers
Andrea

-- 
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to