Openlayers为线要素添加文字标注(Openlayers adds text dimensions to line features)

似乎只能给点要素添加标注??

1. 加载矢量点实现标注

2. 使用重叠层实现标注

参考:https://blog.csdn.net/qq_35732147/article/details/81771953(OpenLayers之标注功能二:图文标注)

为marker添加标注:https://q.cnblogs.com/q/27959/

openlayers给要素加文字注记:https://blog.csdn.net/u013594477/article/details/83584294

————————

It seems that only point features can be labeled??

1. Load vector points to realize annotation

2. Use overlapping layers to realize annotation

reference resources: https://blog.csdn.net/qq_ 35732147 / article / details / 81771953 (annotation function 2 of openlayers: Graphic annotation)

Add a label to the marker: https://q.cnblogs.com/q/27959/

openlayers给要素加文字注记:https://blog.csdn.net/u013594477/article/details/83584294