ShapeLineLayer

线状外观的立体多边形,继承自Layer

示例

动手试试

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var layer = new mapvgl.ShapeLineLayer({
color: 'rgba(55, 55, 200, 1)',
data: [{
geometry: {
type: 'Polygon',
coordinates: [
[
[116.392394, 39.910683],
[116.405976, 39.927727],
[116.420996, 39.910351]
]
]
},
properties: {
height: 100, // 多边形高度
}
}]
});

options属性

color

解释:颜色,同css颜色

类型:string

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

data内容

数据格式内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[{
geometry: {
type: 'Polygon',
coordinates: [
[
[116.392394, 39.910683],
[116.405976, 39.927727],
[116.420996, 39.910351]
]
]
},
properties: {
height: 100, // 多边形高度
}
}]