diff --git a/src/components/FeaturePanel/PublicTransport/PublicTransport.tsx b/src/components/FeaturePanel/PublicTransport/PublicTransport.tsx index 2abbb0712..e48a76749 100644 --- a/src/components/FeaturePanel/PublicTransport/PublicTransport.tsx +++ b/src/components/FeaturePanel/PublicTransport/PublicTransport.tsx @@ -68,7 +68,7 @@ const PublicTransportInner = () => { source?.setData(data.geoJson); return () => { - source?.setData(EMPTY_GEOJSON_SOURCE.data); + source?.setData({ type: 'FeatureCollection', features: [] }); }; }, [data]);