How to style layers with SLD in OL3

穿精又带淫゛_ 提交于 2019-12-12 14:18:02

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/35830350/how-to-style-layers-with-sld-in-ol3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!