0.74.5 • Published 14 days ago

@types/leaflet.locatecontrol v0.74.5

Weekly downloads
929
License
MIT
Repository
github
Last release
14 days ago

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.

0.74.5

14 days ago

0.74.2

9 months ago

0.74.4

7 months ago

0.74.3

7 months ago

0.74.1

1 year ago

0.74.0

2 years ago

0.60.8

3 years ago

0.60.7

6 years ago

0.60.6

6 years ago

0.60.5

7 years ago

0.60.4

7 years ago

0.60.3

7 years ago

0.60.2

7 years ago

0.60.1

7 years ago

0.60.0

7 years ago