UNPKG

@20tab/react-leaflet-resetview

Version:

react-leaflet control for resetting the map view

41 lines (40 loc) 1.08 kB
/// <reference types="react" /> import { Control } from "leaflet"; import type { Map, ControlOptions, LatLng } from "leaflet"; export declare type ResetViewControlOptions = { /** * The control title. */ title?: string; /** * The control icon. Can be either a path for url() or a unicode character. * It renders a box by default. */ icon?: string; } & ControlOptions; declare const _default: import("react").ForwardRefExoticComponent<{ /** * The control title. */ title?: string | undefined; /** * The control icon. Can be either a path for url() or a unicode character. * It renders a box by default. */ icon?: string | undefined; } & ControlOptions & import("react").RefAttributes<{ options: { position: string; title: string; icon: string; }; onAdd: (map: Map) => HTMLDivElement; _resetView: (this: { options: { zoom: number; center: LatLng; }; _map: Map; }) => Map; } & Control>>; export default _default;