Map Toolbar

The glass-pill map control toolbar from the Nexus marketplace map, generalised: a prop-driven standard arrangement — zoom, locate, basemap switcher, tool toggles and reset view — or compose your own from the toolbar parts.

$bunx shadcn@latest add @nx-ui/map-toolbar
Registry item

Standard arrangement

Zoom, locate and reset drive the camera through the map ref; the Map/Satellite switcher is wired to map-view's basemap styles; the Travel time and Haulage route toggles arm a tool — the active tool fills with the primary colour.

No tool armed. Toggle Travel time or Haulage route in the toolbar.

Custom arrangement

Compose any control bar from MapToolbarGroup, MapToolbarButton, MapToolbarToggle and MapToolbarSeparator — here a 3D tilt, a north-up reset and a sites layer toggle, docked top-left.