二、地图的基础操作
1、画线
案例(1)
this.map.on("load", () => {
let geometryLine = {
type: "Feature",
geometry: {
// 定义类型
type: "LineString",
coordinates: [
[113.39793764, 34.05675322],
[113.35187554, 32.4392251],
[112.47685179, 31.89344325],
[112.29263185, 30.75257895],
[112.43079033, 30.15709126],
[113.9505599, 29.75808719],
[114.45714743, 29.23699965],
[115.34044715, 28.22369668],
[115.59740867, 27.5140793],
[115.59740829, 27.45850126]
],
}