Skip to content

Instantly share code, notes, and snippets.

@ShinichiNishikawa
Last active January 6, 2025 01:53
Show Gist options
  • Save ShinichiNishikawa/64d0b59576c9e90bd3b07292caa97569 to your computer and use it in GitHub Desktop.
Save ShinichiNishikawa/64d0b59576c9e90bd3b07292caa97569 to your computer and use it in GitHub Desktop.
{
"version": 8,
"name": "GSI Japan + OpenStreetMap based style for Geolonia",
"center": [
135.39,
37.46
],
"zoom": 5,
"sprite": "https://api.geolonia.com/v1/sprites/gsi",
"glyphs": "https://glyphs.geolonia.com/{fontstack}/{range}.pbf",
"sources": {
"gsi-japan": {
"type": "vector",
"url": "https://tileserver.geolonia.com/gsi_experimental_bvmap/tiles.json?key=YOUR-API-KEY",
"minzoom": 5
},
"v3": {
"type": "vector",
"url": "https://tileserver.geolonia.com/v3/tiles.json?key=YOUR-API-KEY"
},
"gsidem": {
"type": "raster-dem",
"url": "https://tileserver.geolonia.com/gsi-dem/tiles.json?key=YOUR-API-KEY"
},
"satellite": {
"type": "raster",
"url": "https://api.maptiler.com/tiles/satellite-v2/tiles.json?key=3RIGqI7btoYpMwxpZdPC"
},
"negative-city-mask": {
"type": "vector",
"url": "https://tileserver.geolonia.com/takamatsu_negative_mask/tiles.json?key=YOUR-API-KEY"
},
"takamatsu": {
"type": "vector",
"url": "https://tileserver.geolonia.com/takamatsu_main_v0/tiles.json?key=YOUR-API-KEY"
},
"kihonzu": {
"type": "vector",
"url": "https://tileserver.geolonia.com/takamatsu_kihonzu_v1/tiles.json?key=YOUR-API-KEY"
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": {
"stops": [
[
1,
"#f2f5d6"
],
[
5,
"#dae2c1"
],
[
8,
"#EDE6DD"
],
[
10,
"#e6e5e3"
],
[
16,
"#f5f5f5"
]
]
}
}
},
{
"id": "landcover-wood",
"type": "fill",
"source": "v3",
"source-layer": "landcover",
"filter": [
"==",
"class",
"wood"
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": {
"stops": [
[
5,
"#a5d47b"
],
[
8,
"#bce398"
]
]
},
"fill-antialias": {
"base": 1,
"stops": [
[
0,
false
],
[
9,
true
]
]
}
}
},
{
"id": "landcover-grass-park",
"type": "fill",
"source": "v3",
"source-layer": "park",
"filter": [
"==",
"class",
"public_park"
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "#d8e8c8",
"fill-opacity": 0.8
}
},
{
"id": "geolonia-water-ocean",
"type": "fill",
"source": "v3",
"source-layer": "water",
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "#65cbf9"
}
},
{
"id": "water-blur",
"type": "line",
"source": "v3",
"source-layer": "water",
"minzoom": 17,
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#62cffc",
"line-width": {
"stops": [
[
17,
3
],
[
20,
5
]
]
},
"line-translate": {
"stops": [
[
17,
[
1,
1
]
],
[
20,
[
-2,
-2
]
]
]
},
"line-blur": 2
}
},
{
"id": "water-blur-gsi",
"type": "line",
"source": "gsi-japan",
"source-layer": "river",
"minzoom": 17,
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#62cffc",
"line-width": {
"stops": [
[
17,
3
],
[
20,
5
]
]
},
"line-translate": {
"stops": [
[
17,
[
1,
1
]
],
[
20,
[
-2,
-2
]
]
]
},
"line-blur": 2
}
},
{
"id": "water-gsi",
"type": "line",
"source": "gsi-japan",
"source-layer": "river",
"minzoom": 16,
"filter": [
"all",
[
"!=",
"ftCode",
5322
]
],
"layout": {
"line-join": "round",
"line-round-limit": 0.5,
"visibility": "visible"
},
"paint": {
"line-color": "#65cbf9",
"line-width": [
"interpolate",
[
"linear"
],
[
"zoom"
],
16,
1,
20,
5
]
}
},
{
"id": "water",
"type": "fill",
"source": "gsi-japan",
"source-layer": "waterarea",
"filter": [
"all"
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "#65cbf9"
}
},
{
"id": "nt-water-name-ocean",
"type": "symbol",
"source": "v3",
"source-layer": "nt-water-name",
"minzoom": 8,
"filter": [
"==",
[
"get",
"class"
],
"ocean"
],
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-size": 14,
"text-field": [
"string",
[
"get",
"name:ja"
],
[
"get",
"name"
]
],
"text-max-width": 5,
"text-rotation-alignment": "map",
"symbol-placement": "point",
"symbol-spacing": 350,
"text-letter-spacing": 0.2
},
"paint": {
"text-color": "#74aee9",
"text-halo-width": 1.5,
"text-halo-color": "rgba(255,255,255,0.7)"
}
},
{
"id": "nt-water-name-river",
"type": "symbol",
"source": "v3",
"source-layer": "nt-water-name",
"minzoom": 13,
"filter": [
"==",
[
"get",
"class"
],
"river"
],
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-size": 14,
"text-field": [
"string",
[
"get",
"name:ja"
],
[
"get",
"name"
]
],
"text-max-width": 5,
"text-rotation-alignment": "map",
"symbol-placement": "point",
"symbol-spacing": 350,
"text-letter-spacing": 0.2
},
"paint": {
"text-color": "#74aee9",
"text-halo-width": 1.5,
"text-halo-color": "rgba(255,255,255,0.7)"
}
},
{
"id": "park",
"type": "fill",
"source": "v3",
"source-layer": "park",
"filter": [
"all",
[
"==",
"$type",
"Polygon"
],
[
"!=",
"class",
"national_park"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "rgba(102, 170, 68, 1)",
"fill-opacity": {
"stops": [
[
7,
0
],
[
9,
0.2
]
]
}
}
},
{
"id": "waterway_tunnel",
"type": "line",
"source": "v3",
"source-layer": "waterway",
"minzoom": 14,
"filter": [
"all",
[
"in",
"class",
"river",
"stream",
"canal"
],
[
"==",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "round"
},
"paint": {
"line-color": "#65cbf9",
"line-width": {
"base": 1.3,
"stops": [
[
13,
0.5
],
[
20,
6
]
]
},
"line-dasharray": [
2,
4
]
}
},
{
"id": "waterway-other",
"type": "line",
"source": "v3",
"source-layer": "waterway",
"filter": [
"!in",
"class",
"canal",
"river",
"stream"
],
"layout": {
"line-cap": "round"
},
"paint": {
"line-color": "#65cbf9",
"line-width": {
"base": 1.3,
"stops": [
[
13,
0.5
],
[
20,
2
]
]
}
}
},
{
"id": "waterway-stream-canal",
"type": "line",
"source": "v3",
"source-layer": "waterway",
"filter": [
"all",
[
"in",
"class",
"canal",
"stream"
],
[
"!=",
"brunnel",
"tunnel"
]
],
"layout": {
"line-cap": "round"
},
"paint": {
"line-color": "#65cbf9",
"line-width": {
"base": 1.3,
"stops": [
[
13,
0.5
],
[
20,
6
]
]
}
}
},
{
"id": "waterway-name",
"type": "symbol",
"source": "v3",
"source-layer": "waterway",
"minzoom": 13,
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"has",
"name"
],
[
"!=",
"disputed",
"japan_northern_territories"
]
],
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-size": 14,
"text-field": [
"string",
[
"get",
"name:ja"
],
[
"get",
"name"
]
],
"text-max-width": 5,
"text-rotation-alignment": "map",
"symbol-placement": "line",
"text-letter-spacing": 0.2,
"symbol-spacing": 350
},
"paint": {
"text-color": "#65cbf9",
"text-halo-width": 1.5,
"text-halo-color": "rgba(255,255,255,0.7)"
}
},
{
"id": "water-name-lakeline",
"type": "symbol",
"source": "v3",
"source-layer": "water_name",
"filter": [
"all",
[
"==",
"$type",
"LineString"
],
[
"!=",
"disputed",
"japan_northern_territories"
]
],
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-size": 14,
"text-field": [
"string",
[
"get",
"name:ja"
],
[
"get",
"name"
]
],
"text-max-width": 5,
"text-rotation-alignment": "map",
"symbol-placement": "line",
"symbol-spacing": 350,
"text-letter-spacing": 0.2
},
"paint": {
"text-color": "#74aee9",
"text-halo-width": 1.5,
"text-halo-color": "rgba(255,255,255,0.7)"
}
},
{
"id": "water-name-ocean",
"type": "symbol",
"source": "v3",
"source-layer": "water_name",
"filter": [
"all",
[
"==",
"$type",
"Point"
],
[
"==",
"class",
"ocean"
],
[
"!=",
"disputed",
"japan_northern_territories"
]
],
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-size": 14,
"text-field": [
"string",
[
"get",
"name:ja"
],
[
"get",
"name"
]
],
"text-max-width": 5,
"text-rotation-alignment": "map",
"symbol-placement": "point",
"symbol-spacing": 350,
"text-letter-spacing": 0.2
},
"paint": {
"text-color": "#74aee9",
"text-halo-width": 1.5,
"text-halo-color": "rgba(255,255,255,0.7)"
}
},
{
"id": "water-name-other",
"type": "symbol",
"source": "v3",
"source-layer": "water_name",
"filter": [
"all",
[
"==",
"$type",
"Point"
],
[
"!in",
"class",
"ocean"
],
[
"!=",
"disputed",
"japan_northern_territories"
],
[
"!=",
"subclass",
"moat"
]
],
"layout": {
"text-font": [
"Noto Sans Regular"
],
"text-size": {
"stops": [
[
0,
10
],
[
6,
14
]
]
},
"text-field": [
"string",
[
"get",
"name:ja"
],
[
"get",
"name"
]
],
"text-max-width": 5,
"text-rotation-alignment": "map",
"symbol-placement": "point",
"symbol-spacing": 350,
"text-letter-spacing": 0.2,
"visibility": "visible"
},
"paint": {
"text-color": "#74aee9",
"text-halo-width": 1.5,
"text-halo-color": "rgba(255,255,255,0.7)"
}
},
{
"id": "highway-minor-bridge-casing-blur",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"all",
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"!=",
"rdCtg",
0
],
[
"!=",
"rdCtg",
1
],
[
"!=",
"rdCtg",
2
],
[
"!=",
"rdCtg",
3
]
],
"paint": {
"line-color": "#000000",
"line-width": {
"base": 1.2,
"stops": [
[
15,
1.2
],
[
20,
15
]
]
},
"line-translate": {
"stops": [
[
14,
[
0,
0
]
],
[
17,
[
5,
2
]
]
]
},
"line-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.2,
17,
0.8,
18,
0
],
"line-blur": {
"stops": [
[
14,
20
],
[
17,
25
]
]
}
}
},
{
"id": "highway-secondary-bridge-casing-blur",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"!=",
"rnkWidth",
0
],
[
"!=",
"rnkWidth",
4
],
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"in",
"rdCtg",
0,
1,
2
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round",
"line-cap": "round"
},
"paint": {
"line-color": "#000000",
"line-translate": {
"stops": [
[
14,
[
0,
0
]
],
[
17,
[
5,
2
]
]
]
},
"line-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.2,
17,
0.8,
18,
0
],
"line-blur": {
"stops": [
[
14,
20
],
[
17,
25
]
]
},
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
]
}
},
{
"id": "highway-primary-bridge-casing-blur",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"==",
"rnkWidth",
4
],
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"in",
"rdCtg",
0,
1,
2
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round",
"line-cap": "round"
},
"paint": {
"line-color": "#000000",
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
],
"line-translate": {
"stops": [
[
14,
[
0,
0
]
],
[
17,
[
5,
2
]
]
]
},
"line-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.2,
17,
0.8,
18,
0
],
"line-blur": {
"stops": [
[
14,
20
],
[
17,
25
]
]
}
}
},
{
"id": "highway-motorway-bridge-casing-blur",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 6,
"filter": [
"any",
[
"all",
[
"in",
"ftCode",
2702,
2703
],
[
"any",
[
"==",
"motorway",
1
],
[
"==",
"rdCtg",
3
]
]
],
[
"==",
"ftCode",
52703
]
],
"layout": {
"line-join": "round",
"line-cap": "round"
},
"paint": {
"line-color": "#000000",
"line-translate": {
"stops": [
[
14,
[
0,
0
]
],
[
17,
[
5,
2
]
]
]
},
"line-opacity": {
"stops": [
[
14,
0.2
],
[
17,
0.6
]
]
},
"line-blur": {
"stops": [
[
14,
20
],
[
17,
30
]
]
},
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
]
}
},
{
"id": "highway-motorway-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 4,
"filter": [
"any",
[
"all",
[
">=",
"ftCode",
2700
],
[
"<",
"ftCode",
2800
],
[
"!=",
"ftCode",
2702
],
[
"!=",
"ftCode",
2703
],
[
"!=",
"ftCode",
2704
],
[
"any",
[
"==",
"motorway",
1
],
[
"==",
"rdCtg",
3
]
]
],
[
"==",
"ftCode",
52703
]
],
"layout": {
"line-cap": "butt",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#4ed19e",
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
],
"line-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
8,
0.6,
11,
1
]
}
},
{
"id": "highway-minor",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"filter": [
"all",
[
">=",
"ftCode",
2700
],
[
"<",
"ftCode",
2800
],
[
"!=",
"ftCode",
2704
]
],
"layout": {
"line-cap": "round",
"line-join": "round"
},
"paint": {
"line-color": [
"step",
[
"zoom"
],
"#ffffff",
16,
"#f5f5f5"
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
13.5,
0,
14,
1.2,
16,
2.2,
20,
16
]
}
},
{
"id": "highway-secondary",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"any",
[
"==",
"ftCode",
2701
]
],
[
"!=",
"motorway",
1
],
[
"!=",
"rdCtg",
3
],
[
"any",
[
"in",
"rdCtg",
0,
1,
2
],
[
"==",
"rnkWidth",
4
]
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": [
"step",
[
"zoom"
],
"#ffffff",
16,
"#f5f5f5"
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.5,
12,
0.8,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "highway-primary",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"==",
"rnkWidth",
4
],
[
"any",
[
"==",
"ftCode",
2701
]
],
[
"!=",
"motorway",
1
],
[
"!=",
"rdCtg",
3
],
[
"in",
"rdCtg",
0,
1,
2,
6
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-cap": "round",
"line-join": "round"
},
"paint": {
"line-color": [
"step",
[
"zoom"
],
"#ffffff",
16,
"#f5f5f5"
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.5,
12,
0.8,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "road-outline",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 16,
"filter": [
"all",
[
">=",
"ftCode",
2200
],
[
"<",
"ftCode",
2700
]
],
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#DDDDDD",
"line-width": 2
}
},
{
"id": "highway-motorway",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 6,
"filter": [
"any",
[
"all",
[
">=",
"ftCode",
2700
],
[
"<",
"ftCode",
2800
],
[
"!=",
"ftCode",
2702
],
[
"!=",
"ftCode",
2703
],
[
"!=",
"ftCode",
2704
],
[
"any",
[
"==",
"motorway",
1
],
[
"==",
"rdCtg",
3
]
]
],
[
"==",
"ftCode",
52703
]
],
"layout": {
"line-cap": "round",
"line-join": "round"
},
"paint": {
"line-color": [
"interpolate",
[
"linear"
],
[
"zoom"
],
6,
"#00A54E",
13,
"#3dcc80"
],
"line-width": [
"interpolate",
[
"linear"
],
[
"zoom"
],
6,
2,
8,
2,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "structurea-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "structurea",
"minzoom": 15,
"filter": [
"all",
[
"==",
"$type",
"Polygon"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"line-color": "#DEDEDE",
"line-width": {
"stops": [
[
15,
1
],
[
18,
3
]
]
}
}
},
{
"id": "structurea",
"type": "fill",
"source": "gsi-japan",
"source-layer": "structurea",
"minzoom": 15,
"filter": [
"all",
[
"==",
"$type",
"Polygon"
]
],
"layout": {
"visibility": "visible"
},
"paint": {
"fill-color": "#FAFAFA"
}
},
{
"id": "highway-secondary-tunnel-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 4,
"filter": [
"any",
[
"all",
[
"==",
"ftCode",
2704
],
[
"!=",
"motorway",
1
],
[
"!=",
"rdCtg",
3
],
[
"any",
[
"in",
"rdCtg",
0,
1,
2
],
[
"==",
"rnkWidth",
4
]
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": "#9C9DA2",
"line-dasharray": [
0.5,
0.25
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
]
}
},
{
"id": "highway-secondary-tunnel",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 4,
"filter": [
"any",
[
"all",
[
"==",
"ftCode",
2704
],
[
"!=",
"motorway",
1
],
[
"!=",
"rdCtg",
3
],
[
"any",
[
"in",
"rdCtg",
0,
1,
2
],
[
"==",
"rnkWidth",
4
]
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": "#D8D8D8",
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.5,
12,
0.8,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "highway-primary-tunnel-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"==",
"rnkWidth",
4
],
[
"in",
"ftCode",
2704
],
[
"!=",
"motorway",
1
],
[
"in",
"rdCtg",
0,
1,
2
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": "#9C9DA2",
"line-dasharray": [
0.5,
0.25
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
]
}
},
{
"id": "highway-primary-tunnel",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"==",
"rnkWidth",
4
],
[
"in",
"ftCode",
2704
],
[
"!=",
"motorway",
1
],
[
"in",
"rdCtg",
0,
1,
2
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#D8D8D8",
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.5,
12,
0.8,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "highway-motorway-tunnel-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 6,
"filter": [
"all",
[
"==",
"ftCode",
2704
],
[
"any",
[
"==",
"motorway",
1
],
[
"==",
"rdCtg",
3
]
]
],
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": "#9C9DA2",
"line-dasharray": [
0.5,
0.25
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
]
}
},
{
"id": "highway-motorway-tunnel",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 6,
"filter": [
"all",
[
"==",
"ftCode",
2704
],
[
"any",
[
"==",
"motorway",
1
],
[
"==",
"rdCtg",
3
]
]
],
"layout": {
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-color": {
"stops": [
[
8,
"#00A54E"
],
[
13,
"#D8D8D8"
]
]
},
"line-width": [
"interpolate",
[
"linear"
],
[
"zoom"
],
6,
2,
8,
2,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "highway-minor-bridge-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"all",
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"!=",
"rdCtg",
0
],
[
"!=",
"rdCtg",
1
],
[
"!=",
"rdCtg",
2
],
[
"!=",
"rdCtg",
3
]
],
"paint": {
"line-color": "#f8f4f0",
"line-width": {
"base": 1.2,
"stops": [
[
15,
1.2
],
[
20,
18
]
]
}
}
},
{
"id": "highway-minor-bridge",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"all",
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"!=",
"rdCtg",
0
],
[
"!=",
"rdCtg",
1
],
[
"!=",
"rdCtg",
2
],
[
"!=",
"rdCtg",
3
]
],
"paint": {
"line-color": [
"step",
[
"zoom"
],
"#ffffff",
16,
"#f5f5f5"
],
"line-width": {
"base": 1.2,
"stops": [
[
15,
1.2
],
[
20,
4
]
]
},
"line-dasharray": [
1.5,
0.75
]
}
},
{
"id": "highway-secondary-bridge-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"!=",
"rnkWidth",
0
],
[
"!=",
"rnkWidth",
4
],
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"in",
"rdCtg",
0,
1,
2
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": "rgba(222, 222, 222, 1)",
"line-opacity": 1,
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
]
}
},
{
"id": "highway-secondary-bridge",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"!=",
"rnkWidth",
0
],
[
"!=",
"rnkWidth",
4
],
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"in",
"rdCtg",
0,
1,
2
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": [
"step",
[
"zoom"
],
"#ffffff",
16,
"#f5f5f5"
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.5,
12,
0.8,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "highway-primary-bridge-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"==",
"rnkWidth",
4
],
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"in",
"rdCtg",
0,
1,
2
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": "rgba(222, 222, 222, 1)",
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
]
}
},
{
"id": "highway-primary-bridge",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 7,
"filter": [
"any",
[
"all",
[
"==",
"rnkWidth",
4
],
[
"in",
"ftCode",
2702,
2703
],
[
"!=",
"motorway",
1
],
[
"in",
"rdCtg",
0,
1,
2
]
],
[
"all",
[
">=",
"ftCode",
52700
],
[
"<",
"ftCode",
52800
],
[
"!=",
"ftCode",
52703
]
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": [
"step",
[
"zoom"
],
"#ffffff",
16,
"#f5f5f5"
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.5,
12,
0.8,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "highway-motorway-bridge-casing",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 6,
"filter": [
"any",
[
"all",
[
"in",
"ftCode",
2702,
2703
],
[
"any",
[
"==",
"motorway",
1
],
[
"==",
"rdCtg",
3
]
]
],
[
"==",
"ftCode",
52703
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": "#4ed19e",
"line-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
8,
0,
11,
1
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.6,
12,
0.9,
14,
4,
16,
14,
18,
24,
19,
72,
20,
166
]
}
},
{
"id": "highway-motorway-bridge",
"type": "line",
"source": "gsi-japan",
"source-layer": "road",
"minzoom": 6,
"filter": [
"any",
[
"all",
[
"in",
"ftCode",
2702,
2703
],
[
"any",
[
"==",
"motorway",
1
],
[
"==",
"rdCtg",
3
]
]
],
[
"==",
"ftCode",
52703
]
],
"layout": {
"line-join": "round"
},
"paint": {
"line-color": [
"interpolate",
[
"linear"
],
[
"zoom"
],
6,
"#00A54E",
13,
"#3dcc80"
],
"line-width": [
"interpolate",
[
"exponential",
0.9
],
[
"zoom"
],
8,
0,
9,
0.5,
12,
0.8,
14,
3,
16,
10,
18,
20,
19,
68,
20,
160
]
}
},
{
"id": "railway-subway",
"type": "line",
"source": "gsi-japan",
"source-layer": "railway",
"minzoom": 13,
"filter": [
"any",
[
"==",
"rtCode10",
"2"
],
[
"all",
[
">=",
"rtCode",
"40203000000"
],
[
"<",
"rtCode",
"40204000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40203000000"
],
[
"<",
"rtCode1",
"40204000000"
]
]
],
"paint": {
"line-color": "#9dabdd",
"line-opacity": 1,
"line-width": 1.5
}
},
{
"id": "railway-tunnel",
"type": "line",
"source": "gsi-japan",
"source-layer": "railway",
"minzoom": 10,
"filter": [
"all",
[
"in",
"railState",
100,
200,
300,
2,
3,
4
]
],
"paint": {
"line-color": "#908150",
"line-opacity": 0.6,
"line-width": {
"stops": [
[
10,
1
],
[
22,
3
]
]
},
"line-dasharray": [
3,
2
]
}
},
{
"id": "railway-minor",
"type": "line",
"source": "gsi-japan",
"source-layer": "railway",
"minzoom": 14,
"filter": [
"all",
[
"in",
"railState",
0,
200,
400,
4,
5,
6,
7
],
[
"any",
[
"==",
"rtCode10",
"0"
],
[
"!has",
"rtCode10"
]
],
[
"all",
[
">=",
"rtCode1",
"40217000000"
],
[
"<",
"rtCode1",
"40218000000"
]
]
],
"paint": {
"line-color": "#999999",
"line-width": {
"stops": [
[
10,
1
],
[
22,
2
]
]
}
}
},
{
"id": "railway-minor-hatching",
"type": "line",
"source": "gsi-japan",
"source-layer": "railway",
"minzoom": 14,
"filter": [
"all",
[
"in",
"railState",
0,
200,
400,
4,
5,
6,
7
],
[
"any",
[
"==",
"rtCode10",
"0"
],
[
"!has",
"rtCode10"
]
],
[
"all",
[
">=",
"rtCode1",
"40217000000"
],
[
"<",
"rtCode1",
"40218000000"
]
]
],
"paint": {
"line-color": "#999999",
"line-dasharray": [
0.2,
1.5
],
"line-width": {
"stops": [
[
10,
4
],
[
22,
8
]
]
}
}
},
{
"id": "railway-secondary",
"type": "line",
"source": "gsi-japan",
"source-layer": "railway",
"minzoom": 10,
"filter": [
"all",
[
"in",
"railState",
0,
200,
400,
4,
5,
6,
7
],
[
"any",
[
"==",
"rtCode10",
"0"
],
[
"!has",
"rtCode10"
]
],
[
"any",
[
"all",
[
">=",
"rtCode",
"40202000000"
],
[
"<",
"rtCode",
"40203000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40202000000"
],
[
"<",
"rtCode1",
"40203000000"
]
],
[
"all",
[
">=",
"rtCode",
"40205000000"
],
[
"<",
"rtCode",
"40206000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40205000000"
],
[
"<",
"rtCode1",
"40206000000"
]
],
[
"all",
[
">=",
"rtCode",
"40204000000"
],
[
"<",
"rtCode",
"40205000000"
]
],
[
"all",
[
">=",
"rtCode",
"40217000000"
],
[
"<",
"rtCode",
"40218000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40204000000"
],
[
"<",
"rtCode1",
"40205000000"
]
]
]
],
"paint": {
"line-color": "#999999",
"line-width": {
"stops": [
[
10,
1
],
[
22,
2
]
]
}
}
},
{
"id": "railway-secondary-hatching",
"type": "line",
"source": "gsi-japan",
"source-layer": "railway",
"minzoom": 10,
"filter": [
"all",
[
"in",
"railState",
0,
200,
400,
4,
5,
6,
7
],
[
"any",
[
"==",
"rtCode10",
"0"
],
[
"!has",
"rtCode10"
]
],
[
"any",
[
"all",
[
">=",
"rtCode",
"40202000000"
],
[
"<",
"rtCode",
"40203000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40202000000"
],
[
"<",
"rtCode1",
"40203000000"
]
],
[
"all",
[
">=",
"rtCode",
"40205000000"
],
[
"<",
"rtCode",
"40206000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40205000000"
],
[
"<",
"rtCode1",
"40206000000"
]
],
[
"all",
[
">=",
"rtCode",
"40204000000"
],
[
"<",
"rtCode",
"40205000000"
]
],
[
"all",
[
">=",
"rtCode",
"40217000000"
],
[
"<",
"rtCode",
"40218000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40204000000"
],
[
"<",
"rtCode1",
"40205000000"
]
]
]
],
"paint": {
"line-color": "#999999",
"line-dasharray": [
0.2,
1.5
],
"line-width": {
"stops": [
[
10,
4
],
[
22,
8
]
]
}
}
},
{
"id": "railway-jr",
"type": "line",
"source": "gsi-japan",
"source-layer": "railway",
"minzoom": 10,
"filter": [
"all",
[
"in",
"railState",
0,
200,
400,
4,
5,
6,
7
],
[
"any",
[
"==",
"rtCode10",
"0"
],
[
"==",
"rtCode10",
"1"
],
[
"!has",
"rtCode10"
]
],
[
"any",
[
"all",
[
">=",
"rtCode",
"40201000000"
],
[
"<",
"rtCode",
"40202000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40201000000"
],
[
"<",
"rtCode1",
"40202000000"
]
],
[
"all",
[
">=",
"rtCode",
"40216000000"
],
[
"<",
"rtCode",
"40217000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40216000000"
],
[
"<",
"rtCode1",
"40217000000"
]
]
]
],
"paint": {
"line-color": "#999999",
"line-width": {
"stops": [
[
6,
2
],
[
10,
3
],
[
18,
4
],
[
22,
20
]
]
}
}
},
{
"id": "railway-jr-hatching",
"type": "line",
"source": "gsi-japan",
"source-layer": "railway",
"minzoom": 10,
"filter": [
"all",
[
"in",
"railState",
0,
200,
400,
4,
5,
6,
7
],
[
"any",
[
"==",
"rtCode10",
"0"
],
[
"==",
"rtCode10",
"1"
],
[
"!has",
"rtCode10"
]
],
[
"any",
[
"all",
[
">=",
"rtCode",
"40201000000"
],
[
"<",
"rtCode",
"40202000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40201000000"
],
[
"<",
"rtCode1",
"40202000000"
]
],
[
"all",
[
">=",
"rtCode",
"40216000000"
],
[
"<",
"rtCode",
"40217000000"
]
],
[
"all",
[
">=",
"rtCode1",
"40216000000"
],
[
"<",
"rtCode1",
"40217000000"
]
]
]
],
"paint": {
"line-color": "#FFFFFF",
"line-dasharray": [
3,
4
],
"line-width": {
"stops": [