flutter_map_compass
1.1.2, released 3 weeks ago by joscha-eckert.de
A simple compass widget for flutter_map displaying rotation and resetting it when tapped.
What it does
It shows the current rotation of a flutter_map instance using a compass indicator. When the compass is tapped, it resets the map rotation back to 0. It also offers options to customize the icon or hide itself when the map is already rotated north.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using flutter_map and need a compass indicator widget
- You want a quick way for users to reset map rotation back to north with a tap
Skip it when
- You are using Google Maps instead of flutter_map
- You do not need map rotation or compass features in your application
Strengths
- Easy to drop into existing flutter_map projects
- Supports custom icons or a built-in cupertino style
- Includes a feature to automatically hide when rotated north
Weaknesses
- Strictly limited to flutter_map
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Just add the dependency to pubspec.yaml and include the widget as a child in your FlutterMap.
FlutterMap(
options: MapOptions(),
children: [
TileLayer(
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
),
const MapCompass.cupertino(
hideIfRotatedNorth: true,
),
],
)Alternatives
Packages that do the same job and could replace flutter_map_compass.
- google_maps_flutter_web
Web platform implementation of google_maps_flutter.
88Compare - google_maps_flutter_android
Android implementation of the google_maps_flutter plugin.
82Compare - google_maps_flutter_ios
iOS implementation of the google_maps_flutter plugin.
81Compare - google_maps_flutter
A Flutter plugin for integrating Google Maps in Android, iOS, and web applications.
90Compare
Works with
Packages commonly used together with flutter_map_compass: ones it builds on, ones built on it, and its own family.
- cupertino_iconsflutter_map_compass depends on itAsset package providing Cupertino icon font for Flutter
- flutter_mapflutter_map_compass depends on itPure‑Flutter map client with tile loading, markers, and gestures
- flutter_map_cacheSame familyA slim caching plugin for flutter_map tile layers supporting multiple storage backends.
- flutter_map_mbtilesSame familyOffline raster tile provider for flutter_map using MBTiles
- flutter_map_pmtilesSame familyPMTiles tile provider for flutter_map supporting local or hosted files.
- flutter_map_maplibreSame familyMapbox Vector Tiles support for flutter_map powered by native MapLibre SDKs.