Skip to content

Commit bdf9d88

Browse files
committed
front: Add minzoom = 5 for all editoast layers that missed a minZoom
1 parent 81d48f1 commit bdf9d88

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

front/src/common/Map/Layers/Detectors.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export function getDetectorsNameLayerProps(params: {
3232
}): OmitLayer<SymbolLayer> {
3333
const res: OmitLayer<SymbolLayer> = {
3434
type: 'symbol',
35+
minzoom: 8,
3536
layout: {
3637
'text-field': '{extensions_sncf_kp}',
3738
'text-font': ['Roboto Condensed'],

front/src/common/Map/Layers/OperationalPoints.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function OperationalPoints(props: Props) {
2222
const point: LayerProps = {
2323
type: 'circle',
2424
'source-layer': 'operational_points',
25+
minzoom: 8,
2526
paint: {
2627
'circle-stroke-color': colors.op.circle,
2728
'circle-stroke-width': 2,

front/src/common/Map/Layers/Switches.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export function getSwitchesLayerProps(params: {
1414
}): OmitLayer<CircleLayer> {
1515
const res: OmitLayer<CircleLayer> = {
1616
type: 'circle',
17+
minzoom: 8,
1718
paint: {
1819
'circle-stroke-color': params.colors.switches.circle,
1920
'circle-stroke-width': 2,
@@ -32,6 +33,7 @@ export function getSwitchesNameLayerProps(params: {
3233
}): OmitLayer<SymbolLayer> {
3334
const res: OmitLayer<SymbolLayer> = {
3435
type: 'symbol',
36+
minzoom: 8,
3537
layout: {
3638
'text-field': '{label}',
3739
'text-font': ['Roboto Condensed'],

front/src/common/Map/Layers/geographiclayers.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export function geoMainLayer(theme: Theme, bigger = false): Omit<LineLayer, 'sou
55
return {
66
id: 'geoMainLayer',
77
type: 'line',
8+
minzoom: 5,
89
paint: {
910
'line-color': theme.track.major,
1011
'line-width': bigger ? 4 : 1,
@@ -16,6 +17,7 @@ export function geoServiceLayer(theme: Theme): Omit<LineLayer, 'source'> {
1617
return {
1718
id: 'geoServiceLayer',
1819
type: 'line',
20+
minzoom: 5,
1921
filter: ['==', 'type_voie', 'VS'],
2022
paint: {
2123
'line-color': theme.track.minor,

0 commit comments

Comments
 (0)