Skip to content

zoomAtCoordinate(scale, coordinate?, animationDuration?) ​

zoomAtCoordinate zoom at the specified coordinates.

Reference ​

typescript
(
  scale: number,
  coordinate?: {
    x: number
    y: number
  }, 
  animationDuration?: number
) => void

Parameters ​

  • scale Scaling.
  • coordinate Coordinate.
    • x X-axis.
    • y Y-axis
  • animationDuration Animation duration. If it is less than or equal to 0, there is no animation.

Returns ​

zoomAtCoordinate returns undefined .

Usage ​

Basic usage ​