Cesium3DTileset.
提供对存储在瓷砖批量表中的特性的访问权限,以及 作为显示/隐藏特征并改变其点属性的能力
对 NT 0 铯3DTILEPointFeature NT 1 的修改具有瓷砖的寿命
content. If the tile's content is unloaded, e.g., due to it going out of view and needing
to free space in the cache for visible tiles, listen to the Cesium3DTileset#tileUnload event to save any
modifications. Also listen to the Cesium3DTileset#tileVisible event to reapply any modifications.
Do not construct this directly. Access it through Cesium3DTileContent#getFeature
or picking using Scene#pick and Scene#pickPosition.
Example:
// On mouse over, display all the properties for a feature in the console log.
handler.setInputAction(function(movement) {
const feature = scene.pick(movement.endPosition);
if (feature instanceof Cesium.Cesium3DTilePointFeature) {
const propertyIds = feature.getPropertyIds();
const length = propertyIds.length;
for (let i = 0; i < length; ++i) {
const propertyId = propertyIds[i];
console.log(`{propertyId}: ${feature.getProperty(propertyId)}`);
}
}
}, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
Experimental
This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
Members
anchorLineColor : Color
仅在 NT 0 hightOffset NT 1 确定时才适用.
仅在 NT 0 hightOffset NT 1 确定时才适用.
backgroundColor : Color
仅在 NT 0 labelText NT 1 定义时才应用.
仅在 NT 0 labelText NT 1 定义时才应用.
backgroundPadding : Cartesian2
仅在 NT 0 labelText NT 1 定义时才应用.
color : Color
仅在 NT 0 image NT 1 为 NT 2 未定义 NT 3 时适用.
distanceDisplayCondition : DistanceDisplayCondition
只有在定义了 NT 0 labelText NT 1 时才适用.
horizontalOrigin : HorizontalOrigin
labelColor : Color
如果定义了 NT 0 labelText NT 1 ,颜色将应用到标签上.
labelHorizontalOrigin : HorizontalOrigin
labelOutlineColor : Color
如果定义了 NT 0 labelText NT 1 ,则大纲颜色将应用到标签上.
如果定义了 NT 0 labelText NT 1 ,则大纲宽度将应用到此点.
labelStyle : LabelStyle
仅在 NT 0 labelText NT 1 定义时才应用.
labelVerticalOrigin : VerticalOrigin
pointOutlineColor : Color
仅在 NT 0 image NT 1 为 NT 2 未定义 NT 3 时适用.
仅在 NT 0 image NT 1 为 NT 2 未定义 NT 3 时适用.
仅在 NT 0 image NT 1 为 NT 2 未定义 NT 3 时适用.
readonly primitive : Cesium3DTileset
Scene#pick have a primitive property. This returns
包含该特性的平板.
scaleByDistance : NearFarScalar
-
Default Value:
true
readonly tileset : Cesium3DTileset
translucencyByDistance : NearFarScalar
verticalOrigin : VerticalOrigin
Methods
| Name | Type | Description |
|---|---|---|
name |
string | 财产的大小写名称. |
Returns:
undefined if the feature does not have this property.
Example:
// Display all the properties for a feature in the console log.
const propertyIds = feature.getPropertyIds();
const length = propertyIds.length;
for (let i = 0; i < length; ++i) {
const propertyId = propertyIds[i];
console.log(`{propertyId} : ${feature.getProperty(propertyId)}`);
}
See:
| Name | Type | Description |
|---|---|---|
results |
Array.<string> | optional 存储结果的数组 . |
Returns:
| Name | Type | Description |
|---|---|---|
name |
string | 财产的大小写名称. |
Returns:
如果一个有给定名称的财产不存在,它就是创建的.
| Name | Type | Description |
|---|---|---|
name |
string | 财产的大小写名称. |
value |
* | 将复制的属性的值 . |
Throws:
-
DeveloperError : Inherited batch table hierarchy property is read only.
Examples:
const height = feature.getProperty('Height'); // e.g., the height of a building
const name = 'clicked';
if (feature.getProperty(name)) {
console.log('already clicked');
} else {
feature.setProperty(name, true);
console.log('first click');
}