background

背景样式。

示例

{
  "id": "背景",
  "type": "background",
  "layout": {
    "visibility": "none"
  },
  "minzoom": 0,
  "maxzoom": 24,
  "metadata": {
    "maputnik:comment": "背景"
  }
  "paint": {
    "background-color": "rgba(10, 2, 32, 1)",
    "background-opacity": 1
  },
}

图层基本属性

属性 说明
ID ID
type 类型,固定值"background"
source 数据源
source-layer 源图层
minzoom 最小级别
maxzoom 最大级别
maputnik:comment 备注

绘制属性

属性 说明
background-color 设置当前图层颜色
background-pattern 设置 sprite 中绘制背景的图像名称
background-opacity 设置当前图层透明度

results matching ""

    No results matching ""