jsonp

jsonp

Requests a resource using JSONP.

Parameters:
Name Type Argument Default Description
url String The URL to request.
options.parameters Object <optional>
Any extra query parameters to append to the URL.
options.callbackParameterName String <optional>
'callback' The callback parameter name that the server expects.
options.proxy Object <optional>
A proxy to use for the request. This object is expected to have a getURL function which returns the proxied URL, if needed.
Returns:
Object a promise that will resolve to the requested data when loaded.
Example
// load a data asynchronously
Cesium.jsonp('some/webservice').then(function(data) {
    // use the loaded data
}, function() {
    // an error occurred
});
See:
Source: