This is a sample app showing how to load ArcGIS vector basemaps using a free ArcGIS Platform account and Leaflet.js using flutter-vector-map-tiles
Place a api_key.dart
file within lib/src with the following content (replacing the API key)
// Create a free account: https://developers.arcgis.com/sign-up
// Grab the API from: https://developers.arcgis.com/api-keys/
final apiKey = '<your_API_KEY>';
This project has to Widgets:
- MapScreen at
lib/src/leafletvector_screen.dart
: this one load a static map style fromlib/src/navigation_style.dart
- MapScreenAsync at
lib/src/leafletvectorasync_screen.dart
which allows to set all map styles supported by ArcGIS using the values defined atlib/src/arcgis_map_styles.dart
.
There are some limitations that needs to be overcome. Those are listed in the project issues.