Skip to main content
baato_maps is the most complete Baato client: it ships the map widget, marker and shape managers, camera controls and the API client in one package, so a Flutter app needs no separate map SDK.

pub.dev

baato_maps

Runnable examples

Map display, search, reverse and routing.

Installation

Then import it:

Configuration

Configure the SDK once, before runApp:
A key compiled into a mobile app can be extracted from the binary. See Authentication for how to limit the damage.

The map widget

Display a map

Displays an interactive map centered at a specific location(initialPosition) with an initial zoom level and supports user location and tap interactions.

Add a marker

Adds a marker to the map at a specific coordinate with a custom label using the mapController.

Place search widget

Enables place auto-suggestions and retrieves detailed place information based on the user’s input and current location.

Draw shapes

Draw a Shape on the map with customizable center, radius, color, and opacity for visual emphasis or area representation.

Camera management

Provides methods to control the map camera, including moving to specific locations, retrieving camera position, and adjusting zoom levels programmatically.

Move to the user’s location

Moves the camera to the user’s current location with animation.

Move to a coordinate

Moves the camera to the specified geographic coordinate with optional zoom level and animation control.

Read the camera position

Returns a CameraPosition containing the current camera coordinates and zoom level. If the camera position is not available, returns default values (0,0) with zoom 0.

Zoom in

Increases the map zoom level by 1. Animates the camera to zoom in and updates the last camera position.

Zoom out

Decreases the map zoom level by 1. Animates the camera to zoom out and updates the last camera position.

Map styles

Built-in styles are constants on BaatoMapStyle, so you get them without building a URL:
For a custom style built in the My Styles section of your account dashboard, pass its style URL instead. The full catalogue of style names is on the Map Styles API page.

Advanced features

Custom layers and sources

Enables the addition of custom vector tile sources and layers to the map, allowing advanced styling and data visualization using external tile sets.

Calling the Baato APIs

Provides programmatic access to core services such as place search, reverse geocoding, and route generation for building rich map-based applications. Searches for places matching a query string with optional filters like type, location, radius, and result limit.

Reverse geocoding

Retrieves nearby place information based on geographic coordinates, with optional search radius and result limit.

Routing

Fetches route directions between two coordinates with customizable travel modes and optional instructions, then renders the route on the map using customizable line styling.

Next

Display a map

A complete widget with attribution.

Autocomplete

The place suggestion widget in context.

Reverse search

Tap the map to resolve an address.

Routing

Fetch a route and draw it.