open_location_picker library

Classes

Address
Anchor
Exact alignment for a Marker.builder widget relative to the center of its bounding box defined by its Marker.height & Marker.width
AnchorPos
Defines the positioning of a Marker.builder widget relative to the center of its bounding box defined by its Marker.height & Marker.width
AssetTileProvider
Fetch tiles from the app's shipped assets, where the tile URL is a path within the asset store
BaseOverlayImage
Base class for all overlay images.
CenterZoom
Geographical point with applied zoom level
Circle
Circle-base GEO algorithms.
CircleLayer
CircleMarker
CirclePainter
Crs
An abstract representation of a Coordinate Reference System.
CrsSimple
CustomPoint<T extends num>
Data represenation of point located on map instance where x is horizontal and y is vertical pixel value
Distance
Calculates the distance between points.
DistanceCalculator
DistanceHaversine
Shortcut for final Distance distance = const Distance(calculator: const Haversine());
DistanceVincenty
Shortcut for final Distance distance = const Distance(calculator: const Vincenty());
Earth
Epsg3857
The most common CRS used for rendering maps.
Epsg4326
A common CRS among GIS enthusiasts. Uses simple Equirectangular projection.
FadeInTileDisplay
FadeRAWA
Prebuilt animation provider for a RichAttributionWidget
FileTileProvider
Fetch tiles from the local filesystem (not asset store), where the tile URL is a path within the filesystem.
FitBoundsOptions
FlutterMap
Renders an interactive geographical map as a widget
FormattedLocation
GeoGeometry
GeoLinestring
GeoMultiPolygon
GeoPoint
GeoPolygon
Haversine
InstantaneousTileDisplay
InteractiveFlag
Use InteractiveFlag to disable / enable certain events Use InteractiveFlag.all to enable all events, use InteractiveFlag.none to disable all events
LatLng
Coordinates in Degrees
LatLngBounds
Data structure representing rectangular bounding box constrained by its northwest and southeast corners
LengthUnit
LogoSourceAttribution
An image attribution permanently displayed adjacent to the open/close icon of a RichAttributionWidget
MapController
Controller to programmatically interact with FlutterMap, such as controlling it and accessing some of its properties.
MapEvent
Base event class which is emitted by MapController instance, the event is usually related to performed gesture on the map itself or it can be an event related to map configuration
MapEventDoubleTapZoom
Event which is fired when map is double tapped
MapEventDoubleTapZoomEnd
Event which is fired when animation for double tap gesture ends
MapEventDoubleTapZoomStart
Event which is fired when animation for double tap gesture is started
MapEventFlingAnimation
Event which is fired when animation started by fling gesture is in progress
MapEventFlingAnimationEnd
Event which is fired when animation started by fling gesture finished
MapEventFlingAnimationNotStarted
Emits when InteractiveFlags contains fling and there wasn't enough velocity to start fling animation
MapEventFlingAnimationStart
Event which is fired when fling gesture is detected
MapEventLongPress
Event which is fired when map is long-pressed
MapEventMove
Event which is fired when map is being moved.
MapEventMoveEnd
Event which is fired when dragging is finished
MapEventMoveStart
Event which is fired when dragging is started
MapEventNonRotatedSizeChange
MapEventRotate
Event which is fired when map is being rotated
MapEventRotateEnd
MapEventRotateStart
Event which is fired when rotate gesture was started
MapEventScrollWheelZoom
Event which is fired when scroll wheel is used to zoom
MapEventSecondaryTap
MapEventTap
Event which is fired when map is tapped
MapEventWithMove
Base event class which is emitted by MapController instance and includes information about camera movement
MapOptions
Allows you to provide your map's starting properties for zoom, rotation and center. Alternatively you can provide bounds instead of center. If both, center and bounds are provided, bounds will take preference over center. Zoom, pan boundary and interactivity constraints can be specified here too.
MapPosition
MapViewConfig
Map view configuration
Marker
Represents a coordinate point on the map with an attached widget builder, rendered by MarkerLayer
MarkerLayer
MoveAndRotateResult
MultiFingerGesture
Use MultiFingerGesture to disable / enable certain gestures Use MultiFingerGesture.all to enable all gestures, use MultiFingerGesture.none to disable all gestures
MultiOpenMapPicker
Pick multiple location and it ui is same as Inputs in your app You can set your preferred options for map using OpenMapSettings
NetworkTileProvider
TileProvider to fetch tiles from the network
OpenMapBloc
OpenMapOptions
Allows you to provide your map's starting properties for zoom, rotation and center. Alternatively you can provide bounds instead of center. If both, center and bounds are provided, bounds will take preference over center. Zoom, pan boundary and interactivity constraints can be specified here too.
OpenMapPicker
Pick single location and it ui is same as Inputs in your app You can set your preferred options for map using OpenMapSettings
OpenMapSettings
Global settings for map You can wrap material app with it or wrap entire screen to override the globals
OpenMapState
OpenStreetMaps
Map screen
OverlayImage
Unrotated overlay image that spans between a given bounding box.
OverlayImageLayer
Path<T extends LatLng>
Path of LatLng values
Polygon
PolygonLayer
PolygonPainter
Polyline
PolylineLayer
PolylinePainter
PositionedTapController
PositionedTapDetector2
Proj4Crs
Custom CRS
Projection
Reverse
RichAttributionWidget
A prebuilt dynamic attribution layer that supports both logos and text through SourceAttributions
RichAttributionWidgetAnimation
Animation provider base for a RichAttributionWidget
RichAttributionWidgetState
RotatedOverlayImage
Spans an image across three corner points.
ScaleRAWA
Prebuilt animation provider for a RichAttributionWidget
SearchFilters
Limit the search results
SelectedLocation
SimpleAttributionWidget
A simple, classic style, attribution widget, to be placed in FlutterMap.nonRotatedChildren
SourceAttribution
Base class for attributions that render themselves as widgets
SphericalMercator
TapPosition
TextSourceAttribution
A simple text attribution displayed in the popup box of a RichAttributionWidget
TileCoordinates
TileDisplay
TileImage
TileLayer
Describes the needed properties to create a tile-based layer. A tile is an image bound to a specific geographical position.
TileProvider
The base tile provider implementation, extended by other classes such as NetworkTileProvider
TileUpdateEvent
Describes whether loading and/or pruning should occur and allows overriding the load center/zoom.
TileUpdateTransformers
Set of default TileUpdateTransformers
Transformation
ViewBox
Vincenty
WMSTileLayerOptions

Enums

AnchorAlign
Relative alignment for a Marker.builder widget relative to the center of its bounding box defined by its Marker.height & Marker.width
AttributionAlignment
Position to anchor RichAttributionWidget to relative to the FlutterMap
EvictErrorTileStrategy
MapEventSource
Event sources which are used to identify different types of MapEvent events
PolygonLabelPlacement
ReverseZoom
handle what type of address you want when you tap on map when you tap on the map and you set ReverseZoom.city then select the city where you tapped in

Constants

earthRadius → const double
Earth radius in meter
equatorRadius → const double
Equator radius in meter (WGS84 ellipsoid)
flattening → const double
WGS84
pi → const double
The PI constant.
polarRadius → const double
Polar radius in meter (WGS84 ellipsoid)

Functions

coordinateDebugTileBuilder(BuildContext context, Widget tileWidget, TileImage tile) Widget
Shows coordinates over Tiles
darkModeTileBuilder(BuildContext context, Widget tileWidget, TileImage tile) Widget
Applies inversion color matrix on Tiles which may simulate Dark mode. darkModeTilesContainerBuilder is better at performance because it applies color matrix on the container instead of on every Tile
darkModeTilesContainerBuilder(BuildContext context, Widget tilesContainer) Widget
Applies inversion color matrix on Tiles container which may simulate Dark mode.
decimal2sexagesimal(double dec) String
Converts a decimal coordinate value to sexagesimal format
degToRadian(double deg) double
Converts degree to radian
loadingTimeDebugTileBuilder(BuildContext context, Widget tileWidget, TileImage tile) Widget
Shows the Tile loading time in ms
normalizeBearing(double bearing) double
Convert a bearing to be within the 0 to +360 degrees range. Compass bearing is in the rangen 0° ... 360°
radianToDeg(double rad) double
Radian to degree
round(double value, {int decimals = 6}) double
Rounds value to given number of decimals
sexagesimal2decimal(String str) double
Converts a string coordinate value in sexagesimal format to decimal
zeroPad(num number) String
Pads a number with a single zero, if it is less than 10

Typedefs

CurrentLocationMarkerCallback = Marker Function(BuildContext context, LatLng location)
ErrorTileCallBack = void Function(TileImage tile, Object error, StackTrace? stackTrace)
GetCurrentLocationCallBack = Future<LatLng?> Function()
GetLocationStreamCallBack = Stream<LatLng> Function()
LatLngFactory = LatLng Function(double latitude, double longitude)
Necessary for creating new instances T extends LatLng (Path
LocationMarkerCallback = Marker Function(BuildContext context, FormattedLocation location)
LongPressCallback = void Function(TapPosition tapPosition, LatLng point)
MapEventCallback = void Function(MapEvent)
MyLocationButtonCallBack = Widget Function(dynamic callback(LatLng destLocation, [double destZoom]))
PointerCancelCallback = void Function(PointerCancelEvent event, LatLng point)
PointerDownCallback = void Function(PointerDownEvent event, LatLng point)
PointerHoverCallback = void Function(PointerHoverEvent event, LatLng point)
PointerUpCallback = void Function(PointerUpEvent event, LatLng point)
PositionCallback = void Function(MapPosition position, bool hasGesture)
TapCallback = void Function(TapPosition tapPosition, LatLng point)
TapPositionCallback = void Function(TapPosition position)
TemplateFunction = String Function(String str, Map<String, String> data)
TileBuilder = Widget Function(BuildContext context, Widget tileWidget, TileImage tile)
TileUpdateTransformer = StreamTransformer<TileUpdateEvent, TileUpdateEvent>
Defines which TileUpdateEvents should cause which TileUpdateEvents and when