Geography explorer: state map only renders after picking a trail-activating interest #766

Closed
opened 2026-07-21 03:25:43 +00:00 by spikerj · 1 comment
Owner

On /geography/USA/US-LA (any state view) the map does not render until the user selects an interest that activates the trails feature. geography-explorer.component.html wraps app-state-trail-view in @if (activeFeature() === "trails"), and activeFeature is only auto-set when getAvailableFeatures(selectedInterests()) returns exactly one feature — with no interests selected it stays null, so the map never mounts.

Desired (confirmed UX): the map renders immediately whenever the state view is active, showing ALL trail markers by default; interest filters then narrow/change what's overlaid. state-trail-view's filteredTrails already returns all trails when no trail interest is selected, so removing the gate is safe. (country-detail view has no such gate — no change needed there.)

On `/geography/USA/US-LA` (any state view) the map does not render until the user selects an interest that activates the trails feature. `geography-explorer.component.html` wraps `app-state-trail-view` in `@if (activeFeature() === "trails")`, and `activeFeature` is only auto-set when `getAvailableFeatures(selectedInterests())` returns exactly one feature — with no interests selected it stays null, so the map never mounts. Desired (confirmed UX): the map renders immediately whenever the state view is active, showing ALL trail markers by default; interest filters then narrow/change what's overlaid. `state-trail-view`'s `filteredTrails` already returns all trails when no trail interest is selected, so removing the gate is safe. (`country-detail` view has no such gate — no change needed there.)
Author
Owner

Resolved in spikersoft-angular PR #503 (merged to master). Removed the @if (activeFeature() === "trails") gate — the state map mounts whenever the state view is active, showing all trails by default; interest filters narrow the overlay as before. Regression test added (state view + zero interests renders app-state-trail-view). Verified: /geography/USA/US-LA shows the map immediately; /geography/USA/US-WV shows all 1,717 trails clustered before any filter is clicked. Closing.

Resolved in spikersoft-angular PR #503 (merged to `master`). Removed the `@if (activeFeature() === "trails")` gate — the state map mounts whenever the state view is active, showing all trails by default; interest filters narrow the overlay as before. Regression test added (state view + zero interests renders `app-state-trail-view`). Verified: `/geography/USA/US-LA` shows the map immediately; `/geography/USA/US-WV` shows all 1,717 trails clustered before any filter is clicked. Closing.
Sign in to join this conversation.