SimpleLineLayer

用来展示大数据量的简单线图层,继承自Layer

示例

动手试试

1
2
3
4
5
6
7
8
9
10
11
12
13
var layer = new mapvgl.SimpleLineLayer({
color: 'rgba(50, 50, 200, 1)',
blend: 'lighter',
data: [{
geometry: {
type: 'LineString',
coordinates: [
[116.394191, 39.91334],
[116.417259, 39.913672]
]
}
}]
});

options属性

color

解释:颜色,同css颜色

类型:string

默认值:’rgba(25, 25, 250, 1)’

data内容

数据格式内容

1
2
3
4
5
6
7
8
9
[{
geometry: {
type: 'LineString',
coordinates: [
[116.394191, 39.91334],
[116.417259, 39.913672]
]
}
}]