Skip to content

Commit

Permalink
Merge pull request #308 from headwaymaps/mkirk/show-states
Browse files Browse the repository at this point in the history
show state borders sooner
  • Loading branch information
michaelkirk authored Jan 24, 2024
2 parents 3c3293b + 25ecfcb commit ecf52e7
Showing 1 changed file with 33 additions and 37 deletions.
70 changes: 33 additions & 37 deletions services/tileserver/styles/basic/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"raster-opacity": {
"stops": [
[5, 0.8],
[6, 0.0]
[6, 0]
]
}
}
Expand All @@ -54,7 +54,7 @@
"fill-opacity": {
"stops": [
[7, 0.4],
[8, 0.0]
[8, 0]
]
},
"fill-color": [
Expand Down Expand Up @@ -121,7 +121,7 @@
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["all", ["==", "class", "wood"]],
"filter": ["==", "class", "wood"],
"paint": {
"fill-antialias": false,
"fill-color": "hsl(101,62.6%,43.3%)",
Expand All @@ -133,7 +133,7 @@
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["all", ["==", "class", "grass"]],
"filter": ["==", "class", "grass"],
"paint": {
"fill-antialias": false,
"fill-color": "hsl(101,62.6%,63.3%)",
Expand All @@ -145,7 +145,7 @@
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["all", ["==", "class", "ice"]],
"filter": ["==", "class", "ice"],
"paint": {
"fill-antialias": false,
"fill-color": "rgba(224, 236, 236, 1)",
Expand Down Expand Up @@ -181,7 +181,7 @@
"type": "line",
"source": "openmaptiles",
"source-layer": "waterway",
"filter": ["all", ["==", "brunnel", "tunnel"]],
"filter": ["==", "brunnel", "tunnel"],
"paint": {
"line-color": "rgb(141,220,248)",
"line-dasharray": [3, 3],
Expand All @@ -206,15 +206,15 @@
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["all", ["==", "class", "sand"]],
"filter": ["==", "class", "sand"],
"paint": { "fill-color": "rgba(247, 239, 195, 1)" }
},
{
"id": "water",
"type": "fill",
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all", ["!=", "brunnel", "tunnel"]],
"filter": ["!=", "brunnel", "tunnel"],
"paint": { "fill-color": "rgb(141,220,248)" }
},
{
Expand Down Expand Up @@ -745,7 +745,7 @@
"type": "fill",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "$type", "Polygon"]],
"filter": ["==", "$type", "Polygon"],
"paint": { "fill-pattern": "pedestrian_polygon" }
},
{
Expand Down Expand Up @@ -1695,18 +1695,18 @@
"type": "line",
"source": "openmaptiles",
"source-layer": "boundary",
"minzoom": 8,
"filter": ["all", ["in", "admin_level", 3, 4]],
"minzoom": 3,
"filter": ["in", "admin_level", 3, 4],
"layout": { "line-join": "round" },
"paint": {
"line-color": "#9e9cab",
"line-dasharray": [5, 1],
"line-color": "#747980",
"line-dasharray": [1.5, 1.5],
"line-width": {
"base": 1,
"stops": [
[4, 0.4],
[5, 1],
[12, 1.8]
[3, 0.6],
[6, 1],
[10, 2]
]
}
}
Expand Down Expand Up @@ -1744,7 +1744,7 @@
"source": "openmaptiles",
"source-layer": "boundary",
"minzoom": 5,
"filter": ["all", ["==", "admin_level", 2]],
"filter": ["==", "admin_level", 2],
"layout": { "line-cap": "round", "line-join": "round" },
"paint": {
"line-color": "hsl(248, 1%, 41%)",
Expand Down Expand Up @@ -1810,7 +1810,7 @@
"type": "symbol",
"source": "openmaptiles",
"source-layer": "waterway",
"filter": ["all", ["==", "$type", "LineString"]],
"filter": ["==", "$type", "LineString"],
"layout": {
"text-field": "{name}",
"text-font": ["Roboto Regular"],
Expand Down Expand Up @@ -1926,7 +1926,7 @@
"type": "symbol",
"source": "openmaptiles",
"source-layer": "poi",
"filter": ["all", ["in", "class", "bus", "rail", "airport"]],
"filter": ["in", "class", "bus", "rail", "airport"],
"layout": {
"icon-image": "{class}_11",
"text-anchor": "left",
Expand All @@ -1948,7 +1948,6 @@
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"filter": ["all"],
"layout": {
"symbol-placement": "line",
"text-anchor": "center",
Expand Down Expand Up @@ -1976,7 +1975,7 @@
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 7,
"filter": ["all", ["<=", "ref_length", 6]],
"filter": ["<=", "ref_length", 6],
"layout": {
"icon-image": "default_{ref_length}",
"icon-rotation-alignment": "viewport",
Expand All @@ -2002,17 +2001,14 @@
"source": "openmaptiles",
"source-layer": "place",
"filter": [
"all",
[
"in",
"class",
"hamlet",
"island",
"islet",
"neighbourhood",
"suburb",
"quarter"
]
"in",
"class",
"hamlet",
"island",
"islet",
"neighbourhood",
"suburb",
"quarter"
],
"layout": {
"text-field": "{name_en}",
Expand All @@ -2039,7 +2035,7 @@
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["all", ["==", "class", "village"]],
"filter": ["==", "class", "village"],
"layout": {
"text-field": "{name_en}",
"text-font": ["Roboto Regular"],
Expand All @@ -2063,7 +2059,7 @@
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["all", ["==", "class", "town"]],
"filter": ["==", "class", "town"],
"layout": {
"icon-image": {
"base": 1,
Expand Down Expand Up @@ -2097,7 +2093,7 @@
"source": "openmaptiles",
"source-layer": "place",
"minzoom": 5,
"filter": ["all", ["==", "class", "city"]],
"filter": ["==", "class", "city"],
"layout": {
"icon-image": {
"base": 1,
Expand Down Expand Up @@ -2133,7 +2129,7 @@
"source": "openmaptiles",
"source-layer": "place",
"maxzoom": 6,
"filter": ["all", ["==", "class", "state"]],
"filter": ["==", "class", "state"],
"layout": {
"text-field": "{name_en}",
"text-font": ["Roboto Condensed Italic"],
Expand Down Expand Up @@ -2232,7 +2228,7 @@
"source": "openmaptiles",
"source-layer": "place",
"maxzoom": 1,
"filter": ["all", ["==", "class", "continent"]],
"filter": ["==", "class", "continent"],
"layout": {
"text-field": "{name_en}",
"text-font": ["Roboto Condensed Italic"],
Expand Down

0 comments on commit ecf52e7

Please sign in to comment.