Our MapLibre Plugins
Our MapLibre Plugins
Maptoolkit publishes open-source plugins for MapLibre GL JS. Each one is an npm
package. The controls are added to the map with map.addControl(), the 3D layers with map.addLayer().
| Plugin | npm package | What it does |
|---|---|---|
| Style Control | @maptoolkit/maplibre-style-control | Lets users switch between map styles from a thumbnail panel. |
| Logo Control | @maptoolkit/maplibre-logo-control | Adds the Maptoolkit logo to the map. |
| Isochrone Control | @maptoolkit/maplibre-isochrone-control | Lets users drag a marker onto the map and shows how far they can travel in a given time. |
| Legend Control | @maptoolkit/maplibre-legend-control | Shows a legend of the map features currently in view. |
| Scene3D Control | @maptoolkit/maplibre-scene3d-control | Shows the 3D buildings and trees of a Maptoolkit style, with roof shapes and city models. |
| 3D Layers | @maptoolkit/maplibre-3d-layers | Custom layers that draw 3D buildings with roof shapes and glTF models. |
The plugins are built for MapLibre GL JS 6. They also work with MapLibre GL JS 5.6.1. If you load MapLibre GL JS 5 from a CDN without a bundler, the plugins need a small import map shim. See Add a Style Switcher for the setup. The Scene3D Control and the 3D Layers need MapLibre GL JS 6.