flutter_map_location_marker
10.3.0, released 5 months ago by tlserver6y.net
A flutter_map plugin for displaying the device's current location with a customizable marker.
What it does
Adds a customizable location marker layer to a flutter_map instance, integrating with geolocator and rotation sensors. It supports auto-following the user's location and auto-rotating the map during navigation mode.
AI-written summary of version 10.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a flutter_map application and need to display the user's current GPS location.
- You need navigation features like auto-following position and auto-rotating the map based on heading.
Skip it when
- You are using Google Maps instead of flutter_map.
- You do not need map components and only need raw geolocation data.
Strengths
- Simple integration via CurrentLocationLayer widget with sensible defaults.
- Fully customizable marker appearance, accuracy circle, and heading sector.
- Supports custom streams for position and heading sources.
Weaknesses
- Strictly tied to the flutter_map ecosystem.
- Requires manual platform permission setup for location services via geolocator.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add the dependency to pubspec.yaml and configure location permissions according to the geolocator package instructions.
Widget build(BuildContext context) {
return FlutterMap(
children: [
TileLayer(
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
maxZoom: 19,
),
CurrentLocationLayer(),
],
);
}Alternatives
Packages that do the same job and could replace flutter_map_location_marker.
- location_web
Web implementation of the location plugin for Flutter web.
74Compare - 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
Works with
Packages commonly used together with flutter_map_location_marker: ones it builds on, ones built on it, and its own family.
- geolocatorflutter_map_location_marker depends on itCross-platform plugin to access device GPS, location updates, and coordinate calculations.
- latlong2flutter_map_location_marker depends on itLightweight Dart library for latitude/longitude calculations.
- flutter_mapflutter_map_location_marker depends on itPure‑Flutter map client with tile loading, markers, and gestures
- flutter_rotation_sensorflutter_map_location_marker depends on itProvides a stream of device orientation data including rotation matrix, quaternion, and Euler angles.
- location_picker_flutter_mapBuilt on flutter_map_location_markerFlutter location picker and place search using OpenStreetMap.