An object that can be used to update the position of the camera by calling ().

Export

Constructors

  • Private

    Creates an instance of MPCameraUpdate.

    Parameters

    • mode: Mode
    • obj: any

    Returns MPCameraUpdate

Properties

bounds?: MPBounds

An area the camera must cover.

height?: number

Specified height of the padding. *

*

* *

mode: Mode

The mode of the update, used internally.

padding?: number

The padding between the border of the targeted area and the edge of the map.

point?: MPPoint

The target of the camera update.

position?: MPCameraPosition

A specific camera position.

width?: number

Specified width of the padding.

zoom?: number

The camera level of the update.

Methods

  • Construct the update from a bounding box with some padding.

    Parameters

    • bounds: MPBounds
    • padding: number
    • Optional size: default

      Can be used to set a specific width/height padding

    Returns MPCameraUpdate

    Static

  • Zooms the camera by the given amount.

    Parameters

    • amount: number

    Returns MPCameraUpdate

    Static

  • Zooms the camera to the given level.

    Parameters

    • level: number

    Returns MPCameraUpdate

    Static

Generated using TypeDoc