doxa-maps/library/components/map-controls/README.md
Doxa Maps e19697673d
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
Doxa Maps — the map bundler, 7 production plugins and the Experimental shelf
2026-09-25 20:07:59 +00:00

19 lines
882 B
Markdown

# library/components/map-controls/ — toolbar buttons
Each file is a single, focused button or input that mounts inside the map's control area. Replaces
the older monolithic `MapControlsComponent.vue`.
```
MapToolbar.vue (container)
├─ ZoomInButton · ZoomOutButton · LocationButton
├─ FullscreenButton · HamburgerButton · ThemeToggleButton
├─ HelpButton · ShareButton
└─ GeocoderComponent (all built on MapControlButton.vue)
```
- Every button takes a `size` prop (`sm | md | lg`) and follows the `MapControlButton` shape.
- Click handlers go through `inject('mapStore')` or `getMap()` — never a captured Mapbox instance.
- To add one: copy `ZoomInButton.vue` and register it in `MapToolbar.vue`.
**Full conventions + catalog:**
**[../../../documentation/architecture/components.md](../../../documentation/architecture/components.md)**.