1.1.4 • Published 7 months ago
@types/leaflet-offline v1.1.4
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
// Type definitions for non-npm package leaflet-offline 1.1
// Project: https://github.com/robertomlsoares/leaflet-offline#readme
// Definitions by: BETOXL <https://github.com/BETOXL>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Wed, 01 Dec 2021 00:01:08 GMT
- Dependencies: @types/leaflet
- Global values: none
Credits
These definitions were written by BETOXL.