cameraPositionForGeometry abstract method
CameraPosition
cameraPositionForGeometry(
- Geometry geometry, {
- ScreenRect? focusRect,
- double? azimuth,
- double? tilt,
Calculates a camera position that projects the specified geometry into the given {@code focusRect}, using the provided {@code azimuth} and {@code tilt} camera parameters.
If {\@code focusRect} is not provided, the current focus rect is used (or the full view if no focus rect is set).
If {\@code azimuth} is not provided, the current {\@code cameraPosition.azimuth} is used.
If {\@code tilt} is not provided, the current {\@code cameraPosition.tilt} is used.
Return The computed camera position.Implementation
mapkit_map_camera_position.CameraPosition cameraPositionForGeometry(
mapkit_geometry_geometry.Geometry geometry, {
mapkit_screen_types.ScreenRect? focusRect,
core.double? azimuth,
core.double? tilt,
});