{
  "version": 8,
  "id": "toner-epaper-4color",
  "name": "Toner e-Paper 4Color",
  "metadata": {
    "comment": "toner-epaper-4gray.json 派生。EZ Sign 等の 4 色電子ペーパー (白黒黄赤) 用。色は4値固定: #ffffff(背景/陸地/水域の面/建物の面) #ffff00(公園/緑地) #ff0000(major road/highway/行政界/古い軌跡/現在地) #000000(minor road/railway/水際/水路/建物の縁/文字)。灰色が無いので水域は白抜き+黒の水際で表す。黄は白地で線として読めないので面にだけ使う。opacity による中間色生成は禁止。fill-pattern/POI/sprite icon は排除"
  },
  "sources": {
    "openmaptiles": {
      "type": "vector",
      "url": "pmtiles://https://z.yuiseki.net/static/openstreetmap/planet/planet.pmtiles"
    },
    "overlay": {
      "type": "geojson",
      "data": {
        "type": "FeatureCollection",
        "features": []
      }
    }
  },
  "glyphs": "https://z.yuiseki.net/static/maps/fonts/{fontstack}/{range}.pbf",
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "#ffffff"
      }
    },
    {
      "id": "landcover",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "filter": [
        "in",
        "class",
        "grass",
        "wood"
      ],
      "paint": {
        "fill-color": "#ffff00"
      }
    },
    {
      "id": "park",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "park",
      "filter": [
        "==",
        "$type",
        "Polygon"
      ],
      "paint": {
        "fill-color": "#ffff00"
      }
    },
    {
      "id": "water",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "water",
      "filter": [
        "all",
        [
          "!=",
          "brunnel",
          "tunnel"
        ],
        [
          "==",
          "$type",
          "Polygon"
        ]
      ],
      "paint": {
        "fill-color": "#ffffff"
      }
    },
    {
      "id": "water_edge",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "water",
      "filter": [
        "all",
        [
          "!=",
          "brunnel",
          "tunnel"
        ],
        [
          "==",
          "$type",
          "Polygon"
        ]
      ],
      "paint": {
        "line-color": "#000000",
        "line-width": 1
      }
    },
    {
      "id": "waterway",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "waterway",
      "paint": {
        "line-color": "#000000",
        "line-width": 1
      }
    },
    {
      "id": "building",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "building",
      "minzoom": 14,
      "paint": {
        "fill-color": "#ffffff"
      }
    },
    {
      "id": "building_outline",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "building",
      "minzoom": 16,
      "paint": {
        "line-color": "#000000",
        "line-width": 0.5,
        "line-dasharray": [
          1.5,
          1.5
        ]
      }
    },
    {
      "id": "boundary_admin",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "boundary",
      "filter": [
        "in",
        "admin_level",
        2,
        4
      ],
      "paint": {
        "line-color": "#ff0000",
        "line-width": 1,
        "line-dasharray": [
          3,
          2
        ]
      }
    },
    {
      "id": "rail",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 11,
      "filter": [
        "==",
        "class",
        "rail"
      ],
      "paint": {
        "line-color": "#000000",
        "line-width": 1
      }
    },
    {
      "id": "rail_hatch",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 13,
      "filter": [
        "==",
        "class",
        "rail"
      ],
      "paint": {
        "line-color": "#000000",
        "line-width": 4,
        "line-dasharray": [
          0.1,
          4
        ]
      }
    },
    {
      "id": "road_minor",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "minzoom": 12,
      "filter": [
        "all",
        [
          "==",
          "$type",
          "LineString"
        ],
        [
          "in",
          "class",
          "minor",
          "service",
          "tertiary"
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#000000",
        "line-width": {
          "base": 1.4,
          "stops": [
            [
              12,
              0.5
            ],
            [
              16,
              2
            ]
          ]
        }
      }
    },
    {
      "id": "road_major",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "LineString"
        ],
        [
          "in",
          "class",
          "primary",
          "secondary",
          "trunk"
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#ff0000",
        "line-width": {
          "base": 1.4,
          "stops": [
            [
              10,
              0.8
            ],
            [
              16,
              3
            ]
          ]
        }
      }
    },
    {
      "id": "road_highway",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "LineString"
        ],
        [
          "==",
          "class",
          "motorway"
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#ff0000",
        "line-width": {
          "base": 1.4,
          "stops": [
            [
              8,
              1
            ],
            [
              16,
              4
            ]
          ]
        }
      }
    },
    {
      "id": "overlay_track_old",
      "type": "line",
      "source": "overlay",
      "filter": [
        "==",
        "kind",
        "track"
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-color": "#ff0000",
        "line-width": 2,
        "line-dasharray": [
          2,
          2
        ]
      }
    },
    {
      "id": "place_label_town",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "minzoom": 9,
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Point"
        ],
        [
          "==",
          "class",
          "town"
        ]
      ],
      "layout": {
        "text-field": "{name}",
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 12,
        "text-max-width": 8
      },
      "paint": {
        "text-color": "#000000",
        "text-halo-color": "#ffffff",
        "text-halo-width": 2
      }
    },
    {
      "id": "place_label_city",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "filter": [
        "all",
        [
          "==",
          "$type",
          "Point"
        ],
        [
          "==",
          "class",
          "city"
        ]
      ],
      "layout": {
        "text-field": "{name}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-size": 14,
        "text-max-width": 8
      },
      "paint": {
        "text-color": "#000000",
        "text-halo-color": "#ffffff",
        "text-halo-width": 2
      }
    },
    {
      "id": "overlay_pi5",
      "type": "circle",
      "source": "overlay",
      "filter": [
        "==",
        "kind",
        "pi5"
      ],
      "paint": {
        "circle-radius": 7,
        "circle-color": "#ffffff",
        "circle-stroke-color": "#000000",
        "circle-stroke-width": 3
      }
    },
    {
      "id": "overlay_current",
      "type": "circle",
      "source": "overlay",
      "filter": [
        "==",
        "kind",
        "current"
      ],
      "paint": {
        "circle-radius": 6,
        "circle-color": "#ff0000",
        "circle-stroke-color": "#000000",
        "circle-stroke-width": 2
      }
    },
    {
      "id": "overlay_label",
      "type": "symbol",
      "source": "overlay",
      "filter": [
        "has",
        "name"
      ],
      "layout": {
        "text-field": "{name}",
        "text-font": [
          "Noto Sans Bold"
        ],
        "text-size": 11,
        "text-offset": [
          0,
          1.4
        ],
        "text-anchor": "top"
      },
      "paint": {
        "text-color": "#000000",
        "text-halo-color": "#ffffff",
        "text-halo-width": 2
      }
    }
  ]
}