FlutterFlow Docs
Search
⌃K

Move Map Center

Using this action, you can move the map and show the specified location in the center. For example, setting the pickup and drop location on the map. You can set the location either by directly specifying the Lat Long values or providing it from a variable.
Showing selected place on map

Defining Move Map Center 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. Button) 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 Move Map Center action.
    • To specify the lat long values directly, enter the values in the Latitude and Longitude input boxes.
    • To specify the lat long values from a variable such as the placePickerValue variable (from Widget State), local state variable, or a variable from an API response. Set the Value Source to From Variable.
      • To pass the location from the PlacePicker widget, set the Source to Widget State and Available Options to placePickerValue.
      • If you choose another source, the available options are displayed accordingly.
  • Click Close.
Adding Move Map Center action