LineLayer
Introduction
The line layer describes one or more paths on the map through a set of longitude and latitude data sets. By the type of path, it is divided into path, arc, 3D arc and other types.
Users can configureshapeparameters to select the type of point, and passstyle、size、colorMethod to adjust the point style.
const layer = new LineLayer()
.source([{ lng: 120, lat: 30, lng1: 125, lat1: 30 }], {
parser: {
type: 'json',
x: 'lng',
y: 'lat',
x1: 'lng1',
y1: 'lat1',
},
})
.shape('line')
.size(2)
.color('#f00');