Skip to content

feat: add BasemapSelector component - #4

Open
jirhiker wants to merge 1 commit into
mainfrom
feat/basemap-selector
Open

jirhiker wants to merge 1 commit into
mainfrom
feat/basemap-selector

Conversation

@jirhiker

Copy link
Copy Markdown
Member

What

A shadcn BasemapSelector — a grid of selectable basemap thumbnails (title + optional preview image; a themed gradient placeholder when no preview), selected option ringed in primary with a check badge.

Presentational and map-library agnostic: { options, value, onValueChange }. The consumer owns the style list and applies the chosen id to its map.

Modeled on NMBGMRDataManager's MUI basemap picker, rebuilt for shadcn/Tailwind/radix and token-free use.

Notes

  • BasemapOption = { id, title, preview? }.
  • Built clean. First consumer: NewWeaver's map (token-free CARTO styles).

🤖 Generated with Claude Code

A shadcn-style grid of selectable basemap thumbnails (title + optional preview
image, gradient placeholder otherwise), with the selected option ringed in the
primary color. Presentational and map-library agnostic — the consumer owns the
style list and applies the chosen id. Modeled on NMBGMRDataManager's basemap
picker, rebuilt for shadcn/Tailwind.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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