Skip to content

Commit 7ad4ef6

Browse files
committed
gray color should only be used for "main" roads
1 parent 102a0be commit 7ad4ef6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

web/src/common/colors.ts

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export function bucketize(limits: number[]) {
5050
return buckets;
5151
}
5252

53+
// Like the background of the bike/walk sign
54+
export const signGreen = "#0C793A";
55+
5356
export const Style = {
5457
mapFeature: {
5558
hover: {

web/src/layers/NeighbourhoodRoadLayer.svelte

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
import { hoverStateFilter, LineLayer } from "svelte-maplibre";
77
import { makeRamp } from "svelte-utils/map";
88
import { layerId, roadLineWidth } from "../common";
9-
import { speedColorScale, speedLimits, Style } from "../common/colors";
9+
import {
10+
signGreen,
11+
speedColorScale,
12+
speedLimits,
13+
Style,
14+
} from "../common/colors";
1015
import { roadStyle, thickRoadsForShortcuts } from "../stores";
1116
import type { RenderNeighbourhoodOutput } from "../wasm";
1217
@@ -24,7 +29,7 @@
2429
return ["get", "color"];
2530
}
2631
if (style == "edits") {
27-
return ["case", ["get", "edited"], "grey", "white"];
32+
return ["case", ["get", "edited"], signGreen, "white"];
2833
}
2934
if (style == "speeds") {
3035
return makeRamp(

0 commit comments

Comments
 (0)