Skip to content

Commit

Permalink
made sure that the road badges are correctly colored
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Nov 26, 2024
1 parent ae9f558 commit b50af3b
Showing 1 changed file with 98 additions and 52 deletions.
150 changes: 98 additions & 52 deletions map/styles/navigatum-basemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -5413,80 +5413,69 @@
"minzoom": 7,
"filter": [
"all",
[
"<=",
[
"get",
"ref_length"
],
6
],
["<=", ["get", "ref_length"], 6],
[
"!=",
[
"get",
"subclass"
],
[
"literal",
"junction"
]
["get", "subclass"],
["literal", "junction"]
],
[
"!=",
[
"get",
"class"
],
[
"literal",
"path"
]
["get", "class"],
["literal", "path"]
]
],
"layout": {
"icon-image": [
"concat",
"default_",
[
"get",
"ref_length"
]
],
"icon-rotation-alignment": "viewport",
"symbol-placement": [
"step",
[
"zoom"
],
["zoom"],
"point",
11,
"line"
],
"symbol-spacing": 500,
"text-field": [
"to-string",
[
"get",
"ref"
]
],
"text-font": [
"Roboto Regular"
],
"text-offset": [
0,
0.1
["get", "ref"]
],
"text-font": ["Roboto Regular"],
"text-offset": [0, 0.1],
"text-rotation-alignment": "viewport",
"text-size": 10,
"icon-size": 0.8
"icon-text-fit": "both",
"icon-size": 1.4,
"icon-anchor": "center",
"icon-padding": ["literal", [3]],
"icon-offset": [0, -0.5],
"icon-image": "rounded_rectangle"
},
"paint": {
"icon-color": "#fff",
"icon-halo-color": "#000",
"icon-halo-blur": 2,
"icon-halo-width": 4
"icon-color": [
"match",
["slice", ["get", "ref"], 0, 1],
"A",
"#0841bf",
"B",
"#e6c100",
"#008000"
],
"icon-halo-color": [
"match",
["slice", ["get", "ref"], 0, 1],
"B",
"gray",
"white"
],
"text-color": [
"match",
["slice", ["get", "ref"], 0, 1],
"B",
"black",
"white"
],
"icon-halo-width": 4,
"icon-halo-blur": 1
}
},
{
Expand Down Expand Up @@ -6011,5 +6000,62 @@
}
}
],
"id": "navigatum-basemap"
"layout": {
"icon-image": [
"match",
["slice", ["get", "ref"], 0, 1],
"A",
"rounded_rombos",
["literal", "rounded_rectangle"]
],
"icon-rotation-alignment": "viewport",
"symbol-placement": [
"step",
["zoom"],
"point",
11,
"line"
],
"symbol-spacing": 500,
"text-field": [
"to-string",
["get", "ref"]
],
"text-font": ["Roboto Regular"],
"text-offset": [0, 0.1],
"text-rotation-alignment": "viewport",
"text-size": 10,
"icon-text-fit": "both",
"icon-size": 1.4,
"icon-anchor": "center",
"icon-padding": ["literal", [3]],
"icon-offset": [0, -0.5]
},
"paint": {
"icon-color": [
"match",
["slice", ["get", "ref"], 0, 1],
"A",
"#0841bf",
"B",
"#e6c100",
"#008000"
],
"icon-halo-color": [
"match",
["slice", ["get", "ref"], 0, 1],
"A",
"black",
"black"
],
"text-color": [
"match",
["slice", ["get", "ref"], 0, 1],
"A",
"white",
"black"
],
"icon-halo-width": 3,
"icon-halo-blur": 0
}
}

0 comments on commit b50af3b

Please sign in to comment.