flutter_map Docs
Project Links💝 Support Us
v3
v3
  • flutter_map
  • Getting Started
    • Installation
    • Additional Setup
    • Examples
    • How Does It Work?
      • Raster vs Vector Tiles
  • Usage
    • Base Widget
    • Options
      • Recommended Options
      • Other Options
    • Layers
      • Tile Layer
        • Recommended Options
        • Tile Providers
        • Other Options
      • Marker Layer
      • Polygon Layer
      • Polyline Layer
      • Circle Layer
      • Attribution Layer
      • WMS Usage
    • Controller
    • Full API Reference
  • Plugins
    • Plugins List
    • Making A Plugin
      • Creating New Tile Providers
      • Creating New Layers
  • Tile Servers
    • Using Mapbox
    • Using Stadia Maps
    • Using Thunderforest
    • Offline Mapping
    • Other Options
  • FAQs
    • Frequently Asked Questions
    • Map Controller Issues
  • Migration
    • To v3.0.0
    • To v2.0.0
    • Older Versions
      • To v1.1.0
      • To v1.0.0
      • To v0.15.0
  • Contributing
  • Credits
Powered by GitBook

© flutter_map Authors & Maintainers

On this page

Was this helpful?

Export as PDF
  1. Usage

Base Widget

PreviousRaster vs Vector TilesNextOptions

Last updated 2 years ago

Was this helpful?

FlutterMap(
    mapController: _mapController,
    options: MapOptions(),
    children: [],
    nonRotatedChildren: [],
);

Do not use nonRotatedChildren to enforce a non-rotatable map. Instead, use .

Placement Recommendations

It is recommended to make the map as large as possible, to allow it to display a lot of useful information easily.

As such, we recommend using a depth-based layout (eg. using Stacks) instead of a flat-based layout (eg. using Columns). The following 3rd party packages might help with creating a modern design:

If you must restrict the widget's size, you won't find a height or width property. Instead, use a SizedBox or Column/Row & Expanded.

nonRotatedChildren

Optional

Similar to children, but these don't rotate or move with the other layers.

options (MapOptions)

Required

Configure options that don't directly affect the appearance of the map, such as starting location and maximum zoom limit.

mapController

Optional

Attach a controller object to control the map programatically, including panning and zooming.

children

Required

Takes a List of Widgets (usually a dedicated 'layer') to display on the map, such as tile layers or polygon layers,

https://pub.dev/packages/backdrop
https://pub.dev/packages/sliding_up_panel
https://pub.dev/packages/material_floating_search_bar
interactiveFlags inside MapOptions