Quickstart
A Flutter app for Android and iOS that shows a topographic map and draws the Tour du Mont-Blanc on it.
You need Flutter 3.44 or newer, an Android emulator or an iOS 15.5 simulator, and a publishable key with the tiles and publishing scopes from Organization → API keys in the Mountaya app.
Then raise the app's floors to iOS 15.5 and Android API level 24, as Install and set up shows.
Create .env at the project's root, and add it to .gitignore:
Replace lib/main.dart with this:
MapEngine holds what the map shows, and MapView draws it. Your State makes both and closes them.
Replace TrailMap with this version. The camera frames the itinerary once it is drawn:
The map opens on the Tour du Mont-Blanc, with the Mountaya watermark in its top-left corner.