mapbox_flutter library
Classes
-
ArgumentCallbacks<
T> - Mutable collection of ArgumentCallback instances, itself an ArgumentCallback.
- CameraPosition
- The position of the map "camera", the view point from which the world is shown in the map view. Aggregates the camera's target geographical location, its zoom level, tilt angle, and bearing.
- CameraTargetBounds
- Bounds for the map camera target.
- CameraUpdate
- Defines a camera move, supporting absolute moves as well as moves relative the current position.
- Circle
- CircleOptions
- Configuration options for Circle instances.
- DownloadRegionStatus
- Error
- Fill
- FillOptions
- Configuration options for Fill instances.
- InProgress
- LatLng
- A pair of latitude and longitude coordinates, stored as degrees.
- LatLngBounds
- A latitude/longitude aligned rectangle.
- LatLngQuad
- A geographical area representing a non-aligned quadrilateral This class does not wrap values to the world bounds
- Line
- LineOptions
- Configuration options for Line instances.
- MapboxFlutterMap
- MapboxFlutterMapController
- Controller for a single MapboxMap instance running on the host platform.
- MapboxFlutterPlatfom
- MapboxStyles
- MethodChannelMapboxFlutter
- MinMaxZoomPreference
- Preferred bounds for map camera zoom level.
- OfflineRegion
- Description of a downloaded region including its identifier.
- OfflineRegionDefinition
- Description of region to be downloaded. Identifier will be generated when the download is initiated.
- Success
- Symbol
- SymbolOptions
- Configuration options for Symbol instances.
- UserHeading
- Type represents a geomagnetic value, measured in microteslas, relative to a device axis in three dimensional space.
- UserLocation
- User's observed location
Enums
- AnnotationType
- CompassViewPosition
- Compass View Position
- MyLocationRenderMode
- Render mode
- MyLocationTrackingMode
- The camera mode, which determines how the map camera will track the rendered location.
Functions
-
deleteOfflineRegion(
int id, {String? accessToken}) → Future -
downloadOfflineRegion(
OfflineRegionDefinition definition, {Map< String, dynamic> metadata = const {}, String? accessToken, dynamic onEvent(DownloadRegionStatus event)?}) → Future<OfflineRegion> -
getListOfRegions(
{String? accessToken}) → Future< List< OfflineRegion> > -
installOfflineMapTiles(
String tilesDb) → Future< void> - Copy tiles db file passed in to the tiles cache directory (sideloaded) to make tiles available offline.
-
mergeOfflineRegions(
String path, {String? accessToken}) → Future< List< OfflineRegion> > -
setOffline(
bool offline, {String? accessToken}) → Future -
setOfflineTileCountLimit(
int limit, {String? accessToken}) → Future -
translateFillOptions(
FillOptions options, LatLng delta) → FillOptions -
updateOfflineRegionMetadata(
int id, Map< String, dynamic> metadata, {String? accessToken}) → Future<OfflineRegion>
Typedefs
-
ArgumentCallback<
T> = void Function(T argument) - Callback function taking a single argument.
- MapCreatedCallback = void Function(MapboxFlutterMapController controller)
- OnAttributionClickCallback = void Function()
- OnCameraIdleCallback = void Function()
- OnCameraTrackingChangedCallback = void Function(MyLocationTrackingMode mode)
- OnCameraTrackingDismissedCallback = void Function()
-
OnMapClickCallback
= void Function(Point<
double> point, LatLng coordinates) - OnMapIdleCallback = void Function()
-
OnMapLongClickCallback
= void Function(Point<
double> point, LatLng coordinates) - OnPlatformViewCreatedCallback = void Function(int)
- OnStyleLoadedCallback = void Function()
- OnUserLocationUpdated = void Function(UserLocation location)