MapController class

class MapController : map controller that will control map by select position,enable current location, draw road , show static geoPoint,

initMapWithUserPosition : (bool) if is true, map will show your current location

initPosition : (GeoPoint) if it isn't null, the map will be pointed at this position

Inheritance

Constructors

MapController({UserTrackingOption? initMapWithUserPosition, GeoPoint? initPosition, BoundingBox? areaLimit = const BoundingBox.world(), bool useExternalTracking = false})
MapController.customLayer({UserTrackingOption? initMapWithUserPosition, GeoPoint? initPosition, BoundingBox? areaLimit = const BoundingBox.world(), bool useExternalTracking = false, required CustomTile customTile})
MapController.cyclOSMLayer({UserTrackingOption? initMapWithUserPosition, GeoPoint? initPosition, BoundingBox? areaLimit = const BoundingBox.world()})
MapController.publicTransportationLayer({UserTrackingOption? initMapWithUserPosition, GeoPoint? initPosition, BoundingBox? areaLimit = const BoundingBox.world()})
MapController.satelliteLayer({UserTrackingOption? initMapWithUserPosition, GeoPoint? initPosition, BoundingBox? areaLimit = const BoundingBox.world(), bool useExternalTracking = false})
MapController.withPosition({required GeoPoint initPosition, BoundingBox? areaLimit = const BoundingBox.world()})
MapController.withUserPosition({BoundingBox? areaLimit = const BoundingBox.world(), bool useExternalTracking = false, UserTrackingOption trackUserLocation = const UserTrackingOption(enableTracking: false, unFollowUser: false)})

Properties

areaLimit → BoundingBox?
finalinherited
bounds → Future<BoundingBox>
no setter
centerMap → Future<GeoPoint>
centerMap
no setter
customTile → CustomTile?
finalinherited
geopoints → Future<List<GeoPoint>>
no setter
hashCode → int
The hash code for this object.
no setterinherited
initMapWithUserPosition → UserTrackingOption?
finalinherited
initPosition → GeoPoint?
finalinherited
isAllLayersVisible → bool
no setterinherited
listenerMapLongTapping → ValueListenable<GeoPoint?>
no setterinherited
listenerMapSingleTapping → ValueListenable<GeoPoint?>
no setterinherited
listenerRegionIsChanging → ValueListenable<Region?>
no setterinherited
listenerRoadTapped → ValueListenable<RoadInfo?>
no setterinherited
osmBaseController → IBaseOSMController
no setterinherited
osrmManager → OSRMManager
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
useExternalTracking → bool
finalinherited

Methods

addMarker(GeoPoint p, {MarkerIcon? markerIcon, double? angle, IconAnchor? iconAnchor}) → Future<void>
addObserver(OSMMixinObserver osmMixinObserver) → void
inherited
changeLocation(GeoPoint position) → Future<void>
initialise or change of position with creating marker in that specific position
changeLocationMarker({required GeoPoint oldLocation, required GeoPoint newLocation, MarkerIcon? markerIcon, double? angle, IconAnchor? iconAnchor}) → Future<void>
changeTileLayer({CustomTile? tileLayer}) → Future<void>
changeTileLayer
clearAllRoads() → Future<void>
clearAllRoads this method will delete all roads drawn in the map
currentLocation() → Future<void>
activate current location position
disabledTracking() → Future<void>
disabled tracking user location
dispose() → void
dispose
override
drawCircle(CircleOSM circleOSM) → Future<void>
draw circle into map
drawMultipleRoad(List<MultiRoadConfiguration> configs, {MultiRoadOption commonRoadOption = const MultiRoadOption.empty()}) → Future<List<RoadInfo>>
drawMultipleRoad
drawRect(RectOSM rectOSM) → Future<void>
draw rect into map
drawRoad(GeoPoint start, GeoPoint end, {RoadType roadType = RoadType.car, List<GeoPoint>? intersectPoint, RoadOption? roadOption}) → Future<RoadInfo>
draw road
drawRoadManually(List<GeoPoint> path, RoadOption roadOption) → Future<void>
drawRoadManually
enableTracking({bool enableStopFollow = false, bool disableUserMarkerRotation = false, Anchor anchor = Anchor.center, bool useDirectionMarker = false}) → Future<void>
enableTracking
getZoom() → Future<double>
getZoom
goToLocation(GeoPoint position) → Future<void>
goToLocation
init() → void
implement this method,should be start with super.init()
inherited
limitAreaMap(BoundingBox boundingBox) → Future<void>
limitAreaMap
moveTo(GeoPoint position, {bool animate = false}) → Future<void>
moveTo
myLocation() → Future<GeoPoint>
recuperation of user current position
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllCircle() → Future<void>
clear all circle
removeAllRect() → Future<void>
remove all rect shape from map
removeAllShapes() → Future<void>
remove all shape from map
removeCircle(String keyCircle) → Future<void>
remove specific circle in the map
removeLastRoad() → Future<void>
removeLastRoad
removeLimitAreaMap() → Future<void>
removeLimitAreaMap
removeMarker(GeoPoint position) → Future<void>
removeMarker
removeMarkers(List<GeoPoint> geoPoints) → Future<void>
removeMarkers
removeObserver(OSMMixinObserver osmMixinObserver) → void
inherited
removeRect(String keyRect) → Future<void>
remove specific region in the map
removeRoad({required String roadKey}) → Future<void>
removeRoad
rotateMapCamera(double degree) → Future<void>
rotateMapCamera
setMarkerIcon(GeoPoint point, MarkerIcon icon) → Future
setMarkerIcon
setMarkerOfStaticPoint({required String id, required MarkerIcon markerIcon}) → Future<void>
setMarkerOfStaticPoint
setStaticPosition(List<GeoPoint> geoPoints, String id) → Future<void>
setStaticPosition
setZoom({double? zoomLevel, double? stepZoom}) → Future<void>
setZoom
startLocationUpdating({bool enableStopFollow = false, bool disableUserMarkerRotation = false, Anchor anchor = Anchor.center, bool useDirectionMarker = false}) → Future<void>
startLocationUpdating
stopLocationUpdating() → Future<void>
stopLocationUpdating
toggleLayersVisibility() → Future<void>
toggleLayersVisibility
inherited
toString() → String
A string representation of this object.
inherited
zoomIn() → Future<void>
zoomIn
zoomOut() → Future<void>
zoomOut
zoomToBoundingBox(BoundingBox box, {int paddinInPixel = 0}) → Future<void>
zoomToBoundingBox

Operators

operator ==(Object other) → bool
The equality operator.
inherited