本文仅供记录MapVGL开发中面图层相关属性
var shaperLayer = new mapvgl.ShapeLayer({
color: 'rgba(194, 147, 75, 0.3)',
style: 'windowAnimation',
opacity: 1,
texture: 'images/textures/wall2.png',
isTextureFull: true,
textureScale: 1,
topColor: 'rgba(255, 255, 255, 1.0)',
});
属性名 | 属性注解 |
---|---|
color | 颜色,同css颜色 |
opacity | 楼块透明度 ,默认为1.0 |
texture | 纹理贴图,注意,宽高必须为2的次幂 |
isTextureFull | 纹理贴图是否铺满,默认为false |
textureScale | 纹理图缩放大小 |
blend | 点叠加模式,可选lighter |
riseTime | 楼块初始化升起动画的时间,单位毫秒,默认为0 |
style | 一些特效,可选值normal:默认,正常;window:窗户效果;windowAnimation:窗户动画效果;gradual:渐变效果 |
to |