This commit is contained in:
28
node_modules/ol-mapbox-style/dist/util.d.ts
generated
vendored
Normal file
28
node_modules/ol-mapbox-style/dist/util.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
export function deg2rad(degrees: any): number;
|
||||
/**
|
||||
* @param {number} width Width of the canvas.
|
||||
* @param {number} height Height of the canvas.
|
||||
* @return {HTMLCanvasElement} Canvas.
|
||||
*/
|
||||
export function createCanvas(width: number, height: number): HTMLCanvasElement;
|
||||
export function getZoomForResolution(resolution: any, resolutions: any): number;
|
||||
/**
|
||||
* @param {ResourceType} resourceType Type of resource to load.
|
||||
* @param {string} url Url of the resource.
|
||||
* @param {Options} [options={}] Options.
|
||||
* @return {Promise<Object|Response>} Promise that resolves with the loaded resource
|
||||
* or rejects with the Response object.
|
||||
* @private
|
||||
*/
|
||||
export function fetchResource(resourceType: ResourceType, url: string, options?: import("./apply.js").Options | undefined): Promise<any | Response>;
|
||||
export function getGlStyle(glStyleOrUrl: any, options: any): Promise<any>;
|
||||
/**
|
||||
* @param {Object} glSource glStyle source object.
|
||||
* @param {string} styleUrl Style URL.
|
||||
* @param {Options} options Options.
|
||||
* @return {Object} TileJson
|
||||
*/
|
||||
export function getTileJson(glSource: any, styleUrl: string, options?: Options): any;
|
||||
export const defaultResolutions: number[];
|
||||
export type Options = import("./apply.js").Options;
|
||||
export type ResourceType = import('./apply.js').ResourceType;
|
||||
Reference in New Issue
Block a user