map_address_picker library

Classes

CameraTargetBounds
Bounds for the map camera target.
LatLng
A pair of latitude and longitude coordinates, stored as degrees.
LatLngBounds
A latitude/longitude aligned rectangle.
MinMaxZoomPreference
Preferred bounds for map camera zoom level.

Enums

LocationAccuracy
Represent the possible location accuracy values.
MapType
Type of map tiles to display.

Functions

showLocationPicker(BuildContext context, {MapType mapType = MapType.normal, LatLng initialCenter = const LatLng(28.612925, 77.229512), bool requiredGPS = false, LocationAccuracy desiredAccuracy = LocationAccuracy.best, bool automaticallyAnimateToCurrentLocation = true, String? title, bool layersButtonEnabled = true, double initialZoom = 16, FloatingActionButtonLocation floatingActionButtonLocation = FloatingActionButtonLocation.endFloat}) Future<LocationResult?>
Returns a LatLng object of the location that was picked.

Exceptions / Errors

MapStyleException
Exception when a map style is invalid or was unable to be set.