Skip to content

Commit

Permalink
fixup! front: select op with map when add train
Browse files Browse the repository at this point in the history
  • Loading branch information
theocrsb committed Jan 9, 2025
1 parent 27f0e05 commit bc55e15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import { getMap, getTerrain3DExaggeration } from 'reducers/map/selectors';
import { useAppDispatch } from 'store';
import { getMapMouseEventNearestFeature } from 'utils/mapHelper';

import OPERATIONAL_POINT_LAYERS from './Const';
import OPERATIONAL_POINT_LAYERS from './consts';
import ItineraryLayer from './ManageTrainScheduleMap/ItineraryLayer';
import ItineraryMarkers, {
type MarkerInformation,
Expand Down Expand Up @@ -152,7 +152,7 @@ const Map = ({
const result = getMapMouseEventNearestFeature(e, {
layersId: [
'chartis/tracks-geo/main',
...(layersSettings.operationalpoints ? OPERATIONAL_POINT_LAYERS : ''),
...(layersSettings.operationalpoints ? OPERATIONAL_POINT_LAYERS : []),
],
});
if (result && result.feature.properties && result.feature.properties.id) {
Expand All @@ -172,7 +172,7 @@ const Map = ({
const result = getMapMouseEventNearestFeature(e, {
layersId: [
'chartis/tracks-geo/main',
...(layersSettings.operationalpoints ? OPERATIONAL_POINT_LAYERS : ''),
...(layersSettings.operationalpoints ? OPERATIONAL_POINT_LAYERS : []),
],
});
if (
Expand Down

0 comments on commit bc55e15

Please sign in to comment.