CameraConstraint class abstract

Describes a boundary for a MapCamera, that cannot be exceeded by movement

This separate from constraints that may be imposed by the chosen CRS.

Positioning is handled by CameraFit.

Annotations

Constructors

CameraConstraint()
Describes a boundary for a MapCamera, that cannot be exceeded by movement
const
CameraConstraint.contain({required LatLngBounds bounds})
Constrains the edges of the camera to within bounds
const
factory
CameraConstraint.containCenter({required LatLngBounds bounds})
Constrains the center coordinate of the camera to within bounds
const
factory
CameraConstraint.containLatitude([double a, double b])
Constrains the edges of the camera to within latitudes a and b
const
factory
CameraConstraint.unconstrained()
Does not apply any constraint
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

constrain(MapCamera camera) MapCamera?
Create a new constrained camera based off the current camera
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited