osm_flutter library Null safety

Classes

Address
AssetMarker
BaseMapController
class BaseMapController : base controller for osm flutter
BoundingBox
CircleOSM
CircleOSM : class that represent circle with be draw into map radius : (double) rayon of circle should be in meter
CopyrightOSMWidget
CustomPickerLocation
CustomPickerLocation
CustomPickerLocationConfig
CustomTile
CustomTile
GeoPoint
GeoPoint:class contain longitude and latitude of geographic position longitude : (double) latitude : (double)
GeoPointWithOrientation
JobAlertDialog
MapConfiguration
MapController
class MapController : map controller that will control map by select position,enable current location, draw road , show static geoPoint,
MarkerIcon
MarkerOption
MultiRoadConfiguration
MultiRoadConfiguration
MultiRoadOption
MultiRoadOption
OSMFlutter
Principal widget to show OSMMap using osm api you can track you current location,show static points like position of your stores show road between 2 points isPicker : (bool) if is true, map will behave as picker and will start advanced picker
PickerMapController
controller for custom picker location widget you will cancel/get/finish advanced picker you can also draw road,change current location get also current searchable text
RectOSM
RectOSM : class that represent circle with be draw into map distance : (double) size of region, should be in meter
Region
RoadConfiguration
RoadInfo
RoadInfo this class is represent road information for specific road contain 3 object distance,duration and list of route distance : (double) distance of the road in km, can be null
RoadOption
RoadOption
SearchInfo
ShapeOSM
ShapeOSM this class that represent shape will be draw into the map can be circle or rect key : (String) unique key should be given to each shape centerPoint : (GeoPoint) center point of shape color : (Color) color of the shape strokeWidth : (double) width stoke of the circle
StaticPositionGeoPoint
TileURLs
TileURLs
UserLocationMaker

Mixins

OSMMixinObserver

Extensions

ExtBoundingBox
ExtGeoPoint
ExtListGeoPoint
ExtTileUrls
TransformEncodedPolyLineToListGeo

Constants

earthRadius → const double
6371e3
iosSizeIcon → const List<double>
[48.0, 48.0]

Functions

addressSuggestion(String searchText, {int limitInformation = 5}) Future<List<SearchInfo>>
distance2point(GeoPoint p1, GeoPoint p2) Future<double>
calculate approximately distance between two geographique point using haversine formula fore more detail @link: https://www.movable-type.co.uk/scripts/latlong.html return value in metres p1 : (GeoPoint) first point in road p2 : (GeoPoint) last point in road
showSimplePickerLocation({required BuildContext context, Widget? titleWidget, String? title, TextStyle? titleStyle, String? textConfirmPicker, String? textCancelPicker, EdgeInsets contentPadding = EdgeInsets.zero, double radius = 0.0, GeoPoint? initPosition, double stepZoom = 1, double initZoom = 2, double minZoomLevel = 2, double maxZoomLevel = 18, bool isDismissible = false, bool initCurrentUserPosition = true}) Future<GeoPoint?>
showSimplePickerLocation : picker to select specific position
sqrtCos(num x) double
calculate square of cos : cos² x : (num) number that you want to calculate it's cos²
sqrtCos2(num x, num y) double
calculate multiplication of cos : cos x * cos y x : (num) number of the first cos x : (num) number of second cos
sqrtSin(num x) double
calculate square of sin : sin² x : (num) number that you want to calculate it's sin²

Enums

RoadType

Typedefs

OnGeoPointClicked = void Function(GeoPoint)
OnLocationChanged = void Function(GeoPoint)

Exceptions / Errors

GeoPointException
RoadException