Legend, colorbar, and HTML control components for MapLibre GL JS maps
Continuous gradient legends with built-in matplotlib colormaps. Supports horizontal and vertical orientations.
Categorical legends with color swatches and labels. Collapsible with customizable styling.
Flexible HTML content control for custom info panels, statistics, and widgets.
Switch between 100+ basemaps from xyzservices. Supports dropdown and gallery modes.
Measure distances and areas on the map with interactive drawing tools.
Save and restore map view locations with localStorage persistence.
Export the current map view as PNG or JPEG with optional title overlay.
Inset overview map showing the current viewport extent with optional click-to-navigate.
First-class React components and hooks for seamless integration with React apps.
npm install maplibre-gl-components