package.net.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ol Show documentation
Show all versions of ol Show documentation
OpenLayers mapping library
The newest version!
/**
* Simple JSONP helper. Supports error callbacks and a custom callback param.
* The error callback will be called when no JSONP is executed after 10 seconds.
*
* @param {string} url Request url. A 'callback' query parameter will be
* appended.
* @param {Function} callback Callback on success.
* @param {Function} [errback] Callback on error.
* @param {string} [callbackParam] Custom query parameter for the JSONP
* callback. Default is 'callback'.
*/
export function jsonp(url: string, callback: Function, errback?: Function | undefined, callbackParam?: string | undefined): void;
/**
* @param {string} url The URL.
* @return {Promise