PointMove() {
//this.feature.getGeometry().setCoordinates(fromLonLat([107.96347238850318,31.26682435405145]))
debugger
this.vLayer.getSource().getFeatures().forEach((feature, index) => {
if (index === 0) {
// let point = GeometryType.GeometryType()
if(feature.getGeometry().getType() === 'Point')
feature.getGeometry().setCoordinates(
[310.0406909003906,388.580038767172]
);
feature.changed();
}
});
},
openplayer 的点的改变移动
最新推荐文章于 2024-05-20 09:49:35 发布