Skip to content

Add click-to-filter to world map - #450

Open
smehmood wants to merge 1 commit into
masterfrom
smehmood/add-country-filter-map-1p722s
Open

Add click-to-filter to world map#450
smehmood wants to merge 1 commit into
masterfrom
smehmood/add-country-filter-map-1p722s

Conversation

@smehmood

Copy link
Copy Markdown

Summary

  • Clicking a country on the world map now filters the page's metrics to that country via the country=eq.<code> URL param, matching the existing FilterLink behavior used by the country metrics table.
  • Clicking the already-selected country again toggles the filter off.
  • The selected country is highlighted in the primary color, and the cursor shows a pointer over clickable countries.
  • Gated on websiteId being present, so the realtime world map (which passes data only) is unaffected.

Verified

On the Demo SaaS site (All-time range), clicking the US added country=eq.US to the URL, highlighted US in the primary blue, and surfaced a "Country: United States" filter chip. Clicking it again removed the filter.

Task: https://niteshift.dev/task/task_int_62x95y38nqugepig

Clicking a country on the world map now filters the page metrics to that
country via the country=eq.<code> URL param, matching the existing
FilterLink behavior. Clicking the selected country again toggles the
filter off. The selected country is highlighted in the primary color
and the cursor shows a pointer over clickable countries. Gated on
websiteId so the realtime map (data-only) is unaffected.
@mesa-dot-dev

mesa-dot-dev Bot commented Jul 16, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant