diff --git a/front/src/applications/editor/Map.tsx b/front/src/applications/editor/Map.tsx index 7c050cf70c2..542508977c6 100644 --- a/front/src/applications/editor/Map.tsx +++ b/front/src/applications/editor/Map.tsx @@ -206,7 +206,11 @@ const MapUnplugged: FC> = ({ attributionControl={false} touchZoomRotate maxPitch={85} - terrain={{ source: 'terrain', exaggeration: terrain3DExaggeration }} + terrain={ + terrain3DExaggeration + ? { source: 'terrain', exaggeration: terrain3DExaggeration } + : undefined + } doubleClickZoom={false} interactive cursor={cursor} diff --git a/front/src/applications/referenceMap/Map.tsx b/front/src/applications/referenceMap/Map.tsx index 120e09d2946..1263d208896 100644 --- a/front/src/applications/referenceMap/Map.tsx +++ b/front/src/applications/referenceMap/Map.tsx @@ -123,7 +123,11 @@ function Map() { interactiveLayerIds={defineInteractiveLayers()} touchZoomRotate maxPitch={85} - terrain={{ source: 'terrain', exaggeration: terrain3DExaggeration }} + terrain={ + terrain3DExaggeration + ? { source: 'terrain', exaggeration: terrain3DExaggeration } + : undefined + } > @@ -149,6 +153,7 @@ function Map() { /> )} + = { halo: '#eee', }, platform: { - fill: '#e05206', + fill: '#e9b996', }, pn: { text: '#712b2b', diff --git a/front/src/common/Map/Layers/Platforms.tsx b/front/src/common/Map/Layers/Platforms.tsx index 6988c2ef717..976a098ed43 100644 --- a/front/src/common/Map/Layers/Platforms.tsx +++ b/front/src/common/Map/Layers/Platforms.tsx @@ -16,7 +16,7 @@ function Platforms(props: PlatformsProps) { const platformsParams: LayerProps = { id: 'osm/platforms', - type: 'fill-extrusion', + type: 'fill', source: 'openmaptiles', 'source-layer': 'transportation', filter: [ @@ -26,10 +26,7 @@ function Platforms(props: PlatformsProps) { ['==', 'subclass', 'platform'], ], paint: { - 'fill-extrusion-color': colors.platform.fill, - 'fill-extrusion-height': 2, - 'fill-extrusion-base': 1, - 'fill-extrusion-opacity': 0.4, + 'fill-color': colors.platform.fill, }, }; diff --git a/front/src/modules/simulationResult/components/SimulationResultsMap.tsx b/front/src/modules/simulationResult/components/SimulationResultsMap.tsx index 539d1dbf563..87b029308dd 100644 --- a/front/src/modules/simulationResult/components/SimulationResultsMap.tsx +++ b/front/src/modules/simulationResult/components/SimulationResultsMap.tsx @@ -247,7 +247,11 @@ const Map: FC = ({ setExtViewport }) => { interactiveLayerIds={interactiveLayerIds} touchZoomRotate maxPitch={85} - terrain={{ source: 'terrain', exaggeration: terrain3DExaggeration }} + terrain={ + terrain3DExaggeration + ? { source: 'terrain', exaggeration: terrain3DExaggeration } + : undefined + } onLoad={handleLoadFinished} > diff --git a/front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx b/front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx index 79e53027805..ef44a760c39 100644 --- a/front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx +++ b/front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx @@ -171,7 +171,11 @@ function Map() { interactiveLayerIds={defineInteractiveLayers()} touchZoomRotate maxPitch={85} - terrain={{ source: 'terrain', exaggeration: terrain3DExaggeration }} + terrain={ + terrain3DExaggeration + ? { source: 'terrain', exaggeration: terrain3DExaggeration } + : undefined + } >