MapTransformer class

Helps with converting map coordinates to XY coordinates and vice-versa.

Properties

constraints BoxConstraints
Constraints of the current widget.
final
controller MapController
Map controller which is used in MapLayout.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tileSize int
The size of the tiles. This is usually equal to the size of the .png file taken from the server. E.g. 256 for a 256x256 pixels or 512 for a 512x512 pixels.
final

Methods

drag(double dx, double dy) → void
Drags the map by dx, dy pixels.
getBoundary() → Boundary
Gets the current visible boundary.
getViewport() Rect
Gets the current viewport in pixels.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setZoomInPlace(double zoom, Offset position) → void
In-place zoom.
toLatLng(Offset position) → LatLng
Converts XY coordinates to LatLng.
toLatLngMany(Iterable<Offset> positions) Iterable<LatLng>
Converts many XY coordinates to LatLng.
toOffset(LatLng location) Offset
Converts LatLng coordinates to XY Offset.
toOffsetMany(Iterable<LatLng> locations) Iterable<Offset>
Converts many LatLng coordinates to XY Offset.
toString() String
A string representation of this object.
inherited

Operators

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