jsonp(url, options) → Object
Requests a resource using JSONP.
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
String | The URL to request. | ||||||||||||||||
options |
Object |
optional
Object with the following properties:
|
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
}).otherwise(function(error) {
// an error occurred
});
See:
Source:
Core/jsonp.js, line 44