Skip to content

Commit

Permalink
* change light waterway labels to blue
Browse files Browse the repository at this point in the history
remove dedicated peaks layer
add poi object to themes [#238]
  • Loading branch information
bdon committed Oct 10, 2024
1 parent c622312 commit 19bb367
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 29 deletions.
31 changes: 5 additions & 26 deletions styles/src/base_layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1378,37 +1378,16 @@ export function labels_layers(
filter: ["in", "kind", "river", "stream"],
layout: {
"symbol-placement": "line",
"text-font": ["Noto Sans Regular"],
"text-field": get_multiline_name(
lang,
script,
) as DataDrivenPropertyValueSpecification<string>,
"text-size": 12,
"text-letter-spacing": 0.3,
},
paint: {
"text-color": t.waterway_label,
},
},
{
id: "pois_peak",
type: "symbol",
source: source,
"source-layer": "pois",
filter: ["==", "kind", "peak"],
layout: {
"text-font": ["Noto Sans Italic"],
"text-field": get_multiline_name(
lang,
script,
) as DataDrivenPropertyValueSpecification<string>,
"text-size": ["interpolate", ["linear"], ["zoom"], 10, 8, 16, 12],
"text-letter-spacing": 0.1,
"text-max-width": 9,
"text-size": 12,
"text-letter-spacing": 0.2,
},
paint: {
"text-color": t.peak_label,
"text-halo-width": 1.5,
"text-color": t.ocean_label,
},
},
{
Expand Down Expand Up @@ -1452,7 +1431,7 @@ export function labels_layers(
"fjord",
],
layout: {
"text-font": ["Noto Sans Medium"],
"text-font": ["Noto Sans Italic"],
"text-field": get_multiline_name(
lang,
script,
Expand All @@ -1473,7 +1452,7 @@ export function labels_layers(
"source-layer": "water",
filter: ["in", "kind", "lake", "water"],
layout: {
"text-font": ["Noto Sans Medium"],
"text-font": ["Noto Sans Italic"],
"text-field": get_multiline_name(
lang,
script,
Expand Down
22 changes: 19 additions & 3 deletions styles/src/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export interface Theme {

railway: string;
boundaries: string;
waterway_label: string;

bridges_other_casing: string;
bridges_minor_casing: string;
Expand All @@ -69,14 +68,23 @@ export interface Theme {
roads_label_major: string;
roads_label_major_halo: string;
ocean_label: string;
peak_label: string;
subplace_label: string;
subplace_label_halo: string;
city_label: string;
city_label_halo: string;
state_label: string;
state_label_halo: string;
country_label: string;

pois?: Pois;

// deprecated
peak_label: string;
waterway_label: string;
}

export interface Pois {
green: string;
}

export const CONTRAST: Theme = {
Expand Down Expand Up @@ -230,7 +238,7 @@ export const LIGHT: Theme = {
roads_label_minor_halo: "#ffffff",
roads_label_major: "#938a8d",
roads_label_major_halo: "#ffffff",
ocean_label: "#ffffff",
ocean_label: "#728dd4",
peak_label: "#7e9aa0",
subplace_label: "#8f8f8f",
subplace_label_halo: "#e0e0e0",
Expand All @@ -239,6 +247,10 @@ export const LIGHT: Theme = {
state_label: "#b3b3b3",
state_label_halo: "#e0e0e0",
country_label: "#a3a3a3",

pois: {
green: "#20834D"
}
};

export const DARK: Theme = {
Expand Down Expand Up @@ -320,6 +332,10 @@ export const DARK: Theme = {
state_label: "#3d3d3d",
state_label_halo: "#1f1f1f",
country_label: "#5c5c5c",

pois: {
green: "#30C573"
}
};

export const WHITE: Theme = {
Expand Down

0 comments on commit 19bb367

Please sign in to comment.