您好,请问是想在什么地图上添加?
如果是cesium,参考示例:http://support.supermap.com.cn:8090/webgl/examples/webgl/editor.html#Polyline
如果是leaflet,参考:https://iosphere.github.io/Leaflet.hotline/demo/和https://github.com/iosphere/Leaflet.hotline
如果是openlayer,参考:https://blog.csdn.net/caowenjing123/article/details/124848375