OpenStreetMaps class

Map screen

  • it can be used to display location
  • when you pass bloc this means you want to pick location so the ui changed to map picker
  • When you pass bloc this mean there was Scaffold so you don't need one
Inheritance

Constructors

OpenStreetMaps({Key? key, required OpenMapOptions options, OpenMapBloc? bloc, TileLayer tileLayer(TileLayer defaultLayer)?, MyLocationButtonCallBack? myLocationButton, ValueChanged<SelectedLocation>? onDone, String? searchHint, ReverseZoom? reverseZoom, SearchFilters? searchFilters})
const

Properties

bloc OpenMapBloc?
if you want this widget to act as picker you can pass this I prefer to use OpenMapPicker or MultiOpenMapPicker
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
myLocationButton MyLocationButtonCallBack?
The Floating button for user location button it must call the function we passed You can set it also using OpenMapSettings
final
onDone ValueChanged<SelectedLocation>?
call back on pressing to done button You can set it also using OpenMapSettings
final
options OpenMapOptions
Set the map options you can use center or bounds
final
reverseZoom ReverseZoom?
handle what type of address you want when you tap on map You can set it also using OpenMapSettings
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchFilters SearchFilters?
Limiting search results to You can set it also using OpenMapSettings
final
searchHint String?
hint to display in search box You can set it also using OpenMapSettings
final
tileLayer → (TileLayer Function(TileLayer defaultLayer)?)
override the default map
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<OpenStreetMaps>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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