focusViewport property
Get the map view focus viewport.
The focus viewport is the view screen part containing the maximum map details. The coordinates are relative to view parent screen.
The default value is the view whole viewport.
Returns
- The focus viewport
Throws
- An exception if it fails.
Implementation
RectType<int> get focusViewport {
final OperationResult resultString = objectMethod(
_pointerId,
'MapViewPreferences',
'getFocusViewport',
);
return RectType<int>.fromJson(resultString['result']);
}
Set the map view focus viewport.
If view is an empty viewport the focus will be reset to whole view.
Parameters
- IN view The focus viewport
Throws
- An exception if it fails.
Implementation
set focusViewport(final RectType<int> view) {
objectMethod(
_pointerId,
'MapViewPreferences',
'setFocusViewport',
args: view,
);
}