OpenMapSettings class

Global settings for map You can wrap material app with it or wrap entire screen to override the globals

Inheritance

Constructors

OpenMapSettings({Key? key, required Widget child, GetCurrentLocationCallBack? getCurrentLocation, OpenMapOptions? defaultOptions, GetLocationStreamCallBack? getLocationStream, void onError(BuildContext context, dynamic error)?, LocationMarkerCallback? locationMarker, CurrentLocationMarkerCallback? currentLocationMarker, TileLayer tileLayer(TileLayer defaultLayer)?, String searchHint(BuildContext context)?, MyLocationButtonCallBack? myLocationButton, SearchFilters? searchFilters, ReverseZoom? reverseZoom, MapViewConfig? mapViewConfig})
const

Properties

child Widget
The widget below this widget in the tree.
finalinherited
currentLocationMarker CurrentLocationMarkerCallback?
use it if you want to override the default user location circle
final
defaultOptions OpenMapOptions?
default map options it will be override by the map specified options
final
getCurrentLocation GetCurrentLocationCallBack?
we don't need to depend in any package except maps so we let you choose how you get user current location you can use location or geo locator or any thing else
final
getLocationStream GetLocationStreamCallBack?
we don't need to depend in any package except maps so we let you choose how you get user current location you can use location or geo locator or any thing else
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locationMarker LocationMarkerCallback?
call back to build custom marker
final
mapViewConfig MapViewConfig?
Let you define visual map configurations
final
myLocationButton MyLocationButtonCallBack?
The Floating button for user location button it must call the function we passed
final
onError → (void Function(BuildContext context, dynamic error)?)
global error handler
final
reverseZoom ReverseZoom?
handle what type of address you want when you tap on map
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchFilters SearchFilters?
Limiting search results to
final
searchHint → (String Function(BuildContext context)?)
hint to display in search box
final
tileLayer → (TileLayer Function(TileLayer defaultLayer)?)
override the default map
final

Methods

createElement() InheritedElement
Inflates this configuration to a concrete instance.
inherited
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
updateShouldNotify(covariant OpenMapSettings oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

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

Static Methods

of(BuildContext context) OpenMapSettings?