信用包含与如何在屏幕上显示某些内容的归属/信用相关的数据。
| Name | Type | Default | Description |
|---|---|---|---|
html |
string | 一个表示 HTML 代码片段的字符串。 | |
showOnScreen |
boolean |
false
|
optional 如果为 true,则信用将可见于主要信用容器中;否则,它将显示在弹出框中。所有信用均以 `inline` 形式显示,如果您有图像,建议将其尺寸调整以匹配文本,或使用 CSS 设置 `vertical-align`。 |
Throws:
-
DeveloperError : html 是必需的。
Example:
// Create a credit with a tooltip, image and link
const credit = new Cesium.Credit('<a href="https://cesium.com/" target="_blank"><img src="/images/cesium_logo.png" style="vertical-align: -7px" title="Cesium"/></a>');
Members
获取信用元素
信用内容
信用是否应该在屏幕上显示或在灯箱中显示
Methods
static Cesium.Credit.clone(credit) → Credit
复制一个 Credit 实例。
| Name | Type | Description |
|---|---|---|
credit |
Credit | optional 要复制的 Credit。 |
Returns:
一个新的 Credit 实例,是提供的实例的副本。(如果信用未定义,则返回 undefined)
如果信用相等,则返回 true
| Name | Type | Description |
|---|---|---|
left |
Credit | 第一个信用 |
right |
Credit | 第二个信用 |
Returns:
如果左右相等,则
true,否则 false
如果信用相等,则返回 true
| Name | Type | Description |
|---|---|---|
credit |
Credit | 要比较的信用。 |
Returns:
如果相等,则
true,否则 false
