Requests a resource using JSONP.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
String | The URL to request. | |||||||||||||||||||||
options |
Object |
<optional> |
Object with the following properties:
Properties
|
- Source:
- See:
Returns:
a promise that will resolve to the requested data when loaded.
- Type
- Promise.<Object>
Example
// load a data asynchronously
Cesium.loadJsonp('some/webservice').then(function(data) {
// use the loaded data
}).otherwise(function(error) {
// an error occurred
});