mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Merge branch 'eftas-gka-patch-1'
This commit is contained in:
8
types/leaflet.locatecontrol/index.d.ts
vendored
8
types/leaflet.locatecontrol/index.d.ts
vendored
@@ -8,6 +8,12 @@ import * as L from 'leaflet';
|
||||
|
||||
declare module 'leaflet' {
|
||||
namespace Control {
|
||||
class Locate extends Control {
|
||||
onAdd(map: Map): HTMLElement;
|
||||
start(): void;
|
||||
stop(): void;
|
||||
setView(): void;
|
||||
}
|
||||
interface LocateOptions {
|
||||
position?: string;
|
||||
layer?: Layer;
|
||||
@@ -40,6 +46,6 @@ declare module 'leaflet' {
|
||||
/**
|
||||
* Creates a Leaflet.Locate control
|
||||
*/
|
||||
function locate(options?: Control.LocateOptions): Control;
|
||||
function locate(options?: Control.LocateOptions): Control.Locate;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user