We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c4875 commit 225860bCopy full SHA for 225860b
web-app/src/app/components/CoveredAreaMap.tsx
@@ -131,8 +131,14 @@ const CoveredAreaMap: React.FC<CoveredAreaMapProps> = ({
131
// effect to determine which view to display
132
useEffect(() => {
133
if (feed == undefined) return;
134
- if (feed?.data_type === 'gbfs') return;
135
- if (routesJsonLoadingStatus != 'failed' && boundingBox != undefined) {
+ if (feed?.data_type === 'gbfs') return; // use default for gbfs
+
136
+ // for gtfs feeds
137
+ if (
138
+ config.enableGtfsVisualizationMap &&
139
+ routesJsonLoadingStatus != 'failed' &&
140
+ boundingBox != undefined
141
+ ) {
142
setView('gtfsVisualizationView');
143
return;
144
}
0 commit comments