GenericMap class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GenericMap
Constructors
-
GenericMap.new({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 [], dynamic onMapMoved(MapMovedEvent)?, 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< key, String? address)?, AddressResolver? addressResolver, List<StatefulWidget> >CircleMarker> circleMarkers = const [], bool isPolylineDrawEnabled = false, PolyEditor? polyEditor, dynamic onPolylineDrawn(List<LatLng> )?, 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< key, String? address)?StatefulWidget> > -
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 → dynamic Function(MapMovedEvent)?
-
final
-
onPolylineDrawn
→ dynamic Function(List<
LatLng> )? -
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