我参考iClient for Openlayers的范例:https://iclient.supermap.io/examples/openlayers/editor.html#mvtvectorlayer_mbstyle_linestyle
想要实现一个矢量图层的编辑器,在地图里读取了地图的初期状态的风格var styleURL = "http://localhost:8090/iserver/services/map-mapTest/restjsr/v1/vectortile/maps/map/style.json";
然后在这个基础上根据我设置的颜色,粗细等按钮修改点,线,面,文字的对应风格
请问,点线面文字的偏移量又该如何设置,我看mapboxstyle里有对应的属性,但我填进去似乎没有生效
您好,设置标签的偏移,可以用"text-offset": [0, 0]
style文件规范可以参考:https://blog.csdn.net/qq_37987033/article/details/126350219