信用包含有关如何显示屏幕上某些内容的归属/信用的数据.
| Name | Type | Default | Description |
|---|---|---|---|
html |
string | 代表 html 代码片段的字符串 | |
showOnScreen |
boolean |
false
|
optional If true, the credit will be visible in the main credit container. Otherwise, it will appear in a popover. All credits are displayed `inline`, if you have an image we recommend sizing it correctly to match the text or use css to `vertical-align` it. |
Throws:
-
DeveloperError : html is required.
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
重复信用实例.
| Name | Type | Description |
|---|---|---|
credit |
Credit | optional 重复的功劳. |
Returns:
A new Credit instance that is a duplicate of the one provided. (Returns undefined if the credit is undefined)
如果信用值相等, 返回为真
| Name | Type | Description |
|---|---|---|
left |
Credit | optional 第一个功劳 |
right |
Credit | optional 第二个功劳 |
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .
如果信用值相等, 返回为真
| Name | Type | Description |
|---|---|---|
credit |
Credit | optional 与人相比的功劳. |
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .