Installation
npm install --save @types/leaflet.pancontrol
Summary
This package contains type definitions for leaflet.pancontrol (https://github.com/kartena/Leaflet.Pancontrol).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.pancontrol.
index.d.ts
import { Control as LControl, ControlOptions } from "leaflet";
declare module "leaflet" {
interface MapOptions {
panControl?: boolean | undefined;
}
namespace control {
function pan(options?: Control.PanControlOptions): Control.Pan;
}
namespace Control {
interface PanControlOptions extends ControlOptions {
panOffset?: number | undefined;
}
class Pan extends LControl {
options: PanControlOptions;
constructor(options?: PanControlOptions);
}
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/leaflet
Credits
These definitions were written by Brictarus.