Skip to content

Quick way to start a native map application with MapLibre GL JS using Flutter.

License

Notifications You must be signed in to change notification settings

maptiler/get-started-flutter-maplibre-gl-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get started with Flutter and MapLibre GL JS

A quick way to start a mobile native map application with MapLibre GL JS using Flutter.

This simple mobile fullscreen map application is an example of how to use MapTiler maps together with Flutter and MapLibre GL JS for your native app.

We have made this app using the VS Code Flutter extension and the plugin flutter-maplibre-gl.

Installation and setting up

  1. Install Flutter

  2. Clone the Get started with Flutter and MapLibre GL JS repo

  git clone https://github.com/maptiler/get-started-flutter-maplibre-gl-js.git my-flutter-map
  1. Navigate to the newly created project folder my-flutter-map
  cd my-flutter-map
  1. Install dependencies
  flutter pub get
  1. ⚠️ Open the lib/map.dart file and replace YOUR_MAPTILER_API_KEY_HERE with your actual MapTiler API key.

ℹ️ If you don't have an API KEY you can create it for FREE at https://www.maptiler.com/cloud/

  1. Build your project
  flutter run
  1. You will find your app on your virtual device (Emulator) or physical device.

Resources

Here are a few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

For help with Flutter MapLibre view the online documentation.