On this page

Class BoxZoomHandlerMaptiler

The BoxZoomHandler allows the user to zoom the map to fit within a bounding box. The bounding box is defined by clicking and holding shift while dragging the cursor.

Hierarchy (View Summary)

Index

Constructors

Methods

  • Disables the "box zoom" interaction.

    Returns void

    map.boxZoom.disable();
    
  • Enables the "box zoom" interaction.

    Returns void

    map.boxZoom.enable();
    
  • Returns a Boolean indicating whether the "box zoom" interaction is active, i.e. currently being used.

    Returns boolean

    true if the "box zoom" interaction is active.

  • Returns a Boolean indicating whether the "box zoom" interaction is enabled.

    Returns boolean

    true if the "box zoom" interaction is enabled.

  • reset can be called by the manager at any time and must reset everything to it's original state

    Returns void

Was this helpful?
SDK JS
Reference
BoxZoomHandler