nb_navigation_flutter library

Classes

Annotation
AnnotationManager<T extends Annotation>
ArgumentCallbacks<T>
Mutable collection of ArgumentCallback instances, itself an ArgumentCallback.
BannerInstructions
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
CircleLayerProperties
CircleManager
CircleOptions
Configuration options for Circle instances.
Component
Coordinate
DirectionsRoute
DirectionsRouteResponse
Distance
DownloadRegionStatus
Error
Expressions
Fill
FillExtrusionLayerProperties
FillLayerProperties
FillManager
FillOptions
Configuration options for Fill instances.
GeojsonSourceProperties
HeatmapLayerProperties
HillshadeLayerProperties
ImageSourceProperties
InProgress
Intersection
Lane
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
LayerProperties
Leg
Line
LineLayerProperties
LineManager
LineOptions
Configuration options for Line instances.
Maneuver
MapRouteLayerProvider
MethodChannelNavigationView
MethodChannelNbMapsGl
MinMaxZoomPreference
Preferred bounds for map camera zoom level.
NBMap
NbMapsGlPlatform
NbMapStyles
NBNavigationConfigMethodID
NBNavigationLauncherMethodID
NBNavigationMethodChannel
NBNavigationPlatform
NBNavigationView
NBNavigationViewPlatform
NBNavMethodChannelsConstants
NBRouteMethodID
NextBillion
NextbillionMapController
Controller for a single NBMap instance running on the host platform.
NextBillionMapOptions
Configuration options for the NbMaps user interface.
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.
PlatformWrapper
PlatformWrapperImpl
Primary
RasterDemSourceProperties
RasterLayerProperties
RasterSourceProperties
RoadShield
RouteLineProperties
RouteRequestParams
Represents the request parameters for a route. Refer to Navigation API https://docs.nextbillion.ai/docs/navigation/api/navigation
RouteStep
SnapshotOptions
Set of options for taking map snapshot
SourceProperties
Success
Symbol
SymbolLayerProperties
SymbolManager
SymbolOptions
Configuration options for Symbol instances.
TimeDuration
UserHeading
Type represents a geomagnetic value, measured in microteslas, relative to a device axis in three dimensional space.
UserLocation
User's observed location
VectorSourceProperties
VideoSourceProperties
VoiceInstruction
Waypoint

Enums

AnnotationType
AttributionButtonPosition
Attribution Button Position
CompassViewPosition
Compass View Position
CongestionLevel
A CongestionLevel indicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.
DragEventType
LocationLayerRenderMode
MyLocationRenderMode
Render mode
MyLocationTrackingMode
The camera mode, which determines how the map camera will track the rendered location.
RouteType
SupportedApproaches
SupportedAvoid
SupportedGeometry
SupportedHazmatType
SupportedOption
SupportedUnits
ValidModes
ValidOverview

Mixins

NBNavigation
Stateless facade of the nextbillion navigation platform
NBNavigationMethodChannelsFactory
TimeFormatter

Properties

globalChannel MethodChannel
getter/setter pair

Functions

buildFeatureCollection(List<Map<String, dynamic>> features) Map<String, dynamic>
decode(String encodedPath, int precision) List<LatLng>
deleteOfflineRegion(int id, {String? accessToken}) Future
downloadOfflineRegion(OfflineRegionDefinition definition, {Map<String, dynamic> metadata = const {}, String? accessToken, dynamic onEvent(DownloadRegionStatus event)?, EventChannelCreator? eventChannelCreator}) Future<OfflineRegion>
getListOfRegions({String? accessToken}) Future<List<OfflineRegion>>
getRandomString([int length = 10]) String
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>>
setHttpHeaders(Map<String, String> headers) Future<void>
setOffline(bool offline, {String? accessToken}) Future
setOfflineTileCountLimit(int limit, {String? accessToken}) Future
setTestingGlobalChannel(MethodChannel channel) → void
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.
EventChannelCreator = EventChannel Function(String name)
MapCreatedCallback = void Function(NextbillionMapController controller)
OnArriveAtWaypointCallback = void Function(Waypoint? atWaypoint)
OnAttributionClickCallback = void Function()
OnCameraIdleCallback = void Function()
OnCameraTrackingChangedCallback = void Function(MyLocationTrackingMode mode)
OnCameraTrackingDismissedCallback = void Function()
OnFeatureDragnCallback = void Function(dynamic id, {required LatLng current, required LatLng delta, required DragEventType eventType, required LatLng origin, required Point<double> point})
OnFeatureInteractionCallback = void Function(dynamic id, Point<double> point, LatLng coordinates)
OnMapClickCallback = void Function(Point<double> point, LatLng coordinates)
OnMapIdleCallback = void Function()
OnMapLongClickCallback = void Function(Point<double> point, LatLng coordinates)
OnNavigationCancellingCallback = void Function()
OnNavigationExitCallback = void Function(bool shouldRefreshRoute, int remainingWaypoints)
OnNavigationRunningCallback = void Function()
OnNavigationViewReadyCallBack = void Function(NavigationViewController controller)
OnPlatformViewCreatedCallback = void Function(int)
OnRerouteAlongCallback = void Function(DirectionsRoute? route)
OnRerouteFailureCallback = void Function(String? message)
OnRerouteFromLocationCallback = void Function(LatLng? rereouteFromLocation)
OnRouteSelectedCallback = void Function(int selectedRouteIndex)
OnStyleLoadedCallback = void Function()
OnUserLocationUpdated = void Function(UserLocation location)
ProgressChangeCallback = void Function(NavigationProgress? progress)