mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 20:37:58 +08:00
45 lines
1.4 KiB
TypeScript
45 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
|
|
|
|
import * as L from 'leaflet';
|
|
|
|
declare module 'leaflet' {
|
|
namespace Control {
|
|
interface LocateOptions {
|
|
position?: string;
|
|
layer?: Layer;
|
|
setView?: boolean | string;
|
|
flyTo?: boolean;
|
|
keepCurrentZoomLevel?: boolean;
|
|
clickBehavior?: any;
|
|
returnToPrevBounds?: boolean;
|
|
cacheLocation?: boolean;
|
|
drawCircle?: boolean;
|
|
drawMarker?: boolean;
|
|
markerClass?: any;
|
|
circleStyle?: PathOptions;
|
|
markerStyle?: PathOptions;
|
|
followCircleStyle?: PathOptions;
|
|
followMarkerStyle?: 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): Control;
|
|
}
|
|
}
|