Installation
Install
From pub.dev
Just import the package as you would normally, from the command line:
flutter pub add flutter_map
flutter pub add latlong2From github.com
If you urgently need the latest version, a specific branch, or a specific fork, you can use this method.
First, use From pub.dev, then add the following lines to your pubspec.yaml file, as a root object:
dependency_overrides:
flutter_map:
git:
url: https://github.com/fleaflet/flutter_map.git
# ref: main (custom branch/commit)Additional Setup
Web
Android
flutter_map needs to access the Internet to load tiles, in most cases. On Android, apps must include the INTERNET permission in their manifest. Add the following line to all manifests:
MacOS
flutter_map needs to access the Internet to load tiles, in most cases. On MacOS, apps must include a dedicated entitlement. Add the following lines to 'macos/Runner/DebugProfile.entitlements' and 'macos/Runner/Release.entitlements':
Import
After installing the package, import it into the necessary files in your project:
Last updated
Was this helpful?