Class: Credit

Credit

new Credit(textopt, imageUrlopt, linkopt)

A credit contains data pertaining to how to display attributions/credits for certain content on the screen.
Parameters:
Name Type Attributes 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
Source:
Example
//Create a credit with a tooltip, image and link
var credit = new Cesium.Credit('Cesium', '/images/cesium_logo.png', 'http://cesiumjs.org/');

Members

(readonly) imageUrl :String

The source location for the image.
Type:
  • String
Source:
A URL location for the credit hyperlink
Type:
  • String
Source:

(readonly) text :String

The credit text
Type:
  • String
Source:

Methods

(static) equals(left, right) → {Boolean}

Returns true if the credits are equal
Parameters:
Name Type Description
left Credit The first credit
right Credit The second credit
Source:
Returns:
true if left and right are equal, false otherwise.
Type
Boolean

equals(credits) → {Boolean}

Returns true if the credits are equal
Parameters:
Name Type Description
credits Credit The credit to compare to.
Source:
Returns:
true if left and right are equal, false otherwise.
Type
Boolean

hasImage() → {Boolean}

Returns true if the credit has an imageUrl
Source:
Returns:
Type
Boolean
Returns true if the credit has a link
Source:
Returns:
Type
Boolean