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
  • All Platforms
  • Android

Was this helpful?

Export as PDF
  1. Getting Started

Additional Setup

PreviousInstallationNextHow Does It Work?

Last updated 2 years ago

Was this helpful?

All Platforms

It is recommended to also to expose the LatLng object used extensively throughout.

This can then be imported like this in any required files:

import 'package:latlong2/latlong.dart';

In the event that the LatLng object provided by this library conflicts with another, for example the one provided by Google Maps, you may need to .

Additionally, other plugins (see Plugins List) might require other setup and/or permissions.

Android

On Android, additional setup may be required. To access the Internet to reach tile servers, ensure your app is configured to use the INTERNET permission. Check (and if necessary add) the following lines in the manifest file located at '/android/app/src/main/AndroidManifest.xml':

AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET"/>

You may also need to do this in any other applicable manifests, such as the profile one, if not already in there.

install 'latlong2'
use the 'as' suffix