GenericMap class

Inheritance

Constructors

GenericMap({Key? key, PlatformMapProviderSettings platformMapProviderSettings = const PlatformMapProviderSettings(defaultProvider: MapProviderEnum.openStreetMaps), Place initialLocation = const Place(LatLng(37.7858, -122.4064), 'San Francisco, CA', 'San Francisco'), double initialZoom = 14, MapViewMode mode = MapViewMode.static, dynamic onControllerReady(MapViewController)?, List<PolyLineLayer> polylines = const [], MapMovedCallback? onMapMoved, bool useCachedTiles = false, bool interactive = false, EdgeInsets padding = EdgeInsets.zero, EdgeInsets actionsPadding = EdgeInsets.zero, List<CustomMarker> markers = const <CustomMarker>[], CenterMarker centerMarkerBuilder(BuildContext context, GlobalKey<State<StatefulWidget>> key, String? address)?, AddressResolver? addressResolver, List<CircleMarker> circleMarkers = const [], bool isPolylineDrawEnabled = false, PolyEditor? polyEditor, dynamic onPolylineDrawn(List<LatLng>)?, dynamic onPolylineEdited(String polylineId, List<LatLng> points)?, MapboxSdkOptions? mapboxSdkOptions, MapboxOptions? mapboxOptions, MapLibreOptions? mapLibreOptions, bool enableAddressResolve = false, OpenStreetMapsOptions? openStreetMapOptions, GoogleMapsOptions? googleMapOptions, List<HeatmapConfig> heatmapConfig = const [], bool showMyLocation = true, Duration addressResolveDebounce = const Duration(milliseconds: 300), Duration? mapMoveDebounce})

Properties

actionsPadding → EdgeInsets
final
addressResolveDebounce → Duration
final
addressResolver → AddressResolver?
final
centerMarkerBuilder → CenterMarker Function(BuildContext context, GlobalKey<State<StatefulWidget>> key, String? address)?
final
circleMarkers → List<CircleMarker>
final
enableAddressResolve → bool
final
googleMapOptions → GoogleMapsOptions?
final
hashCode → int
The hash code for this object.
no setterinherited
heatmapConfig → List<HeatmapConfig>
final
initialLocation → Place
final
initialZoom → double
final
interactive → bool
final
isPolylineDrawEnabled → bool
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mapboxOptions → MapboxOptions?
final
mapboxSdkOptions → MapboxSdkOptions?
final
mapLibreOptions → MapLibreOptions?
final
mapMoveDebounce → Duration?
final
markers → List<CustomMarker>
final
mode → MapViewMode
final
onControllerReady → dynamic Function(MapViewController)?
final
onMapMoved → MapMovedCallback?
final
onPolylineDrawn → dynamic Function(List<LatLng>)?
final
onPolylineEdited → dynamic Function(String polylineId, List<LatLng> points)?
final
openStreetMapOptions → OpenStreetMapsOptions?
final
padding → EdgeInsets
Padding for fitBounds
final
platformMapProviderSettings → PlatformMapProviderSettings
final
polyEditor → PolyEditor?
final
polylines → List<PolyLineLayer>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showMyLocation → bool
final
useCachedTiles → bool
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<GenericMap>
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, int wrapWidth = 65}) → 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