mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for leaflet.pancontrol NPM package * Add typescript minimal version because of leaflet dependency
30 lines
742 B
TypeScript
30 lines
742 B
TypeScript
// Type definitions for leaflet.pancontrol 1.0
|
|
// Project: https://github.com/kartena/Leaflet.Pancontrol
|
|
// Definitions by: Brictarus <https://github.com/Brictarus>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import { ControlOptions, Control as LControl } from 'leaflet';
|
|
|
|
declare module 'leaflet' {
|
|
interface MapOptions {
|
|
panControl?: boolean;
|
|
}
|
|
|
|
namespace control {
|
|
function pan(options?: Control.PanControlOptions): Control.Pan;
|
|
}
|
|
|
|
namespace Control {
|
|
interface PanControlOptions extends ControlOptions {
|
|
panOffset?: number;
|
|
}
|
|
|
|
class Pan extends LControl {
|
|
options: PanControlOptions;
|
|
|
|
constructor(options?: PanControlOptions);
|
|
}
|
|
}
|
|
}
|