Links

Launch Map

Using this action, you can open the Map app installed on your device. For example, you could add this action on an event page to let users know more about the place inside the map apps like Google Maps, Apple Maps, and Waze app.
You can specify the Lat Long details or full address of any place to access the additional information such as directions, call details, timings, photos, street view, reviews, and more.
Launching Google Maps to access event location details

Types of Map apps

This action lets you specify the type of map app to open. If it's not installed, the default map app of the platform will be used. For example, opening the Google Maps on iOS devices. If not installed, it will open the default Apple Maps app.
You can launch the following types of maps apps:
  1. 1.
    System Default: Opens the default map app. That is opening Google Maps on Android devices and Apple Maps on iOS devices.
  2. 2.
    Google Maps: The default map app on Android devices from Google.
  3. 3.
    Apple Maps: The default map app on iOS devices from Apple.
  4. 4.
    ​Waze: App that tells you about real-time traffic, police, crashes, and more.

Defining Launch Map action

Go to your project page on FlutterFlow and follow the steps below to define the Action to any widget.
  • Select the Widget (e.g. Location icon, Address text) on which you want to define the action.
  • Select Actions from the Properties panel (the right menu), and click Open. This will open an Action flow Editor in a new popup window.
    • Click on the + Add Action.
    • On the right side, search and select the Launch Map action.
    • Set the Preferred Map Type among the System Default, Google Maps, Apple Maps, and Waze.
    • To open the map app using lat long:
      • Set the Place Type to Location.
      • Inside the Location section, enter the values in the Latitude and Longitude input boxes. You can also specify these values from a variable such as the local state variable or a variable from an API response by clicking on the Set from Variable.
      • (Optional) To set the place name (which will be displayed when the map app is opened), Inside the Title section, enter the place name in the Value input box. To set it from the variable, click on the Set from Variable.
    • To open the map app using address:
      • Set the Place Type to Address.
      • Inside the Address section, enter the address into the Value input box. You can also specify the address from a variable such as the local state variable or a variable from an API response by clicking on the Set from Variable.
      • (Optional) To set the place name (which will be displayed when the map app is opened), Inside the Title section, enter the place name in the Value input box. To set it from the variable, click on the Set from Variable.
    • Click Close.
Adding Launch Map action