OSM OpenMapTiles style (#1420)
* OpenMapTiles style * Rename style snippets from layer_name.json to defaultstyle.json * Add README to icons dir. * Add README to icons dir. * Rename snippets to style.json * Fix spritezero - move icons to svg subdir * Move icons from style/icons/svg directly to style/icons Co-authored-by: Tomas Pohanka <TomPohys@gmail.com>
This commit is contained in:
373
layers/waterway/style.json
Normal file
373
layers/waterway/style.json
Normal file
@@ -0,0 +1,373 @@
|
||||
{
|
||||
"layers": [
|
||||
{
|
||||
"id": "waterway_tunnel",
|
||||
"type": "line",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "waterway",
|
||||
"minzoom": 14,
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"visibility": "visible"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#a0c8f0",
|
||||
"line-width": {
|
||||
"base": 1.3,
|
||||
"stops": [
|
||||
[
|
||||
13,
|
||||
0.5
|
||||
],
|
||||
[
|
||||
20,
|
||||
6
|
||||
]
|
||||
]
|
||||
},
|
||||
"line-dasharray": [
|
||||
2,
|
||||
4
|
||||
]
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"==",
|
||||
"brunnel",
|
||||
"tunnel"
|
||||
]
|
||||
],
|
||||
"order": 12
|
||||
},
|
||||
{
|
||||
"id": "waterway_river",
|
||||
"type": "line",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "waterway",
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"visibility": "visible"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#a0c8f0",
|
||||
"line-width": {
|
||||
"base": 1.2,
|
||||
"stops": [
|
||||
[
|
||||
11,
|
||||
0.5
|
||||
],
|
||||
[
|
||||
20,
|
||||
6
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"==",
|
||||
"class",
|
||||
"river"
|
||||
],
|
||||
[
|
||||
"!=",
|
||||
"brunnel",
|
||||
"tunnel"
|
||||
],
|
||||
[
|
||||
"!=",
|
||||
"intermittent",
|
||||
1
|
||||
]
|
||||
],
|
||||
"order": 13
|
||||
},
|
||||
{
|
||||
"id": "waterway_river_intermittent",
|
||||
"type": "line",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "waterway",
|
||||
"layout": {
|
||||
"line-cap": "round"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#a0c8f0",
|
||||
"line-width": {
|
||||
"base": 1.2,
|
||||
"stops": [
|
||||
[
|
||||
11,
|
||||
0.5
|
||||
],
|
||||
[
|
||||
20,
|
||||
6
|
||||
]
|
||||
]
|
||||
},
|
||||
"line-dasharray": [
|
||||
3,
|
||||
2
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"==",
|
||||
"class",
|
||||
"river"
|
||||
],
|
||||
[
|
||||
"!=",
|
||||
"brunnel",
|
||||
"tunnel"
|
||||
],
|
||||
[
|
||||
"==",
|
||||
"intermittent",
|
||||
1
|
||||
]
|
||||
],
|
||||
"order": 14
|
||||
},
|
||||
{
|
||||
"id": "waterway_other",
|
||||
"type": "line",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "waterway",
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"visibility": "visible"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#a0c8f0",
|
||||
"line-width": {
|
||||
"base": 1.3,
|
||||
"stops": [
|
||||
[
|
||||
13,
|
||||
0.5
|
||||
],
|
||||
[
|
||||
20,
|
||||
6
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"metadata": {},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"!=",
|
||||
"class",
|
||||
"river"
|
||||
],
|
||||
[
|
||||
"!=",
|
||||
"brunnel",
|
||||
"tunnel"
|
||||
],
|
||||
[
|
||||
"!=",
|
||||
"intermittent",
|
||||
1
|
||||
]
|
||||
],
|
||||
"order": 15
|
||||
},
|
||||
{
|
||||
"id": "waterway_other_intermittent",
|
||||
"type": "line",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "waterway",
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"visibility": "visible"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#a0c8f0",
|
||||
"line-width": {
|
||||
"base": 1.3,
|
||||
"stops": [
|
||||
[
|
||||
13,
|
||||
0.5
|
||||
],
|
||||
[
|
||||
20,
|
||||
6
|
||||
]
|
||||
]
|
||||
},
|
||||
"line-dasharray": [
|
||||
4,
|
||||
3
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"!=",
|
||||
"class",
|
||||
"river"
|
||||
],
|
||||
[
|
||||
"!=",
|
||||
"brunnel",
|
||||
"tunnel"
|
||||
],
|
||||
[
|
||||
"==",
|
||||
"intermittent",
|
||||
1
|
||||
]
|
||||
],
|
||||
"order": 16
|
||||
},
|
||||
{
|
||||
"id": "waterway-bridge-case",
|
||||
"type": "line",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "waterway",
|
||||
"layout": {
|
||||
"line-cap": "butt",
|
||||
"line-join": "miter"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "#bbbbbb",
|
||||
"line-width": {
|
||||
"base": 1.6,
|
||||
"stops": [
|
||||
[
|
||||
12,
|
||||
0.5
|
||||
],
|
||||
[
|
||||
20,
|
||||
5
|
||||
]
|
||||
]
|
||||
},
|
||||
"line-gap-width": {
|
||||
"base": 1.3,
|
||||
"stops": [
|
||||
[
|
||||
13,
|
||||
0.5
|
||||
],
|
||||
[
|
||||
20,
|
||||
6
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"==",
|
||||
"$type",
|
||||
"LineString"
|
||||
],
|
||||
[
|
||||
"==",
|
||||
"brunnel",
|
||||
"bridge"
|
||||
]
|
||||
],
|
||||
"order": 103
|
||||
},
|
||||
{
|
||||
"id": "waterway-bridge",
|
||||
"type": "line",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "waterway",
|
||||
"layout": {
|
||||
"line-cap": "round",
|
||||
"line-join": "round"
|
||||
},
|
||||
"paint": {
|
||||
"line-color": "rgba(134, 204, 250, 1)",
|
||||
"line-width": {
|
||||
"base": 1.3,
|
||||
"stops": [
|
||||
[
|
||||
13,
|
||||
0.5
|
||||
],
|
||||
[
|
||||
20,
|
||||
6
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"==",
|
||||
"$type",
|
||||
"LineString"
|
||||
],
|
||||
[
|
||||
"==",
|
||||
"brunnel",
|
||||
"bridge"
|
||||
]
|
||||
],
|
||||
"order": 104
|
||||
},
|
||||
{
|
||||
"id": "water_way_name",
|
||||
"type": "symbol",
|
||||
"source": "openmaptiles",
|
||||
"source-layer": "waterway",
|
||||
"minzoom": 0,
|
||||
"layout": {
|
||||
"text-font": [
|
||||
"Noto Sans Regular",
|
||||
"Noto Sans Bold"
|
||||
],
|
||||
"text-size": {
|
||||
"stops": [
|
||||
[
|
||||
11,
|
||||
10
|
||||
],
|
||||
[
|
||||
13,
|
||||
12
|
||||
]
|
||||
]
|
||||
},
|
||||
"text-field": "{name:latin}\n{name:nonlatin}",
|
||||
"visibility": "visible",
|
||||
"symbol-spacing": 400,
|
||||
"text-max-width": 5,
|
||||
"symbol-placement": "line"
|
||||
},
|
||||
"paint": {
|
||||
"text-color": "#4d80b3",
|
||||
"text-halo-color": "rgba(255, 255, 255, 0.8)",
|
||||
"text-halo-width": 1
|
||||
},
|
||||
"metadata": {},
|
||||
"filter": [
|
||||
"all",
|
||||
[
|
||||
"==",
|
||||
"$type",
|
||||
"LineString"
|
||||
]
|
||||
],
|
||||
"order": 142
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user