学分包含有关如何在屏幕上显示特定内容的属性/学分的数据。
Name | Type | Default | Description |
---|---|---|---|
html |
String | 表示html代码段的字符串 | |
showOnScreen |
Boolean |
false
|
optional 如果为true,则信用在主信用容器中可见。否则,它将出现在弹出窗口中 |
Throws:
-
DeveloperError :需要html。
Example:
//Create a credit with a tooltip, image and link
var credit = new Cesium.Credit('<a href="https://cesium.com/" target="_blank"><img src="/images/cesium_logo.png" title="Cesium"/></a>');
Members
获取credit元素
信用内容
信用证应该显示在屏幕上还是灯箱里
Methods
static Cesium.Credit.clone(credit) → Credit
复制信用实例。
Name | Type | Description |
---|---|---|
credit |
Credit | optional 复制信用证。 |
Returns:
一个新的信用实例,它是所提供的实例的副本。(如果信用未定义,则返回未定义)
如果信用相等,返回true
Name | Type | Description |
---|---|---|
left |
Credit | 第一学分 |
right |
Credit | 第二个学分 |
Returns:
如果左右相等,则为
true
,否则为false
。如果信用相等,返回true
Name | Type | Description |
---|---|---|
credit |
Credit | 要比较的信用。 |
Returns:
如果左右相等,则为
true
,否则为false
。