flutter_map Docs
Project Links💝 Support Us
v5
v5
  • flutter_map
  • How Does It Work?
    • Raster vs Vector Tiles
  • Supporters
  • Getting Started
    • Installation
    • Quickstart
    • Examples
    • Migrating To v5
  • Usage
    • Base Widget
    • Options
    • Layers
    • Controller
    • Event Handling
    • Full API Reference
  • Layers
    • Tile Layer
      • Tile Providers
    • Marker Layer
    • Polygon Layer
    • Polyline Layer
    • Circle Layer
    • Overlay Image Layer
    • Attribution Layer
    • WMS Usage
  • Plugins
    • Plugins List
    • Making A Plugin
      • Creating New Tile Providers
      • Creating New Layers
  • Tile Servers
    • Using Mapbox
    • Using Thunderforest
    • Using Stadia Maps
    • Offline Mapping
    • Other Options
  • Frequently Asked Questions
  • Contributing
  • Credits
Powered by GitBook

© flutter_map Authors & Maintainers

On this page

Was this helpful?

Export as PDF
  1. Layers

Marker Layer

PreviousTile ProvidersNextPolygon Layer

Last updated 2 years ago

Was this helpful?

You can add single point features - such as pins, labels, or markers - to maps using MarkerLayer and Markers.

No more image only markers! , we allow usage of any widget as the marker.

MarkerLayer(
  markers: [
    Marker(
      point: LatLng(30, 40),
      width: 80,
      height: 80,
      builder: (context) => FlutterLogo(),
    ),
  ],
),

Excessive use of markers may create performance issues.

Rotation

Marker rotation support isn't built in (other than counter rotating to the map, to ensure the marker is always displayed right side up), but can easily be implemented through a rotation widget, such as Transform.rotate.

Consider using a clustering plugin to merge nearby markers together, reducing the work that needs to be done when rendering: .

Unlike other
popular mapping libraries
Marker Clustering
An example Marker, using FlutterLogo as the child
MarkerLayer class - flutter_map.plugin_api library - Dart API
Marker class - flutter_map.plugin_api library - Dart API
Logo
Logo