用来展示大数据量的简单线图层,继承自Layer
动手试试
12345678910111213
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] ] } }]});
解释:颜色,同css颜色
解释
类型:string
类型
默认值:’rgba(25, 25, 250, 1)’
默认值
数据格式内容:
数据格式内容
123456789
[{ geometry: { type: 'LineString', coordinates: [ [116.394191, 39.91334], [116.417259, 39.913672] ] }}]