{
  "version": 8,
  "name": "navsea-redesign",
  "glyphs": "http://192.168.200.184/newpec/fonts/{fontstack}/{range}.pbf",
  "sources": {
    "navsea": {
      "type": "vector",
      "minzoom": 0,
      "maxzoom": 12,
      "tiles": [
        "http://192.168.200.184/pbf/{z}/{x}/{y}.pbf"
      ],
      "attribution": "NavSea semantic vector tiles"
    }
  },
  "layers": [
    {
      "id": "background",
      "type": "background",
      "paint": {
        "background-color": "#dfe8d8"
      }
    },
    {
      "id": "land-area",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P陸域",
      "paint": {
        "fill-color": "#d9cfab"
      }
    },
    {
      "id": "land-hole",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P穴",
      "paint": {
        "fill-color": "#bfc8b1"
      }
    },
    {
      "id": "water-depth-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P基本線",
      "filter": [
        "match",
        [
          "get",
          "canonical_family"
        ],
        [
          "surface"
        ],
        true,
        false
      ],
      "paint": {
        "fill-color": [
          "match",
          [
            "get",
            "canonical_object_type"
          ],
          "0-2m",
          "#d8f3f6",
          "0-5m",
          "#d2eff4",
          "2-5m",
          "#c8eaf0",
          "5-10m",
          "#bce3ec",
          "10-20m",
          "#b0dbe8",
          "20-100m",
          "#a0d2e0",
          "100-200m",
          "#93c7d6",
          "200-500m",
          "#7eb7ca",
          "500-1000m",
          "#68a6bc",
          "1000-2000m",
          "#558eab",
          "#dff3f7"
        ],
        "fill-opacity": 0.9
      }
    },
    {
      "id": "shoal-hazard-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P基本線",
      "filter": [
        "==",
        [
          "get",
          "canonical_object_type"
        ],
        "浅所危険界"
      ],
      "paint": {
        "fill-color": "#f2a65a",
        "fill-opacity": 0.45
      }
    },
    {
      "id": "tidal-flat-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P基本線",
      "filter": [
        "==",
        [
          "get",
          "canonical_object_type"
        ],
        "干潮帯"
      ],
      "paint": {
        "fill-color": "#d7d0b4",
        "fill-opacity": 0.75
      }
    },
    {
      "id": "river-lake-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P基本線",
      "filter": [
        "match",
        [
          "get",
          "canonical_object_type"
        ],
        [
          "河川域",
          "湖沼域",
          "陸上水域"
        ],
        true,
        false
      ],
      "paint": {
        "fill-color": "#b8d8e8",
        "fill-opacity": 0.85
      }
    },
    {
      "id": "unsurveyed-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P基本線",
      "filter": [
        "==",
        [
          "get",
          "canonical_object_type"
        ],
        "未測海域"
      ],
      "paint": {
        "fill-color": "#f7f0b8",
        "fill-opacity": 0.5
      }
    },
    {
      "id": "coast-structure-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P基本線",
      "filter": [
        "match",
        [
          "get",
          "canonical_object_type"
        ],
        [
          "防波堤",
          "浮施設・桟橋",
          "撤去跡"
        ],
        true,
        false
      ],
      "paint": {
        "fill-color": "#8d8578",
        "fill-opacity": 0.85
      }
    },
    {
      "id": "bridge-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P橋りょう等構造物",
      "paint": {
        "fill-color": "#736b5f",
        "fill-opacity": 0.85
      }
    },
    {
      "id": "fishery-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P漁具定置箇所",
      "paint": {
        "fill-color": "#89b26f",
        "fill-opacity": 0.45,
        "fill-outline-color": "#56764a"
      }
    },
    {
      "id": "land-structure-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P陸上構造物陸",
      "paint": {
        "fill-color": "#8e6f3e",
        "fill-opacity": 0.8
      }
    },
    {
      "id": "coast-outline",
      "type": "line",
      "source": "navsea",
      "source-layer": "P基本線ククリ",
      "paint": {
        "line-color": "#736b5f",
        "line-width": 1.2
      }
    },
    {
      "id": "danger-outline",
      "type": "line",
      "source": "navsea",
      "source-layer": "P危険界ククリ",
      "paint": {
        "line-color": "#c95c2a",
        "line-width": 1.3,
        "line-dasharray": [
          2,
          1
        ]
      }
    },
    {
      "id": "anchor-danger-outline",
      "type": "line",
      "source": "navsea",
      "source-layer": "P投錨注意障害物ククリ",
      "paint": {
        "line-color": "#c03d3d",
        "line-width": 1.1,
        "line-dasharray": [
          1,
          1
        ]
      }
    },
    {
      "id": "bathymetry-lines",
      "type": "line",
      "source": "navsea",
      "source-layer": "L海底地形",
      "paint": {
        "line-color": "#7fa6b7",
        "line-width": 0.5,
        "line-opacity": 0.45
      }
    },
    {
      "id": "depth-contours",
      "type": "line",
      "source": "navsea",
      "source-layer": "L等深線",
      "paint": {
        "line-color": "#487b94",
        "line-width": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5,
          0.3,
          8,
          0.6,
          12,
          1.1
        ],
        "line-opacity": 0.85
      }
    },
    {
      "id": "subsea-lines",
      "type": "line",
      "source": "navsea",
      "source-layer": "L海底線",
      "paint": {
        "line-color": "#8d4f9c",
        "line-width": 1.2,
        "line-dasharray": [
          3,
          1
        ]
      }
    },
    {
      "id": "coast-structure-lines",
      "type": "line",
      "source": "navsea",
      "source-layer": "L基本線",
      "paint": {
        "line-color": "#60584d",
        "line-width": 1.4
      }
    },
    {
      "id": "land-structure-lines",
      "type": "line",
      "source": "navsea",
      "source-layer": "L陸上構造物陸",
      "paint": {
        "line-color": "#805f2c",
        "line-width": 1
      }
    },
    {
      "id": "water-boundary-line",
      "type": "line",
      "source": "navsea",
      "source-layer": "L739",
      "paint": {
        "line-color": "#4b89a5",
        "line-width": 1.1
      }
    },
    {
      "id": "regulatory-boundary-line",
      "type": "line",
      "source": "navsea",
      "source-layer": "L741",
      "paint": {
        "line-color": "#cf5b47",
        "line-width": 1.2,
        "line-dasharray": [
          2,
          2
        ]
      }
    },
    {
      "id": "height-limit-line",
      "type": "line",
      "source": "navsea",
      "source-layer": "L高さ制限",
      "paint": {
        "line-color": "#b1466b",
        "line-width": 1.1
      }
    },
    {
      "id": "hazard-area-fill",
      "type": "fill",
      "source": "navsea",
      "source-layer": "P投錨注意障害物",
      "paint": {
        "fill-color": "#d85f4c",
        "fill-opacity": 0.42,
        "fill-outline-color": "#9b3324"
      }
    },
    {
      "id": "hazard-points",
      "type": "circle",
      "source": "navsea",
      "source-layer": "p航行危険障害物",
      "paint": {
        "circle-radius": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          7,
          2,
          10,
          4,
          12,
          6
        ],
        "circle-color": "#d5452f",
        "circle-stroke-color": "#fff4df",
        "circle-stroke-width": 1.1
      }
    },
    {
      "id": "anchor-hazard-points",
      "type": "circle",
      "source": "navsea",
      "source-layer": "p投錨注意障害物",
      "paint": {
        "circle-radius": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          7,
          2,
          10,
          4,
          12,
          6
        ],
        "circle-color": "#cf7d2b",
        "circle-stroke-color": "#fff4df",
        "circle-stroke-width": 1
      }
    },
    {
      "id": "nav-marks",
      "type": "circle",
      "source": "navsea",
      "source-layer": "p航路標識群",
      "paint": {
        "circle-radius": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          7,
          2,
          10,
          4,
          12,
          6
        ],
        "circle-color": "#f6ce4f",
        "circle-stroke-color": "#313131",
        "circle-stroke-width": 1
      }
    },
    {
      "id": "facility-points",
      "type": "circle",
      "source": "navsea",
      "source-layer": "p施設・境界線等",
      "paint": {
        "circle-radius": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          8,
          2,
          12,
          5
        ],
        "circle-color": "#4d6b86",
        "circle-stroke-color": "#ffffff",
        "circle-stroke-width": 0.8
      }
    },
    {
      "id": "landmark-points",
      "type": "circle",
      "source": "navsea",
      "source-layer": "p陸上構造物",
      "paint": {
        "circle-radius": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          8,
          2,
          12,
          4.5
        ],
        "circle-color": "#6b5840",
        "circle-stroke-color": "#f7f1e2",
        "circle-stroke-width": 0.8
      }
    },
    {
      "id": "bottom-material-points",
      "type": "circle",
      "source": "navsea",
      "source-layer": "p底質",
      "paint": {
        "circle-radius": 1.5,
        "circle-color": "#3f7183",
        "circle-opacity": 0.55
      }
    },
    {
      "id": "height-limit-points",
      "type": "circle",
      "source": "navsea",
      "source-layer": "p高さ制限",
      "paint": {
        "circle-radius": 3,
        "circle-color": "#a83566",
        "circle-stroke-color": "#ffffff",
        "circle-stroke-width": 0.8
      }
    },
    {
      "id": "sea-place-labels",
      "type": "symbol",
      "source": "navsea",
      "source-layer": "p地名",
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "日本語地名"
          ],
          [
            "get",
            "英文字地名"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "NotoSerifCJK-Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          6,
          9,
          12,
          14
        ],
        "text-anchor": "center",
        "text-max-width": 10
      },
      "paint": {
        "text-color": "#284857",
        "text-halo-color": "#f6fbff",
        "text-halo-width": 1
      }
    },
    {
      "id": "land-place-labels",
      "type": "symbol",
      "source": "navsea",
      "source-layer": "p地名陸",
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "日本語地名"
          ],
          [
            "get",
            "英文字地名"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "NotoSerifCJK-Regular"
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          6,
          9,
          12,
          14
        ],
        "text-anchor": "center",
        "text-max-width": 10
      },
      "paint": {
        "text-color": "#3a3327",
        "text-halo-color": "#fff9ef",
        "text-halo-width": 1
      }
    },
    {
      "id": "nav-object-labels",
      "type": "symbol",
      "source": "navsea",
      "source-layer": "p航路標識群",
      "minzoom": 10,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "名称"
          ],
          [
            "get",
            "name"
          ],
          [
            "get",
            "canonical_object_type"
          ]
        ],
        "text-font": [
          "NotoSansCJK-Regular"
        ],
        "text-size": 11,
        "text-offset": [
          0,
          1.1
        ],
        "text-anchor": "top",
        "text-max-width": 12
      },
      "paint": {
        "text-color": "#2f2f2f",
        "text-halo-color": "#fff8e0",
        "text-halo-width": 1.1
      }
    },
    {
      "id": "hazard-labels",
      "type": "symbol",
      "source": "navsea",
      "source-layer": "p航行危険障害物",
      "minzoom": 10,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "名称"
          ],
          [
            "get",
            "canonical_object_type"
          ]
        ],
        "text-font": [
          "NotoSansCJK-Regular"
        ],
        "text-size": 11,
        "text-offset": [
          0,
          1.1
        ],
        "text-anchor": "top"
      },
      "paint": {
        "text-color": "#7f221a",
        "text-halo-color": "#fff3eb",
        "text-halo-width": 1
      }
    }
  ]
}
