ReactiveMap class

Inheritance

Constructors

ReactiveMap({Key? key, required dynamic searchController, bool showMarkerClusters = true, bool autoCenter = false, bool searchAsMove = false, List<Place> calculateMarkers(dynamic searchController)?, Marker buildMarker(Place place)?, Future<Marker> buildClusterMarker(Cluster<Place> cluster)?, List<double> levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0], double extraPercent = 0.5, double? stopClusteringZoom, required CameraPosition initialCameraPosition, MapType mapType = MapType.normal, bool compassEnabled = true, MapCreatedCallback? onMapCreated, bool mapToolbarEnabled = true, CameraTargetBounds cameraTargetBounds = CameraTargetBounds.unbounded, MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded, bool rotateGesturesEnabled = true, bool scrollGesturesEnabled = true, bool zoomControlsEnabled = true, bool zoomGesturesEnabled = true, bool liteModeEnabled = false, bool tiltGesturesEnabled = true, EdgeInsets padding = const EdgeInsets.all(0), bool myLocationEnabled = false, bool myLocationButtonEnabled = true, bool indoorViewEnabled = false, bool trafficEnabled = false, bool buildingsEnabled = true, Set<Polygon> polygons = const <Polygon>{}, Set<Polyline> polylines = const <Polyline>{}, Set<Circle> circles = const <Circle>{}, VoidCallback? onCameraMoveStarted, Set<TileOverlay> tileOverlays = const <TileOverlay>{}, CameraPositionCallback? onCameraMove, VoidCallback? onCameraIdle, ArgumentCallback<LatLng>? onTap, ArgumentCallback<LatLng>? onLongPress, Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{}})
const

Properties

autoCenter bool
whether to auto center the map based on the geometric center of all the location markers. Defaults to false.
final
buildClusterMarker → (Future<Marker> Function(Cluster<Place> cluster)?)
To draw the marker on Map when showMarkerClusters is set to true.
final
buildingsEnabled bool
Enables or disables showing 3D buildings where available
final
buildMarker → (Marker Function(Place place)?)
To draw the marker on Map when showMarkerClusters is not set to true.
final
calculateMarkers → (List<Place> Function(dynamic searchController)?)
The ReactiveGoogleMap component uses the ElasticSearch hits to render the markers, if you wish to override the default markers then ``calculateMarkers` prop is the way.
final
cameraTargetBounds → CameraTargetBounds
Geographical bounding box for the camera target.
final
circles Set<Circle>
Circles to be placed on the map.
final
compassEnabled bool
True if the map should show a compass when rotated.
final
extraPercent double
Extra percent of markers to be loaded (ex : 0.2 for 20%)
final
gestureRecognizers Set<Factory<OneSequenceGestureRecognizer>>
Which gestures should be consumed by the map.
final
hashCode int
The hash code for this object.
no setterinherited
indoorViewEnabled bool
Enables or disables the indoor view from the map
final
initialCameraPosition → CameraPosition
The initial position of the map's camera.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
levels List<double>
Zoom levels configuration
final
liteModeEnabled bool
True if the map view should be in lite mode. Android only.
final
mapToolbarEnabled bool
True if the map should show a toolbar when you interact with the map. Android only.
final
mapType → MapType
Type of map tiles to be rendered.
final
minMaxZoomPreference → MinMaxZoomPreference
Preferred bounds for the camera zoom level.
final
myLocationButtonEnabled bool
Enables or disables the my-location button.
final
myLocationEnabled bool
True if a "My Location" layer should be shown on the map.
final
onCameraIdle VoidCallback?
Called when camera movement has ended, there are no pending animations and the user has stopped interacting with the map.
final
onCameraMove → CameraPositionCallback?
Called repeatedly as the camera continues to move after an onCameraMoveStarted call.
final
onCameraMoveStarted VoidCallback?
Called when the camera starts moving.
final
onLongPress → ArgumentCallback<LatLng>?
Called every time a GoogleMap is long pressed.
final
onMapCreated → MapCreatedCallback?
Callback method for when the map is ready to be used.
final
onTap → ArgumentCallback<LatLng>?
Called every time a GoogleMap is tapped.
final
padding EdgeInsets
Padding to be set on map. See https://developers.google.com/maps/documentation/android-sdk/map#map_padding for more details.
final
polygons Set<Polygon>
Polygons to be placed on the map.
final
polylines Set<Polyline>
Polylines to be placed on the map.
final
rotateGesturesEnabled bool
True if the map view should respond to rotate gestures.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollGesturesEnabled bool
True if the map view should respond to scroll gestures.
final
searchAsMove bool
If set to true then it would update the results as the map bounds change. Defaults to false.
final
searchController → dynamic
final
showMarkerClusters bool
Whether to aggregate and form a cluster of nearby markers. Defaults to false.
final
stopClusteringZoom double?
Zoom level to stop cluster rendering
final
tileOverlays Set<TileOverlay>
Tile overlays to be placed on the map.
final
tiltGesturesEnabled bool
True if the map view should respond to tilt gestures.
final
trafficEnabled bool
Enables or disables the traffic layer of the map
final
zoomControlsEnabled bool
True if the map view should show zoom controls. This includes two buttons to zoom in and zoom out. The default value is to show zoom controls.
final
zoomGesturesEnabled bool
True if the map view should respond to zoom gestures.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ReactiveMap>
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