mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Add getTileUrl() method to TileLayer (#42859)
This commit is contained in:
1
types/leaflet/index.d.ts
vendored
1
types/leaflet/index.d.ts
vendored
@@ -806,6 +806,7 @@ export interface TileLayerOptions extends GridLayerOptions {
|
||||
export class TileLayer extends GridLayer {
|
||||
constructor(urlTemplate: string, options?: TileLayerOptions);
|
||||
setUrl(url: string, noRedraw?: boolean): this;
|
||||
getTileUrl(coords: L.Coords): string;
|
||||
|
||||
protected _abortLoading(): void;
|
||||
protected _getZoomForUrl(): number;
|
||||
|
||||
@@ -728,6 +728,11 @@ export class ExtendedTileLayer extends L.TileLayer {
|
||||
newCoords.z = coords.z;
|
||||
return super.createTile(newCoords, done);
|
||||
}
|
||||
|
||||
getTileUrl(coords: L.Coords) {
|
||||
return super.getTileUrl(coords);
|
||||
}
|
||||
|
||||
_abortLoading() {
|
||||
// adapted from TileLayer's implementation
|
||||
for (const i in this._tiles) {
|
||||
|
||||
Reference in New Issue
Block a user