Skip to content

Commit 5311246

Browse files
author
David Emory
committed
feat(overlay): Make stops overlay an empty FeatureGroup when not rendered
1 parent 137f095 commit 5311246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/map/stops-overlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class StopsOverlay extends MapLayer {
5252
const { minZoom, queryMode, setLocation, stops } = this.props
5353

5454
// don't render if below zoom threshold or transit not currently selected
55-
if (this.context.map.getZoom() < minZoom || !hasTransit(queryMode)) return null
55+
if (this.context.map.getZoom() < minZoom || !hasTransit(queryMode)) return <FeatureGroup />
5656

5757
return (
5858
<FeatureGroup>

0 commit comments

Comments
 (0)