mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
* Rename package : same name than npm package * Change name of test file * According header to match original github repo
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
// Type definitions for leaflet-mouse-position 1.1
|
|
// Project: https://github.com/danwild/Leaflet.MousePosition
|
|
// Definitions by: Hanyon <https://github.com/Hanyon>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import { ControlOptions, Control as LControl } from 'leaflet';
|
|
|
|
declare module 'leaflet' {
|
|
interface MapOptions {
|
|
positionControl?: boolean;
|
|
}
|
|
|
|
namespace control {
|
|
function mousePosition(options?: Control.MousePositionControlOptions): Control.MousePosition;
|
|
}
|
|
|
|
namespace Control {
|
|
interface MousePositionControlOptions extends ControlOptions {
|
|
separator?: string;
|
|
emptyString?: string;
|
|
lngFirst?: boolean;
|
|
numDigits?: number;
|
|
lngFormatter?: (lng: number) => string;
|
|
latFormatter?: (lat: number) => string;
|
|
prefix?: string;
|
|
}
|
|
|
|
class MousePosition extends LControl {
|
|
options: MousePositionControlOptions;
|
|
|
|
constructor(options?: MousePositionControlOptions);
|
|
}
|
|
}
|
|
}
|