viewRectangle property
The view rectangle for camera updates.
Defines a sub-space of the screen that the behavior should consider
for camera updates. Using a view rectangle keeps the camera positioning consistent
across different screen types and orientations without per-screen principal point
adjustments.
Defaults to null. If not set, it uses the viewport bounds of the underlying map view.
Gets the current view rectangle, if it's set.
Implementation
Rectangle2D? get viewRectangle;
The view rectangle for camera updates.
Defines a sub-space of the screen that the behavior should consider
for camera updates. Using a view rectangle keeps the camera positioning consistent
across different screen types and orientations without per-screen principal point
adjustments.
Defaults to null. If not set, it uses the viewport bounds of the underlying map view.
Sets a view rectangle.
Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.
Implementation
set viewRectangle(Rectangle2D? value);