Skip to content

Commit 225860b

Browse files
authored
hotfix: visualization feature flag (#1376)
1 parent c0c4875 commit 225860b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,14 @@ const CoveredAreaMap: React.FC<CoveredAreaMapProps> = ({
131131
// effect to determine which view to display
132132
useEffect(() => {
133133
if (feed == undefined) return;
134-
if (feed?.data_type === 'gbfs') return;
135-
if (routesJsonLoadingStatus != 'failed' && boundingBox != undefined) {
134+
if (feed?.data_type === 'gbfs') return; // use default for gbfs
135+
136+
// for gtfs feeds
137+
if (
138+
config.enableGtfsVisualizationMap &&
139+
routesJsonLoadingStatus != 'failed' &&
140+
boundingBox != undefined
141+
) {
136142
setView('gtfsVisualizationView');
137143
return;
138144
}

0 commit comments

Comments
 (0)