panBy static method

MapCameraUpdate panBy(
  1. double xOffset,
  2. double yOffset
)

Creates an update to pan map camera over the map by the specified number of pixels in the x and y direction starting from current principal point position.

  • xOffset X offset in pixels

  • yOffset Y offset in pixels

Returns MapCameraUpdate. MapCameraUpdate instance.

Implementation

static MapCameraUpdate panBy(double xOffset, double yOffset) => $prototype.panBy(xOffset, yOffset);