Commit 585ea17 1 parent bf4e61b commit 585ea17 Copy full SHA for 585ea17
File tree 4 files changed +20
-4
lines changed
simulationResult/components
trainschedule/components/ManageTrainSchedule
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,11 @@ const MapUnplugged: FC<PropsWithChildren<MapProps>> = ({
195
195
attributionControl = { false }
196
196
touchZoomRotate
197
197
maxPitch = { 85 }
198
- terrain = { { source : 'terrain' , exaggeration : terrain3DExaggeration } }
198
+ terrain = {
199
+ terrain3DExaggeration
200
+ ? { source : 'terrain' , exaggeration : terrain3DExaggeration }
201
+ : undefined
202
+ }
199
203
doubleClickZoom = { false }
200
204
interactive
201
205
cursor = { cursor }
Original file line number Diff line number Diff line change @@ -123,7 +123,11 @@ function Map() {
123
123
interactiveLayerIds = { defineInteractiveLayers ( ) }
124
124
touchZoomRotate
125
125
maxPitch = { 85 }
126
- terrain = { { source : 'terrain' , exaggeration : terrain3DExaggeration } }
126
+ terrain = {
127
+ terrain3DExaggeration
128
+ ? { source : 'terrain' , exaggeration : terrain3DExaggeration }
129
+ : undefined
130
+ }
127
131
>
128
132
< VirtualLayers />
129
133
< AttributionControl customAttribution = { CUSTOM_ATTRIBUTION } />
Original file line number Diff line number Diff line change @@ -247,7 +247,11 @@ const Map: FC<MapProps> = ({ setExtViewport }) => {
247
247
interactiveLayerIds = { interactiveLayerIds }
248
248
touchZoomRotate
249
249
maxPitch = { 85 }
250
- terrain = { { source : 'terrain' , exaggeration : terrain3DExaggeration } }
250
+ terrain = {
251
+ terrain3DExaggeration
252
+ ? { source : 'terrain' , exaggeration : terrain3DExaggeration }
253
+ : undefined
254
+ }
251
255
onLoad = { handleLoadFinished }
252
256
>
253
257
< VirtualLayers />
Original file line number Diff line number Diff line change @@ -171,7 +171,11 @@ function Map() {
171
171
interactiveLayerIds = { defineInteractiveLayers ( ) }
172
172
touchZoomRotate
173
173
maxPitch = { 85 }
174
- terrain = { { source : 'terrain' , exaggeration : terrain3DExaggeration } }
174
+ terrain = {
175
+ terrain3DExaggeration
176
+ ? { source : 'terrain' , exaggeration : terrain3DExaggeration }
177
+ : undefined
178
+ }
175
179
>
176
180
< VirtualLayers />
177
181
< AttributionControl position = "bottom-right" customAttribution = { CUSTOM_ATTRIBUTION } />
You can’t perform that action at this time.
0 commit comments