Member-only story

Flutter Map Launcher

Maneesha Erandi
3 min readAug 1, 2021

--

If you need to add a Marker or check the Direction to a given coordinates, using available maps in mobile device through your flutter app, map_launcher plugin will be a great help for both android and iOS.

No need to talk a lot. It’s really easy and simple. 😃 Let’s get started.

First install the map_launcher

flutter pub add map_launcher

This will add a line like this to your package’s pubspec.yaml (and run an implicit dart pub get)

dependencies:
map_launcher: ^2.1.1

Now you can use

import 'package:map_launcher/map_launcher.dart';

You can make your app choose the map, between available maps which installed in the users device according to the users preference. You can find the supported list of maps from the package documentation.

As an additional work only for iOS, you have to add the following lines to the Info.plist file.

<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
<string>baidumap</string>
<string>iosamap</string>
<string>waze</string>
<string>yandexmaps</string>
<string>yandexnavi</string>
<string>citymapper</string>
<string>mapswithme</string>
<string>osmandmaps</string>
<string>dgis</string>…

--

--

Maneesha Erandi
Maneesha Erandi

Written by Maneesha Erandi

I write about mobile development and wildlife.

Responses (2)