Skip to content
pubscout

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.

WASM-readyRock solid
$ flutter pub add flutter_map_location_marker
Source repository

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.

Works with

Packages commonly used together with flutter_map_location_marker: ones it builds on, ones built on it, and its own family.