Skip to content

Commit

Permalink
* add initial set of lapis and slategray icons. [#238]
Browse files Browse the repository at this point in the history
* adjust light earth color
* adjust POI text scaling at z17+
  • Loading branch information
bdon committed Oct 23, 2024
1 parent 79010b9 commit b67516e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 7 deletions.
45 changes: 39 additions & 6 deletions styles/src/base_layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1506,22 +1506,37 @@ export function labels_layers(
["get", "kind"],
[
"literal",
["beach", "forest", "marina", "park", "peak", "zoo"],
["beach", "forest", "marina", "park", "peak", "zoo", "garden", "bench", "aerodrome", "station", "bus_stop", "ferry_terminal", "stadium", "university", "library", "school", "animal", "toilets", "drinking_water"]
],
],
[">=", ["zoom"], ["get", "min_zoom"]],
[">=", ["zoom"], ["+",["get", "min_zoom"],0]],
],
layout: {
"icon-image": ["get", "kind"],
"icon-image": [
"match",
["get", "kind"],
"station",
"train_station",
["get", "kind"]
],
"text-font": [t.regular || "Noto Sans Regular"],
"text-justify": "auto",
"text-field": get_multiline_name(
lang,
script,
t.regular
) as DataDrivenPropertyValueSpecification<string>,
"text-size": 10,
"text-size": [
"interpolate",
["linear"],
["zoom"],
17,
10,
19,
16,
],
"text-max-width": 8,
"text-offset": [1, 0],
"text-offset": [1.1, 0],
"text-variable-anchor": ["left", "right"],
},
paint: {
Expand All @@ -1532,10 +1547,28 @@ export function labels_layers(
["get", "kind"],
[
"literal",
["beach", "forest", "marina", "park", "peak", "zoo"],
["beach", "forest", "marina", "park", "peak", "zoo", "garden", "bench"],
],
],
t.pois.green,
[
"in",
["get", "kind"],
[
"literal",
["aerodrome", "station", "bus_stop", "ferry_terminal"],
],
],
t.pois.lapis,
[
"in",
["get", "kind"],
[
"literal",
["stadium", "university", "library", "school", "animal", "toilets", "drinking_water"],
],
],
t.pois.slategray,
t.earth,
],
},
Expand Down
2 changes: 1 addition & 1 deletion styles/src/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const CONTRAST: Theme = {

export const LIGHT: Theme = {
background: "#cccccc",
earth: "#e0e0e0",
earth: "#e2dfda",
park_a: "#cfddd5",
park_b: "#9cd3b4",
hospital: "#e4dad9",
Expand Down

0 comments on commit b67516e

Please sign in to comment.