Additional Setup

All Platforms

It is recommended to also install 'latlong2' 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 use the 'as' suffix.

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.

Last updated

© flutter_map Authors & Maintainers