VectorMapController class

Controller for VectorMap

Inheritance
Implemented types

Constructors

VectorMapController({List<MapLayer>? layers, double contourThickness = 1, int delayToRefreshResolution = 1000, VectorMapMode mode = VectorMapMode.autoFit, MapDebugger? debugger, double maxScale = 30000, double minScale = 0.1})
The default contourThickness value is 1. The default mode value is autoFit.

Properties

canvasToWorld Matrix4
no setter
contourThickness double
final
debugger MapDebugger?
final
delayToRefreshResolution int
final
drawBuffers bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasLayer bool
Check if there is any layer.
no setter
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
highlight MapHighlight?
no setter
hoverDrawable bool
no setter
lastCanvasSize Size?
no setter
layersCount int
Gets the count of layers.
no setter
maxScale double
final
minScale double
final
mode VectorMapMode
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
no setter
translateX double
no setter
translateY double
no setter
worldBounds Rect?
no setter
worldToCanvas Matrix4
no setter
zoomFactor double
getter/setter pair

Methods

addLayer(MapLayer layer) → void
Adds a layer.
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
applyMatrixOn(Canvas canvas) → void
Applies a matrix on the canvas.
clearHighlight() → void
Removes the current highlight.
override
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
fit() → void
Fits all layers to canvas size.
getDrawableLayer(int index) DrawableLayer
getLayerById(int id) MapLayer
Gets a layer given an id.
getLayerByIndex(int index) MapLayer
Gets a layer given an index
hasLayerId(int id) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
notifyPanZoomMode({required bool start, bool rebuildSimplifiedGeometry = false}) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setCanvasSize(Size canvasSize) → void
setHighlight(MapHighlight newHighlight) → void
Sets a new highlight on the map.
override
toMemoryImageProvider(Image image) Future<MemoryImage>
toString() String
A string representation of this object.
inherited
translate(double translateX, double translateY) → void
zoom(Offset locationOnCanvas, double newScale) → void
zoomOnCenter(bool zoomIn) → void
Zooms on the canvas center.
zoomOnLocation(Offset locationOnCanvas, bool zoomIn) → void
Zooms on the given canvas location.

Operators

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