new Credit(text, imageUrl, link)
A credit contains data pertaining to how to display attributions/credits for certain content on the screen.
Name | Type | Description |
---|---|---|
text |
String | optional The text to be displayed on the screen if no imageUrl is specified. |
imageUrl |
String | optional The source location for an image |
link |
String | optional A URL location for which the credit will be hyperlinked |
Example:
//Create a credit with a tooltip, image and link
var credit = new Cesium.Credit('Cesium', '/images/cesium_logo.png', 'http://cesiumjs.org/');
Source:
Core/Credit.js, line 27
Members
-
imageUrl :String
-
The source location for the image.Source: Core/Credit.js, line 70
-
link :String
-
A URL location for the credit hyperlinkSource: Core/Credit.js, line 81
-
text :String
-
The credit textSource: Core/Credit.js, line 59
Methods
-
staticCredit.equals(left, left) → Boolean
-
Returns true if the credits are equal
Name Type Description left
Credit The first credit left
Credit The second credit Returns:
true
if left and right are equal,false
otherwise.Source: Core/Credit.js, line 113 -
equals(credits) → Boolean
-
Returns true if the credits are equal
Name Type Description credits
Credit The credit to compare to. Returns:
true
if left and right are equal,false
otherwise.Source: Core/Credit.js, line 131 -
hasImage() → Boolean
-
Returns true if the credit has an imageUrl
Returns:
Source: Core/Credit.js, line 93 -
hasLink() → Boolean
-
Returns true if the credit has a link
Returns:
Source: Core/Credit.js, line 102