Credit

new SuperMap3D.Credit(html, showOnScreen)

Credentials contain data related to attribution/credentials of how something is displayed on the screen.
Name Type Default Description
html String optional A string representing a snippet of html code.
showOnScreen Boolean false optional If true, the credential will be visible in the main credential, otherwise it will appear in a popup.
Throws:
Example:
//Create a credit with a tooltip, image and link

Members

readonlyelement : HTMLElement

get credential element

readonlyhtml : String

Credential content

readonlyshowOnScreen : Boolean

Whether the certificate should be displayed on the screen or in a pop-up window.

Methods

staticSuperMap3D.Credit.clone(credit)Credit

copy credential instance
Name Type Description
credit Credit optional Credentials to copy.
Returns:
The new credential instance is a duplicate of the one provided. (returns undefined if credential is undefined)

staticSuperMap3D.Credit.equals(left, right)Boolean

Returns true if the credentials are equal
Name Type Description
left Credit first certificate on the left
right Credit the second certificate from the right
Returns:
Returns true if left and right are equal, otherwise returns false

equals(Credit)Boolean

Returns true if the credentials are equal
Name Type Description
Credit Credit Comparison between certificates
Returns:
Returns true if left and right are equal, otherwise returns false