Map / globe (<kweb-map>)
Purpose
Show geography for the selected node and neighbors. Support hover preview and click travel.
Inputs
Events listened to
kweb:selection-changed
kweb:hover-changed
kweb:map-focus (optional)
Data required
- selected node location (optional)
- neighbor node locations (optional)
Outputs
Events emitted
kweb:navigate (hover/click on pins)
kweb:map-focus (when user moves the camera deliberately)
UI and interactions
- Default: dim globe / small map
- Click to “activate” and enlarge (optional)
- Selected node pin is prominent
- Neighbor pins/dots are smaller
- Hover previews, click commits
Edge cases
- No location: show “no location” state and optional list of known locations.
- Multiple locations: allow a primary, and list alternates.
Definition of done
- [ ] Pins reflect selection and neighbors.
- [ ] Hover/click behavior matches preview/commit model.
✒️
edit (requires access)