A credit contains data pertaining to how to display attributions/credits for certain content on the screen.
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
An object with the following properties
|
Example:
//Create a credit with a tooltip, image and link
var credit = new Cesium.Credit('Cesium', '/images/cesium_logo.png', 'http://cesiumjs.org/');
Members
-
The source location for the image.
-
A URL location for the credit hyperlink
-
Whether the credit should be displayed on screen or in a lightbox
-
The credit text
Methods
-
Returns true if the credits are equal
Name Type Description leftCredit The first credit rightCredit The second credit Returns:
trueif left and right are equal,falseotherwise. -
Returns true if the credits are equal
Name Type Description creditCredit The credit to compare to. Returns:
trueif left and right are equal,falseotherwise. -
Returns true if the credit has an imageUrl
Returns:
-
Returns true if the credit has a link
Returns:
