Installation
Last updated
Was this helpful?
Last updated
Was this helpful?
All users should also to work with coordinates in 'flutter_map'.
In the event that the LatLng
object provided by that library conflicts with another, for example the one provided by Google Maps, you may need to .
Just import the package as you would normally, from the command line:
Unreleased commits from Git (GitHub) may not be stable.
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:
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:
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':
After installing the package, import it into the necessary files in your project:
You must comply with the appropriate restrictions and terms of service set by your tile server. Failure to do so may lead to any punishment, at the tile server's discretion.
This library and/or the creator(s) are not responsible for any violations you make using this package.
We support Wasm! and benefit from potentially improved performance when the browser can handle Wasm.
On the web platform, restrictions designed to protect resources on websites and control where they can be loaded from. Some tile servers may not be intended for external consumption, or may be incorrectly configured, which could prevent tiles from loading. If tiles load correctly on platforms other than the web, then this is likely the cause.
See the for more details. We load images using a standard Image
widget.
The OpenStreetMap Tile Server (as used in this documentation) ToS can be . Other servers may have different terms.