diff --git a/front/src/common/Map/Layers/Detectors.tsx b/front/src/common/Map/Layers/Detectors.tsx index f18fcf9eae4..000cbe5faf2 100644 --- a/front/src/common/Map/Layers/Detectors.tsx +++ b/front/src/common/Map/Layers/Detectors.tsx @@ -32,6 +32,7 @@ export function getDetectorsNameLayerProps(params: { }): OmitLayer { const res: OmitLayer = { type: 'symbol', + minzoom: 8, layout: { 'text-field': '{extensions_sncf_kp}', 'text-font': ['Roboto Condensed'], diff --git a/front/src/common/Map/Layers/OperationalPoints.tsx b/front/src/common/Map/Layers/OperationalPoints.tsx index 2d39f93a510..8024bec4c9e 100644 --- a/front/src/common/Map/Layers/OperationalPoints.tsx +++ b/front/src/common/Map/Layers/OperationalPoints.tsx @@ -22,6 +22,7 @@ export default function OperationalPoints(props: Props) { const point: LayerProps = { type: 'circle', 'source-layer': 'operational_points', + minzoom: 8, paint: { 'circle-stroke-color': colors.op.circle, 'circle-stroke-width': 2, diff --git a/front/src/common/Map/Layers/Switches.tsx b/front/src/common/Map/Layers/Switches.tsx index 04f5cf21454..4029e265b05 100644 --- a/front/src/common/Map/Layers/Switches.tsx +++ b/front/src/common/Map/Layers/Switches.tsx @@ -14,6 +14,7 @@ export function getSwitchesLayerProps(params: { }): OmitLayer { const res: OmitLayer = { type: 'circle', + minzoom: 8, paint: { 'circle-stroke-color': params.colors.switches.circle, 'circle-stroke-width': 2, @@ -32,6 +33,7 @@ export function getSwitchesNameLayerProps(params: { }): OmitLayer { const res: OmitLayer = { type: 'symbol', + minzoom: 8, layout: { 'text-field': '{label}', 'text-font': ['Roboto Condensed'], diff --git a/front/src/common/Map/Layers/geographiclayers.ts b/front/src/common/Map/Layers/geographiclayers.ts index ccd7c13cf37..971f5f8ca82 100644 --- a/front/src/common/Map/Layers/geographiclayers.ts +++ b/front/src/common/Map/Layers/geographiclayers.ts @@ -5,6 +5,7 @@ export function geoMainLayer(theme: Theme, bigger = false): Omit { return { id: 'geoServiceLayer', type: 'line', + minzoom: 5, filter: ['==', 'type_voie', 'VS'], paint: { 'line-color': theme.track.minor,