@geoblocks/ol-comfy
    Preparing search index...

    Class View

    Helpers for the view in the map. With the "listen" option, this class will automatically keep the used map's view if the map's view is set.

    Index

    Constructors

    • Parameters

      • map: Map
      • listen: boolean = true

      Returns View

    Methods

    • Removes the map view change listener.

      Returns void

    • Set the view to the new nearest extent.

      Parameters

      • extent: Extent

        The new extent of the map.

      • padding: number

        The padding (in pixels) to add around this extent.

      Returns void

    • Parameters

      • coordinates: number[]

      Returns undefined | number

      The point resolution at a coordinate of the map.

    • Zoom in or zoom out to the nearest resolution using a small animation.

      Parameters

      • delta: number

        number of resolution step to zoom in (positive value) or zoom out (negative value);

      Returns void