import OlMap from 'ol/Map.js'; import OlView from 'ol/View.js'; import { type Extent as OlExtent } from 'ol/extent.js'; /** * 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. */ export declare class View { private readonly eventsKeys; private readonly map; private view; constructor(map: OlMap, listen?: boolean); /** * @returns the Ol view. */ getView(): OlView; /** * Removes the map view change listener. */ destroy(): void; /** * @returns The point resolution at a coordinate of the map. */ getPointResolution(coordinates: number[]): number | undefined; /** * Set the view to the new nearest extent. * @param extent The new extent of the map. * @param padding The padding (in pixels) to add around this extent. * @param animated If true, the map will "move" to the new extent. See also OL view.animate. */ fit(extent: OlExtent, padding: number, animated?: boolean): void; /** * Zoom in or zoom out to the nearest resolution using a small animation. * @param delta number of resolution step to zoom in (positive value) or * zoom out (negative value); */ zoom(delta: number): void; }