@types/leaflet-offline
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

Installation

npm install --save @types/leaflet-offline

Summary

This package contains type definitions for leaflet-offline (https://github.com/robertomlsoares/leaflet-offline#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-offline.

index.d.ts

import * as L from "leaflet";
declare module "leaflet" {
    class TileLayerOffline {
        constructor(urlTemplate: string, tilesDb: object, options?: TileLayerOptions);
        initialize(url: string, tilesDb: object, options: object): void;
        createTile(coords: object, done: DoneCallback): HTMLElement;
        getTileUrl(coords: object): string;
        getTileUrls(bounds: object, zoom: number): any[];
    }
    function tileLayer(urlTemplate: string, options?: TileLayerOptions): TileLayer;
    namespace tileLayer {
        function offline(url: string, tilesDb: object, options: object): TileLayerOffline;
    }
    class ControlOffline {
        constructor(baseLayer: object, tilesDb: object, options: object);
        initialize(baseLayer: object, tilesDb: object, options: object): void;
        onAdd(map: object): HTMLElement;
    }
    function control(): Control;
    namespace control {
        function offline(baseLayer: object, tilesDb: object, options: object): ControlOffline;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by BETOXL.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet-offline

Weekly Downloads

51

Version

1.1.4

License

MIT

Unpacked Size

4.73 kB

Total Files

5

Last publish

Collaborators

  • types