Skip to content

Commit f1035a2

Browse files
committed
slightly more transparent route colors; lighter bezier color for higher contrast to route
1 parent aab1d3f commit f1035a2

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

src/layers/UsePathsLayer.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ function addUnselectedPathsLayer(map: Map, paths: Path[]) {
4646
const styleArray = [
4747
new Style({
4848
stroke: new Stroke({
49-
color: 'rgba(39,93,173,1)',
49+
color: 'rgba(39,93,173,0.8)',
5050
width: 6,
5151
}),
5252
}),
5353
new Style({
5454
stroke: new Stroke({
55-
color: 'rgba(201,217,241,0.8)',
55+
color: 'rgba(201,217,241,0.7)',
5656
width: 4,
5757
}),
5858
}),
@@ -121,9 +121,8 @@ function createBezierLineString(start: number[], end: number[]): LineString {
121121
function addAccessNetworkLayer(map: Map, selectedPath: Path, queryPoints: QueryPoint[]) {
122122
const style = new Style({
123123
stroke: new Stroke({
124-
// color: 'rgba(170,170,170,1)',
125-
color: '#275DAD',
126-
width: 4,
124+
color: 'rgba(143,183,241,0.9)',
125+
width: 5,
127126
lineDash: [1, 10],
128127
lineCap: 'round',
129128
lineJoin: 'round',
@@ -147,14 +146,14 @@ function addSelectedPathsLayer(map: Map, selectedPath: Path) {
147146
const styleArray = [
148147
new Style({
149148
stroke: new Stroke({
150-
color: 'rgba(255,255,255,1)',
151-
width: 9,
149+
color: 'rgba(255,255,255,0.9)',
150+
width: 10,
152151
}),
153152
}),
154153
new Style({
155154
stroke: new Stroke({
156-
color: 'rgb(49,104,187)',
157-
width: 7,
155+
color: 'rgba(39,100,200,0.85)',
156+
width: 8,
158157
}),
159158
}),
160159
]

src/sidebar/RoutingResult.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99

1010
.resultSelectableArea:hover .resultSummary {
11-
border-left: rgba(201, 217, 241, 0.8) solid 0.25rem;
11+
border-left: rgba(201, 217, 241, 0.7) solid 0.25rem;
1212
padding: 0 1rem 0 15px;
1313
}
1414

@@ -21,7 +21,7 @@
2121
}
2222

2323
.selectedResultSummary {
24-
border-left: rgb(49, 104, 187) solid 0.25rem !important;
24+
border-left: rgba(39, 100, 200, 0.85) solid 0.25rem !important;
2525
padding: 0 1rem 0 15px;
2626
}
2727

src/stores/RouteStore.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Store from '@/stores/Store'
22
import { Action } from '@/stores/Dispatcher'
33
import { ClearPoints, ClearRoute, RemovePoint, RouteRequestSuccess, SetPoint, SetSelectedPath } from '@/actions/Actions'
4-
import QueryStore from '@/stores/QueryStore'
54
import { Path, RoutingResult } from '@/api/graphhopper'
65

76
export interface RouteStoreState {

0 commit comments

Comments
 (0)