mapScalePosition property

Rectangle<int> get mapScalePosition

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 mapScalePosition (Rectangle<int> value)

Set the map position for the scale overlay.

Parameters

Implementation

set mapScalePosition(final Rectangle<int> value) {
  objectMethod(
    _pointerId,
    'MapViewPreferences',
    'setMapScalePosition',
    args: RectType<int>.fromRectangle(value),
    dependencyId: _mapPointerId,
  );
}