openlayers 加载填充颜色透明的面

    createStyle(){
     return new Style({
        stroke: new Stroke({
          color: '#ff4e00', //面的边界线颜色
          width: 1         //边界线宽
        }),
        fill: new Fill({
         color: 'rgba(0, 0, 255, 0)'    //填充颜色,不透明度0
        })
      })
    },
posted @ 2020-03-27 12:04  wwj007  阅读(2780)  评论(0编辑  收藏  举报
……