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
|
Throws:
-
DeveloperError : options.text, options.imageUrl, or options.link is required.
Example:
//Create a credit with a tooltip, image and link
var credit = new Cesium.Credit({
text : 'Cesium',
imageUrl : '/images/cesium_logo.png',
link : 'https://cesiumjs.org/'
});
Members
-
Gets the credit element
-
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 left
Credit The first credit right
Credit The second credit Returns:
true
if left and right are equal,false
otherwise. -
Returns true if the credits are equal
Name Type Description credit
Credit The credit to compare to. Returns:
true
if left and right are equal,false
otherwise. -
Returns true if the credit has an imageUrl
Returns:
-
Returns true if the credit has a link
Returns: