OpenLayers 3能实现地图边框阴影效果吗
return new ol.style.Style({
fill: new ol.style.Fill({
// color: 'rgba(150, 206, 167, 0.7)'
color: '#011659'
}),
stroke: new ol.style.Stroke({//边界样式
color: '#FFF',
width: 2.5,
shadow: 10
}),
text: new ol.style.Text({
text: feature.get('name'),
font: '14px 宋体,Calibri,sans-serif',
textBaseline: 'bottom',
offsetY: -3,
fill: new ol.style.Fill({
color: '#FFF'
})
})
});
stroke设置边框,只有颜色和宽度管用,shadow阴影不管用,还是我阴影写法有问题
java小菜机
2019/04/20 09:43- css
- chrome
- firefox
- css3
- 点赞
- 收藏
- 回答