Credit

Credit

new

A credit contains data pertaining to how to display attributions/credits for certain content on the screen.

Parameters:
Name Type Argument Default Description
text String <optional>
undefined The text to be displayed on the screen if no imageUrl is specified.
imageUrl String <optional>
undefined The source location for an image
link String <optional>
undefined 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:

Methods

Returns true if the credits are equal

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

<static>

Returns true if the credits are equal

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

<static>

Returns the source location for the image.

Returns:

Returns a URL location for the credit hyperlink

Returns:

<static>

Returns the credit text

Returns:

<static>

Returns true if the credit has an imageUrl

Returns:

Returns true if the credit has a link

Returns: