mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
44 lines
1.4 KiB
TypeScript
44 lines
1.4 KiB
TypeScript
// Type definitions for leaflet.locatecontrol 0.60
|
|
// Project: https://github.com/domoritz/leaflet-locatecontrol
|
|
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="leaflet" />
|
|
|
|
declare namespace L {
|
|
namespace Control {
|
|
interface LocateOptions {
|
|
position?: string;
|
|
layer?: L.Layer;
|
|
setView?: boolean | string;
|
|
flyTo?: boolean;
|
|
keepCurrentZoomLevel?: boolean;
|
|
clickBehavior?: any;
|
|
returnToPrevBounds?: boolean;
|
|
cacheLocation?: boolean;
|
|
drawCircle?: boolean;
|
|
drawMarker?: boolean;
|
|
markerClass?: any;
|
|
circleStyle?: L.PathOptions;
|
|
markerStyle?: L.PathOptions;
|
|
followCircleStyle?: L.PathOptions;
|
|
followMarkerStyle?: L.PathOptions;
|
|
icon?: string;
|
|
iconLoading?: string;
|
|
iconElementTag?: string;
|
|
circlePadding?: number[];
|
|
onLocationError?: any;
|
|
onLocationOutsideMapBounds?: any;
|
|
showPopup?: boolean;
|
|
strings?: any;
|
|
locateOptions?: L.LocateOptions;
|
|
}
|
|
}
|
|
namespace control {
|
|
/**
|
|
* Creates a Leaflet.Locate control
|
|
*/
|
|
function locate(options?: Control.LocateOptions): L.Control;
|
|
}
|
|
}
|