Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: Add minzoom = 5 for all editoast layers that missed a minZoom #5678

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions front/src/common/Map/Layers/Detectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export function getDetectorsNameLayerProps(params: {
}): OmitLayer<SymbolLayer> {
const res: OmitLayer<SymbolLayer> = {
type: 'symbol',
minzoom: 8,
layout: {
'text-field': '{extensions_sncf_kp}',
'text-font': ['Roboto Condensed'],
Expand Down
1 change: 1 addition & 0 deletions front/src/common/Map/Layers/OperationalPoints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions front/src/common/Map/Layers/Switches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function getSwitchesLayerProps(params: {
}): OmitLayer<CircleLayer> {
const res: OmitLayer<CircleLayer> = {
type: 'circle',
minzoom: 8,
paint: {
'circle-stroke-color': params.colors.switches.circle,
'circle-stroke-width': 2,
Expand All @@ -32,6 +33,7 @@ export function getSwitchesNameLayerProps(params: {
}): OmitLayer<SymbolLayer> {
const res: OmitLayer<SymbolLayer> = {
type: 'symbol',
minzoom: 8,
layout: {
'text-field': '{label}',
'text-font': ['Roboto Condensed'],
Expand Down
2 changes: 2 additions & 0 deletions front/src/common/Map/Layers/geographiclayers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export function geoMainLayer(theme: Theme, bigger = false): Omit<LineLayer, 'sou
return {
id: 'geoMainLayer',
type: 'line',
minzoom: 5,
paint: {
'line-color': theme.track.major,
'line-width': bigger ? 4 : 1,
Expand All @@ -16,6 +17,7 @@ export function geoServiceLayer(theme: Theme): Omit<LineLayer, 'source'> {
return {
id: 'geoServiceLayer',
type: 'line',
minzoom: 5,
filter: ['==', 'type_voie', 'VS'],
paint: {
'line-color': theme.track.minor,
Expand Down