mapsindoors_mapbox
4.8.0, released 7 weeks ago by mapspeople.com
Flutter plugin for MapsIndoors indoor mapping using Mapbox.
What it does
Provides indoor maps, real‑time wayfinding and route rendering via the MapsIndoors SDK on Android and iOS. It wraps native Mapbox maps and adds MapsIndoors-specific controls and services.
AI-written summary of version 4.8.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need indoor mapping and navigation with MapsIndoors on Flutter
- You want offline caching of base‑map tiles for Mapbox
- You target Android API 21+ and iOS 16+ and can provide Mapbox credentials
Skip it when
- You cannot add native Gradle or Podfile changes
- You require a different map provider (e.g., Google Maps only)
- Your app must support iOS versions below 16
Strengths
- Full integration with MapsIndoors indoor SDK
- Offline base‑map tile caching for Mapbox
- Directions rendering with customizable styles
- Supports both Android and iOS
Weaknesses
- Requires native setup: API keys, Maven repo, Gradle token, Podfile changes
- Minimum iOS version 16 limits older devices
- Tied to Mapbox; cannot switch to other map providers easily
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 3
Add mapbox_api_key.xml with API key, configure Maven repo and MAPBOX_DOWNLOADS_TOKEN in gradle.properties, set iOS platform to 16.0 and add use_frameworks! in Podfile, provide MBXAccessToken in Info.plist, then add mapsindoors_mapbox to pubspec.
import 'package:mapsindoors/mapsindoors.dart' as MapsIndoors;
import 'package:mapsindoors/mapsindoors_library.dart';
class MapWidget extends StatefulWidget {
final String apiKey;
const MapWidget({Key? key, required this.apiKey}) : super(key: key);
@override
State<MapWidget> createState() => _MapWidgetState();
}
class _MapWidgetState extends State<MapWidget> {
final _floorSelector = MPDefaultFloorSelector();
late final MapsIndoorsWidget _map;
@override
void initState() {
super.initState();
loadMapsIndoors(widget.apiKey);
}
void _ready(MPError? e) async {
if (e == null) {
_map.goTo(await getDefaultVenue());
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: _map = MapsIndoorsWidget(
floorSelector: _floorSelector,
initialCameraPosition: MPCameraPosition(
zoom: 7,
point: MPPoint.withCoordinates(longitude: -118.0165, latitude: 33.9457),
),
readyListener: _ready,
),
);
}
}
Alternatives
Packages that do the same job and could replace mapsindoors_mapbox.
- mapbox_maps_flutter
Official Mapbox Maps SDK for Flutter to render interactive vector maps.
92Compare - maplibre_gl
Native MapLibre maps for Android, iOS and Web with vector tiles, PMTiles, GeoJSON and offline support
91Compare - maplibre
Performant vector maps for Flutter supporting Mapbox Vector Tiles across all six platforms.
90Compare - flutter_map_mbtiles
Offline raster tile provider for flutter_map using MBTiles
81Compare