MapViewPosition class

Constructors

MapViewPosition(double? _latitude, double? _longitude, int zoomLevel, int indoorLevel, int tileSize, double _rotation)
MapViewPosition.indoorLevelDown(MapViewPosition old)
MapViewPosition.indoorLevelUp(MapViewPosition old)
MapViewPosition.move(MapViewPosition old, double? _latitude, double? _longitude)
MapViewPosition.rotate(MapViewPosition old, double _rotation)
MapViewPosition.scaleAround(MapViewPosition old, Mappoint? focalPoint, double scale)
sets the new scale relative to the current zoomlevel. A scale of 1 means no action, 0..1 means zoom-out (you will see more area on screen since at pinch-to-zoom the fingers are moved towards each other)
MapViewPosition.setCenter(MapViewPosition old, double x, double y)
MapViewPosition.setIndoorLevel(MapViewPosition old, int indoorLevel)
MapViewPosition.setLeftUpper(MapViewPosition old, double left, double upper, Dimension mapDimension)
MapViewPosition.zoom(MapViewPosition old, int zoomLevel)
MapViewPosition.zoomAround(MapViewPosition old, double latitude, double longitude, int zoomLevel)
MapViewPosition.zoomIn(MapViewPosition old)
MapViewPosition.zoomInAround(MapViewPosition old, double latitude, double longitude)
MapViewPosition.zoomOut(MapViewPosition old)

Properties

boundingBox BoundingBox?
the latitude/longitude boundaries of the current map view. This property must be calculated if needed based on the current view
getter/setter pair
focalPoint Mappoint?
The focal point. Used when pinch-and-zoom to know the center of the zoom
final
hashCode int
The hash code for this object.
no setteroverride
indoorLevel int
The current indoorLevel
final
latitude double?
The latitude of the center of the widget
no setter
longitude double?
The longitude of the center of the widget
no setter
projection PixelProjection
no setter
rotation double
Returns the rotation of the map in degrees clockwise
no setter
rotationRadian double
Returns the rotation in radians
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
final
tileSize int
The size of a tile in pixel
final
zoomLevel int
The current zoomLevel
final

Methods

calculateBoundingBox(Dimension mapDimension) BoundingBox
Calculates the bounding box of the given dimensions of the view. Scaling or focalPoint are NOT considered.
getCenter() Mappoint
Returns the center of the map in absolute mappixels
getLeftUpper(Dimension mapDimension) Mappoint
returns the absoulute pixel-coordinates of the left-upper point of the mapview. Since this is confusing while rotating the map we encourage you to use center() instead and calculate everything from there.
hasPosition() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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