Skip to content

Commit

Permalink
feat: Change contry label color
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Feb 17, 2022
1 parent ad01209 commit 816b4e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/charts/map/get-base-layer-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const BORDER_COLOR = {
lowZoom: "hsl(0, 0%, 50%)",
highZoom: "hsl(0, 0%, 75%)",
};
const COUNTRY_LABEL_COLOR = "rgba(0, 0, 0, 0.9)";

interface Props {
locale: Locale;
Expand Down Expand Up @@ -92,7 +93,7 @@ export const getBaseLayerStyle = (props: Props) => {
{
id: "contour_line",
type: "line",
metadata: { "maputnik:comment": "color: rgb(191,138,64)" },
metadata: { "maputnik:comment": "color: rgba(191,138,64, 0)" },
source: "swissmaptiles",
"source-layer": "contour_line",
minzoom: 13,
Expand Down Expand Up @@ -5883,7 +5884,7 @@ export const getBaseLayerStyle = (props: Props) => {
visibility: "visible",
},
paint: {
"text-color": "rgba(145, 70, 145, 0.9)",
"text-color": COUNTRY_LABEL_COLOR,
"text-halo-blur": 1,
"text-halo-color": "rgba(255, 255, 255, 0.8)",
"text-halo-width": 1,
Expand Down

0 comments on commit 816b4e3

Please sign in to comment.