Files
DefinitelyTyped/types/leaflet.locatecontrol/index.d.ts
Mine Starks 617fc60898 Merge pull request #19329 from mobicorp/leaflet-1.2
Leaflet: support v1.2 and UMD/ES6 modules
2017-08-29 10:51:00 -07:00

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