new Credit
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 Credit('Cesium', '/images/cesium_logo.png', 'http://cesium.agi.com/');
    
	
	
Source:
Methods
- 
    
equals
 - 
    
    
    
Returns true if the credits are equal
Parameters:
Name Type Description creditsCredit The credit to compare to. Returns:
Booleantrueif left and right are equal,falseotherwise. - 
    
<static> equals
 - 
    
    
    
Returns true if the credits are equal
Parameters:
Name Type Description leftCredit The first credit leftCredit The second credit Returns:
Booleantrueif left and right are equal,falseotherwise. - 
    
<static> prototype.getImageUrl
 - 
    
    
    
Returns the source location for the image.
Returns:
 - 
    
<static> prototype.getLink
 - 
    
    
    
Returns a URL location for the credit hyperlink
Returns:
 - 
    
<static> prototype.getText
 - 
    
    
    
Returns the credit text
Returns:
 - 
    
<static> prototype.hasImage
 - 
    
    
    
Returns true if the credit has an imageUrl
Returns:
 - 
    
<static> prototype.hasLink
 - 
    
    
    
Returns true if the credit has a link
Returns:
 
