Class BoxZoomHandler

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.

Implements

Methods

  • Disables the "box zoom" interaction.

    Returns void

    Example

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

    Returns void

    Example

    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.