YandexMap class

A widget which displays a map using Yandex maps service.

Inheritance

Constructors

YandexMap({Key? key, Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{}, List<MapObject> mapObjects = const [], bool tiltGesturesEnabled = true, bool zoomGesturesEnabled = true, bool rotateGesturesEnabled = true, bool scrollGesturesEnabled = true, bool nightModeEnabled = false, bool fastTapEnabled = false, bool mode2DEnabled = false, MapAlignment logoAlignment = const MapAlignment(horizontal: HorizontalAlignment.right, vertical: VerticalAlignment.bottom), ScreenRect? focusRect, MapCreatedCallback? onMapCreated, ArgumentCallback<Point>? onMapTap, ArgumentCallback<Point>? onMapLongTap, UserLocationCallback? onUserLocationAdded, CameraPositionCallback? onCameraPositionChanged, TrafficChangedCallback? onTrafficChanged, MapType mapType = MapType.vector, int? poiLimit, ObjectTapCallback? onObjectTap, CameraBounds cameraBounds = const CameraBounds()})
A Widget for displaying Yandex Map
const

Properties

cameraBounds CameraBounds
Map camera bounds
final
fastTapEnabled bool
Enable removes the 300 ms delay in emitting a tap gesture. However, a double-tap will emit a tap gesture along with a double-tap.
final
focusRect ScreenRect?
Allows to set map focus to a certain rectangle instead of the whole map For more info refer to https://yandex.com/dev/maps/mapkit/doc/ios-ref/full/Classes/YMKMapWindow.html#focusRect
final
gestureRecognizers Set<Factory<OneSequenceGestureRecognizer>>
Which gestures should be consumed by the map.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
logoAlignment MapAlignment
Set logo alignment on the map
final
mapObjects List<MapObject>
Map objects to show on map
final
mapType MapType
Sets the base map type.
final
mode2DEnabled bool
Forces the map to be flat.
final
nightModeEnabled bool
Enable/disable zoom gestures, for example: - pinch - double tap (zoom in) - tap with two fingers (zoom out)
final
onCameraPositionChanged CameraPositionCallback?
Called every time when the camera position on YandexMap is changed.
final
onMapCreated MapCreatedCallback?
Callback method for when the map is ready to be used.
final
onMapLongTap ArgumentCallback<Point>?
Called every time a YandexMap is long tapped.
final
onMapTap ArgumentCallback<Point>?
Called every time a YandexMap is tapped.
final
onObjectTap ObjectTapCallback?
Called every time a YandexMap geo object is tapped.
final
onTrafficChanged TrafficChangedCallback?
Callback to be called where a change has occured in traffic layer.
final
onUserLocationAdded UserLocationCallback?
Callback to be called when a user location layer icon elements have been added to YandexMap.
final
poiLimit int?
Limits the number of visible basemap POIs
final
rotateGesturesEnabled bool
Enable rotation gestures, such as rotation with two fingers.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollGesturesEnabled bool
Enable scroll gestures, such as the pan gesture.
final
tiltGesturesEnabled bool
Enable tilt gestures, such as parallel pan with two fingers.
final
zoomGesturesEnabled bool
Enable rotation gestures, such as rotation with two fingers.
final

Methods

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