Skip to main content

ZoomControlOptions

interface ZoomControlOptions
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
typeZOOM_TYPE✔️"fov"Zoom control type.
scalenumber✔️1Scale factor for panning.
durationnumber✔️300Duration of the input animation (ms)
minFovnumber✔️1Minimum vertical fov(field of view).
Only available when type is "fov".
You can get a bigger image with the smaller value of this.
maxFovnumber✔️"auto"Maximum vertical fov(field of view).
Only available when type is "fov".
You can get a smaller image with the bigger value of this.
If "auto" is given, it will use Math.min(default fov + 45, 175).
minDistancenumber✔️0.1Minimum camera distance. This will be scaled to camera's default distance(Camera#baseDistance)
Only available when type is "distance".
maxDistancenumber✔️2Maximum camera distance. This will be scaled to camera's default distance(Camera#baseDistance)
Only available when type is "distance".
doubleTapboolean | object✔️trueConfigures double tap to zoom behavior, false to disable.
doubleTap.zoomInnumber✔️0.8Zoom-in value, relative to fov/distance range.max.
doubleTap.useZoomOutboolean✔️trueWhether to use zoom-out behavior on double tap.
doubleTap.durationnumber✔️300Duration of the zoom-in and zoom-out animation.
doubleTap.easingnumber✔️EASING.EASE_OUT_CUBICEasing function of the zoom-in and zoom-out animation.
easingfunction✔️EASING.EASE_OUT_CUBICEasing function of the animation.