FollowPositionPreferences class Maps & 3D Scene
Follow position preferences class
This class should not be instantiated directly. Instead, use the MapViewPreferences.followPositionPreferences getter to obtain an instance.
Constructors
- FollowPositionPreferences.init(int id, int mapId)
Properties
- accuracyCircleVisibility → bool
-
Check if accuracy circle is visible.
no setter
-
cameraFocus
→ Point<
double> -
Get the follow position camera focus in viewport coordinates ( between 0.f = left / top and 1.f = right / bottom )
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTrackObjectFollowingMapRotation → bool
-
Check if position tracking object rotation follows map rotation.
no setter
- mapId → int
-
no setter
- perspective → MapViewPerspective
-
Get the map view perspective in follow position mode.
no setter
- pointerId → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeBeforeTurnPresentation ↔ int
-
Get the time interval before starting a turn presentation.
getter/setter pair
- touchHandlerExitAllow ↔ bool
-
Check whether manually exiting follow position via touch handler events is enabled.
getter/setter pair
-
touchHandlerModifyDistanceLimits
↔ Pair<
double, double> -
Get touch handler distance to object adjust limits.
getter/setter pair
-
touchHandlerModifyHorizontalAngleLimits
↔ Pair<
double, double> -
Get touch handler horizontal angle adjust limits. Empty { 0., 0. } means that value adjustment is forbidden.
getter/setter pair
- touchHandlerModifyPersistent ↔ bool
-
Test whether manually adjusted follow position changes (via touch handler) are persistent.
getter/setter pair
-
touchHandlerModifyVerticalAngleLimits
→ Pair<
double, double> -
Get touch handler vertical angle adjust limits. Empty { 0., 0. } means value adjustment is forbidden.
no setter
- viewAngle → double
-
Get the vertical angle.
no setter
- zoomLevel → int
-
Get a zoom level in follow position mode.
no setter
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
setAccuracyCircleVisibility(
bool isVisible) → GemError - Set accuracy circle visibility.
-
setCameraFocus(
Point< double> pos) → GemError - Set the follow position camera focus in viewport coordinates ( between 0.f = left / top and 1.f = right / bottom )
-
setMapRotationMode(
FollowPositionMapRotationMode mode, {double angle = 0, bool objectFollowMap = true}) → void - Set map rotation mode in follow position.
-
setPerspective(
MapViewPerspective perspective, {GemAnimation? animation}) → void - Set the map view perspective in follow position mode.
-
setTouchHandlerModifyVerticalAngleLimits(
Pair< double, double> angles) → void - Set touch handler vertical angle adjust limits.
-
setViewAngle(
double viewAngle, {bool animated = false}) → void - Set vertical angle in follow position mode.
-
setZoomLevel(
int zoomLevel, {int duration = 0}) → int - Set a zoom level in follow position mode.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited