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.loadJsonp('some/webservice').then(function(data) {
// use the loaded data
}).otherwise(function(error) {
// an error occurred
});