0.74.5 • Published 14 days ago
@types/leaflet.locatecontrol v0.74.5
Installation
npm install --save @types/leaflet.locatecontrol
Summary
This package contains type definitions for leaflet.locatecontrol (https://github.com/domoritz/leaflet-locatecontrol).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.locatecontrol.
index.d.ts
// Type definitions for leaflet.locatecontrol 0.74
// Project: https://github.com/domoritz/leaflet-locatecontrol
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as L from 'leaflet';
declare module 'leaflet' {
namespace Control {
class Locate extends Control {
constructor(locateOptions?: LocateOptions);
onAdd(map: Map): HTMLElement;
start(): void;
stop(): void;
setView(): void;
}
interface LocateOptions {
position?: string | undefined;
layer?: Layer | undefined;
setView?: boolean | string | undefined;
keepCurrentZoomLevel?: boolean | undefined;
initialZoomLevel?: number | boolean | undefined;
flyTo?: boolean | undefined;
clickBehavior?: any;
returnToPrevBounds?: boolean | undefined;
cacheLocation?: boolean | undefined;
drawCircle?: boolean | undefined;
drawMarker?: boolean | undefined;
showCompass?: boolean | undefined;
markerClass?: any;
compassClass?: any;
circleStyle?: PathOptions | undefined;
markerStyle?: PathOptions | MarkerOptions | undefined;
compassStyle?: PathOptions | undefined;
followCircleStyle?: PathOptions | undefined;
followMarkerStyle?: PathOptions | undefined;
icon?: string | undefined;
iconLoading?: string | undefined;
iconElementTag?: string | undefined;
textElementTag?: string | undefined;
circlePadding?: number[] | undefined;
metric?: boolean | undefined;
createButtonCallback?: any;
onLocationError?: any;
onLocationOutsideMapBounds?: any;
showPopup?: boolean | undefined;
strings?: any;
locateOptions?: L.LocateOptions | undefined;
}
}
namespace control {
/**
* Creates a Leaflet.Locate control
*/
function locate(options?: Control.LocateOptions): Control.Locate;
}
}
Additional Details
- Last updated: Thu, 02 Dec 2021 06:01:02 GMT
- Dependencies: @types/leaflet
- Global values: none
Credits
These definitions were written by Denis Carriere.