How to style layers with SLD in OL3
Asked Answered
V

1

5

It seems like not long ago in OL2 there was a nice way to style layers with SLD and it seems like now it is not possible to do the similar thing in OL3. At least, I could not find any example on the web and in official OL3 documentation I could not find even a single reference to SLD. So, why is that and how people in real world applications store/save styles if SLD format is not supported any more?

Vallery answered 6/3, 2016 at 17:53 Comment(0)
H
7

SLD is not yet supported by OpenLayers 3. I am currently working on OpenLayers 3 support for the mapbox-gl-style spec: ol-mapbox-gl-style. It is a small separate library.

There might already be an SLD to mapbox-gl-style converter. If there isn't by the time I'm done, there should be enough funding left to also work on an SLD converter.

Credit goes to Boundless and their customers for funding this effort.

Hett answered 7/3, 2016 at 14:5 Comment(1)
Yes indeed: github.com/boundlessgeo/ol-mapbox-gl-style and github.com/Norkart/SLDexit.Hett

© 2022 - 2024 — McMap. All rights reserved.