maps - Build Interactive Map Tools with MapLibre
Setup MapLibre, configure tiles, and implement common UI patterns for interactive maps
Tags
Updated: 2026-02-12Capabilities
Typical Outputs
What this skill does
- load MapLibre CSS and JS
- configure map container styles
- use OpenFreeMap Liberty style
- add navigation controls
- check for missing globals
- provide geolocation button
- manage geolocation states
- create or update markers
- ease to new center
- show user-friendly errors
- update status text
- manage layout and accessibility
Inputs
- MapLibre CSS and JS
- OpenFreeMap Liberty style URL
- map container element
- geolocation API
- UI controls
Outputs
- interactive map display
- map markers
- status messages
- UI controls overlay
Requirements
- web browser environment
- MapLibre library availability
- geolocation API support
- CSS and JS loading capability
