viewRectangle property
The view rectangle for camera updates. Defines a sub-space of the screen that the behavior should consider for camera updates. This property is forwarded to both the tracking and area cameras, ensuring consistent viewport constraints across all camera modes. 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. This property is forwarded to both the tracking and area cameras, ensuring consistent viewport constraints across all camera modes. If not set, it uses the viewport bounds of the underlying map view. Sets a view rectangle for both child cameras.
Implementation
set viewRectangle(Rectangle2D? value);