Files
Hanyon a69df4359a Rename package : same name than npm package (#22753)
* Rename package : same name than npm package

* Change name of test file

* According header to match original github repo
2018-01-09 10:59:05 -08:00

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);
}
}
}