jsonp
Requests a resource using JSONP.
Name | Type | Default | Description |
---|---|---|---|
url |
String | The URL to request. | |
options.parameters |
Object | optional Any extra query parameters to append to the URL. | |
options.callbackParameterName |
String |
'callback'
|
optional 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:
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(error) {
// an error occurred
});
See:
Source:
Core/jsonp.js, line 40