页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 11 下一个 »

(本文档仅供参考)

问题

如何设置地图背景的透明度

解决方案

方案一,可以通过在图形设置中添加扩展属性设置

    {
    "geo": {
        "itemStyle": {
            "normal": {
                "borderWidth": 2,  //设置边线粗细度
                "opacity": 0.6,        //设置透明度,范围0~1,越小越透明
                "areaColor": "#63B8FF"    //地图区域颜色
            },
            "emphasis": {
                "areaColor": "#7FFF00"    //高亮时地图区域颜色
            }
        }
    }
}

实现效果:如下  地图的背景透明,直接显示电子表格中的背景图了。

方案二,可通过以下扩展属性设置地图背景透明:

{
"geo": {
"itemStyle": {
"borderColor": "rgba(0, 0, 205, 0.8)",
"color": "rgba(128, 128, 128, 0)",  // 最后面的0设置的就是透明度,值越小越透明
"borderWidth": 1.5
}
}
}

      实现效果如下:


Viewtracker License Missing

There is a problem with the license of the Viewtracker addon. Please check if you have a valid license.

授权码细节

  • 无标签