0
得出两个点之间的线串我有我的两点之间画一条线串,例如:[-110000,460]之间[0,0]我怎样才能在OpenLayers3
得出两个点之间的线串我有我的两点之间画一条线串,例如:[-110000,460]之间[0,0]我怎样才能在OpenLayers3
你需要创建一个功能定义了线串几何,然后将其添加到矢量源中。
实施例:
vectorSource.addFeature(
new ol.Feature({
geometry: new ol.geom.LineString([
[-110000, 4600000],
[0, 0]
])
})
)
custom interation example这从openlayers.org演示此。
完美的我正在寻找! – TooFast