Skip to content

Commit e3c1002

Browse files
committed
Radinfra: Fix traffic sign style; improve currentness style
1 parent 241387c commit e3c1002

File tree

4 files changed

+56
-13
lines changed

4 files changed

+56
-13
lines changed

app/src/app/regionen/[regionSlug]/_mapData/mapDataSubcategories/mapboxStyles/groups/radinfra_currentness.ts

+13-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,18 @@ export const mapboxStyleGroupLayers_radinfra_currentness: MapboxStyleLayer[] = [
99
id: 'current-colors',
1010
paint: {
1111
'line-offset': ['interpolate', ['linear'], ['zoom'], 12, 0, 15, -1],
12-
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 1.5, 14, 3, 16, 4],
13-
'line-color': ['step', ['get', 'updated_age'], '#15c65c', 2370, '#f6de09', 3650, '#fda5e4'],
12+
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 1.5, 16, 4],
13+
'line-color': [
14+
'step',
15+
['get', 'updated_age'],
16+
'#15c65c',
17+
1185,
18+
'#b5c615',
19+
2370,
20+
'#ffe500',
21+
3650,
22+
'#fda5e4',
23+
],
1424
},
1525
layout: {
1626
'line-join': 'round',
@@ -23,7 +33,7 @@ export const mapboxStyleGroupLayers_radinfra_currentness: MapboxStyleLayer[] = [
2333
id: 'current-zoomed-out',
2434
paint: {
2535
'line-offset': ['interpolate', ['linear'], ['zoom'], 12, 0, 15, -1],
26-
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 1.5, 14, 3, 16, 4],
36+
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 1.5, 16, 4],
2737
'line-color': 'gray',
2838
},
2939
layout: {

app/src/app/regionen/[regionSlug]/_mapData/mapDataSubcategories/mapboxStyles/groups/radinfra_traffic_signs.ts

+19-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { MapboxStyleLayer } from '../types'
55

66
export const mapboxStyleGroupLayers_radinfra_traffic_signs: MapboxStyleLayer[] = [
77
{
8-
minzoom: 11,
8+
minzoom: 8,
99
layout: {
1010
'line-cap': 'round',
1111
'line-join': 'round',
@@ -15,14 +15,14 @@ export const mapboxStyleGroupLayers_radinfra_traffic_signs: MapboxStyleLayer[] =
1515
id: 'sign-missing',
1616
paint: {
1717
'line-color': '#fda5e4',
18-
'line-width': ['interpolate', ['linear'], ['zoom'], 12, 1, 22, 4],
18+
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 1.5, 20, 4],
1919
'line-opacity': 0.6,
2020
'line-offset': ['interpolate', ['linear'], ['zoom'], 12, 0, 15, -1],
2121
'line-dasharray': [3, 1],
2222
},
2323
},
2424
{
25-
minzoom: 11,
25+
minzoom: 8,
2626
layout: {
2727
'line-cap': 'round',
2828
'line-join': 'round',
@@ -32,8 +32,23 @@ export const mapboxStyleGroupLayers_radinfra_traffic_signs: MapboxStyleLayer[] =
3232
id: 'sign-colors',
3333
paint: {
3434
'line-color': ['match', ['get', 'traffic_sign'], ['none'], '#00c29e', '#a1e217'],
35-
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 1.5, 14, 3, 16, 4],
35+
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 1.5, 16, 4],
3636
'line-opacity': 0.6,
3737
},
3838
},
39+
{
40+
layout: {
41+
'line-join': 'round',
42+
'line-cap': 'round',
43+
},
44+
maxzoom: 9,
45+
filter: ['!', ['has', 'traffic_sign']],
46+
type: 'line',
47+
id: 'current-zoomed-out-traffic-signs',
48+
paint: {
49+
'line-offset': ['interpolate', ['linear'], ['zoom'], 12, 0, 15, -1],
50+
'line-width': ['interpolate', ['linear'], ['zoom'], 10, 1.5, 16, 4],
51+
'line-color': 'gray',
52+
},
53+
},
3954
]

app/src/app/regionen/[regionSlug]/_mapData/mapDataSubcategories/subcat_radinfra_currentness.const.ts

+12-5
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,26 @@ export const bikelanesCurrentnessLegend: FileMapDataSubcategoryStyleLegend[] = [
1818
},
1919
},
2020
{
21-
id: 'ok',
22-
name: '3-6 Jahre', // From 3*365=1.095
21+
id: 'check3',
22+
name: '3-6 Jahre',
2323
style: {
2424
type: 'line',
25-
color: '#f6de09',
25+
color: '#b5c615',
26+
},
27+
},
28+
{
29+
id: 'check6',
30+
name: '6-10 Jahre',
31+
style: {
32+
type: 'line',
33+
color: '#ffe500',
2634
},
2735
},
2836
{
2937
id: 'old',
30-
name: 'Dringed prüfen (6+ Jahre)', // From 6*365=2.190
38+
name: 'Dringed prüfen (10+ Jahre)',
3139
style: {
3240
type: 'line',
33-
// color: '#d8035c',
3441
color: '#fda5e4',
3542
},
3643
},

app/src/app/regionen/[regionSlug]/_mapData/mapDataSubcategories/subcat_radinfra_trafficSigns.const.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@ export const bikelanesTrafficSignLegend: FileMapDataSubcategoryStyleLegend[] = [
2727
{
2828
id: 'missing',
2929
name: 'Angaben fehlen',
30-
style: { type: 'line', color: '#fda5e4', dasharray: [3, 2], width: 2 },
30+
style: {
31+
type: 'line',
32+
color: '#fda5e4',
33+
},
34+
},
35+
{
36+
id: 'missing',
37+
name: 'Auf dieser Zoomstufe können die Daten nicht angezeigt werden',
38+
style: {
39+
type: 'line',
40+
color: 'gray',
41+
},
3142
},
3243
]
3344

0 commit comments

Comments
 (0)