mapScalePosition property
Get the map scale position.
Returns
- The map position
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;
}
Sets the map position.
Parameters
- IN value The map position
Implementation
set mapScalePosition(final Rectangle<int> value) {
objectMethod(
_pointerId,
'MapViewPreferences',
'setMapScalePosition',
args: RectType<int>.fromRectangle(value),
dependencyId: _mapPointerId,
);
}