mapScalePosition property
Get the map scale position.
Returns
The map scale position as a Rectangle<int>.
Implementation
Rectangle<int> get mapScalePosition {
final OperationResult resultString = objectMethod(
_pointerId,
'MapViewPreferences',
'getMapScalePosition',
dependencyId: _mapPointerId,
);
final Rectangle<int> rect = Rectangle<int>(
resultString['result']['x'] ?? 0,
resultString['result']['y'] ?? 0,
resultString['result']['width'] ?? 0,
resultString['result']['height'] ?? 0,
);
return rect;
}
Set the map position for the scale overlay.
Parameters
value: The map position as a Rectangle<int>.
Implementation
set mapScalePosition(final Rectangle<int> value) {
objectMethod(
_pointerId,
'MapViewPreferences',
'setMapScalePosition',
args: RectType<int>.fromRectangle(value),
dependencyId: _mapPointerId,
);
}