flutter_osm_plugin library

Classes

Address
AnimatedCenterMarker
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
GeoPointWithOrientation
IconAnchor
Instruction
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
OSMFlutter
OSMOption
OSMOption
OSMViewer
PickerMapController
PickerMapController
RectOSM
RectOSM : class that represent circle with be draw into map distance : (double) size of region, should be in meter
Region
RoadInfo
RoadInfo
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
SimpleMapController
StaticPositionGeoPoint
TileURLs
TileURLs
UserLocationMaker
UserTrackingOption
ZoomOption
ZoomOption

Constants

deg2rad → const double
earthRadius → const double
earthRadiusMeters → const int
iosSizeIcon → const List<double>
rad2deg → const double

Functions

addressSuggestion(String searchText, {int limitInformation = 5, String locale = ""}) 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
geoPointAsRect({required GeoPoint center, required double lengthInMeters, required double widthInMeters}) List<GeoPoint>
geoPointAsRect
isEqual1eX(double value) bool
showSimplePickerLocation({required BuildContext context, Widget? titleWidget, PickerMarkerBuilder? pickMarkerWidget, String? title, TextStyle? titleStyle, String? textConfirmPicker, String? textCancelPicker, EdgeInsets contentPadding = EdgeInsets.zero, double radius = 0.0, GeoPoint? initPosition, ZoomOption zoomOption = const ZoomOption(), bool isDismissible = false, UserTrackingOption? initCurrentUserPosition}) 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²

Exceptions / Errors

GeoPointException
RoadException