maplibre
0.4.0, released 2 days ago by maplibre.org
Performant vector maps for Flutter supporting Mapbox Vector Tiles across all six platforms.
What it does
Renders interactive vector and raster maps using the MapLibre Native C API and maplibre-gl-js. It provides typed style layers, sources, offline map capabilities, and declarative annotations that render directly into Flutter textures or HTML elements.
AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need interactive vector or raster maps across Android, iOS, macOS, Windows, Linux, and web.
- You want maps to render into Flutter textures so that standard widgets compose seamlessly over and around them.
Skip it when
- You require the older maplibre_gl package architecture and are not ready to migrate to version 0.4.
- Your project targets Android versions below API level 24, iOS 15, or macOS 14.3.
Strengths
- Supports six platforms using a unified API via FFI and JS interop.
- Fast interop without platform views on desktop and mobile.
- Full style spec with typed style layers, sources, and expressions.
Weaknesses
- UI widgets like map compass do not automatically follow the app's Material Theme.
- Requires minimum OS versions (Android API 24, iOS 15, macOS 14.3).
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 6
Requires platform setup steps and specific minimum OS versions (Android API 24, iOS 15, macOS 14.3). Swift Package Manager is required for iOS and macOS.
MapLibreMap(
options: MapOptions(
style: MapStyle.url('https://demotiles.maplibre.org/style.json'),
initCamera: .position(center: Geographic(lon: 9.17, lat: 47.68), zoom: 7),
),
layers: [
CircleLayer(
points: [Feature(geometry: Point(Geographic(lon: 9.17, lat: 47.68)))],
color: const .literal(Colors.blue),
radius: const .literal(12),
),
],
)Alternatives
Packages that do the same job and could replace maplibre.
- flutter_map
A pure Dart interactive map package that does not rely on native MapLibre SDKs.
90Compare - google_maps_flutter
If your application specifically requires Google Maps data and platform views rather than MapLibre.
90Compare
Works with
Packages commonly used together with maplibre: ones it builds on, ones built on it, and its own family.
- htmlmaplibre depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- url_launchermaplibre depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- geobasemaplibre depends on itGeospatial data structures, geometry calculations, geodesy, projections, and vector formats in Dart.
- maplibre_glSame familyNative MapLibre maps for Android, iOS and Web with vector tiles, PMTiles, GeoJSON and offline support
- flutter_map_maplibreBuilt on maplibreMapbox Vector Tiles support for flutter_map powered by native MapLibre SDKs.