Skip to content

Commit ffa4ee6

Browse files
committed
stops click target changed
1 parent 1e6df4c commit ffa4ee6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web-app/src/app/components/GtfsVisualizationMap.layers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export const StopsIndexLayer = (): LayerSpecification => {
235235
type: 'circle',
236236
paint: {
237237
'circle-opacity': 0,
238-
'circle-radius': 5,
238+
'circle-radius': 1,
239239
},
240240
};
241241
};

web-app/src/app/components/GtfsVisualizationMap.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ export const GtfsVisualizationMap = ({
144144
if (map != undefined) {
145145
// Get the features under the mouse pointer
146146
const features = map.queryRenderedFeatures(event.point, {
147-
layers: ['stops-index', 'routes-highlight'],
147+
layers: ['stops-highlight', 'routes-highlight'],
148148
});
149149
const selectedStop = features.find(
150-
(feature) => feature.layer.id === 'stops-index',
150+
(feature) => feature.layer.id === 'stops-highlight',
151151
);
152152
if (selectedStop != undefined) {
153153
setMapClickStopData({

0 commit comments

Comments
 (0)