
Description
vue-maplibre-gl is a small Vue 3 plugin that wraps MapLibre GL JS, the open-source map library. It is written in TypeScript and supports MapLibre GL JS v5. The plugin provides components for the map, controls, sources, markers and layers, and you can add custom controls. Its style switch reloads sources and layers automatically when the map style changes. It has a frame rate control, support for multiple map instances that you can reach with a useMap key, and a simple way to change the map language. The plugin restarts the map automatically after a WebGL context loss, which can happen on mobile devices when a tab is in the background for a long time. The only extra dependency is mitt. A draw plugin adds polygon and circle drawing and editing, including a static circle that behaves as a fixed shape on the camera viewport, and it uses Turf.js. The README links a demo.…
Highlights
- Components for map, controls, sources, markers and layers
- Style switch that reloads layers
- Frame rate control and multiple map instances
- Draw plugin for polygons and circles
- Restarts after WebGL context loss
Ratings & Reviews
No ratings yet
Be the first to rate vue-maplibre-gl.
People also visit
vue-maplibre-gl FAQ
What is vue-maplibre-gl?
A Vue 3 plugin that wraps MapLibre GL JS, with components for maps, controls, sources, markers and layers.
Which MapLibre version does it support?
The README says it supports MapLibre GL JS v5.x.
Does it include drawing tools?
Yes. The draw plugin lets you draw and edit polygons and circles. It uses Turf.js for its calculations.
What extra dependencies does it add?
The README says the only additional dependency is mitt, apart from Turf.js for the draw plugin.
Does it handle mobile tab switching?
Yes. The README says it restarts the map automatically after a WebGL context loss, which can happen on mobile when a tab is in the background.
What are the best vue-maplibre-gl alternatives?
Popular alternatives to vue-maplibre-gl include @indoorequal/vue-maplibre-gl, vue3-openlayers and @vue-leaflet/vue-leaflet. See all vue-maplibre-gl alternatives

















