Skip to content

WallEntity (Wall Entity Vector Data)

Create and manage wall Entity objects.

Constructor

typescript
new ge3d.feature.WallEntity(options?: any): WallEntity

Parameters

Common Parameters

ParameterTypeDefaultDescription
positionsLatLngPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty-Coordinate position
styleWallEntity.StyleOptions-Style information
attrObject-Additional attribute information, can add any attributes, automatically handled when exporting geojson or json
hasMoveEditBooleantrueWhether to allow overall translation when drawing
minPointNumNumber2Minimum number of points required when drawing
maxPointNumNumber9999Maximum number of points allowed when drawing
addHeightNumber0Height value added to drawing points when drawing
availabilityCesium.TimeIntervalCollection-Availability associated with this object (if any)
descriptionCesium.Property | string-String property specifying HTML description of this entity (displayed in infoBox)
viewFromCesium.Property-Suggested initial offset when viewing this object
parentCesium.Entity-Parent entity to associate with this entity
onBeforeCreateFunction-Callback method before new Cesium.Entity(addattr), can do additional personalized processing on addattr

StyleOptions Style Parameters

ParameterTypeDefaultDescription
diffHeightNumber100Wall height
minimumHeightsArray<number>-When diffHeight is not specified, can specify height array for wall bottom instead of ellipsoid surface
maximumHeightsArray<number>-When diffHeight is not specified, can specify height array for wall top instead of height at each position
fillBooleantrueWhether to fill
materialTypeString"Color"Fill type, options: {@link MaterialType}
materialParameters*-Determined by specific {@link MaterialType}
materialCesium.MaterialProperty | Cesium.ColorCesium.Color.WHITEMaterial used for filling, overrides materialType and material parameters when specified
colorString"#00FF00"Color
opacityNumber1.0Opacity, range 0.0-1.0
closureBooleanfalseWhether to close
outlineBooleanfalseWhether to have outline
outlineWidthString1Outline width
outlineColorString | Cesium.Color"#ffffff"Outline color
outlineOpacityNumber0.6Outline opacity
distanceDisplayConditionBoolean | Cesium.DistanceDisplayConditionfalseWhether to display by distance or specify at what distance from camera this will be displayed
distanceDisplayCondition_farNumber100000Maximum distance
distanceDisplayCondition_nearNumber0Minimum distance
hasShadowsBooleanfalseWhether to cast shadows
shadowsCesium.ShadowModeCesium.ShadowMode.DISABLEDSpecify whether wall casts or receives shadows from light sources
granularitynumberCesium.Math.RADIANS_PER_DEGREESpecify angular distance between each latitude and longitude point
setHeightNumber0Specify coordinate height value (commonly used in layer configuration)
addHeightNumber0Height value added to existing coordinates (commonly used in layer configuration)
highlightWallEntity.StyleOptions-Highlight style on hover or click (type:'click'), can also be toggled via openHighlight/closeHighlight methods after creating Graphic
labelLabelEntity.StyleOptions-Support for additional text display
label.positionString | LatLngPoint-Text position, default is center property value of vector object itself. Support 'center': internal center point coordinates of enclosed surface, '{xxxx}' configure attribute field, or directly specify coordinate values
label.showAllBoolean-For MultiPolygon and MultiLineString, whether to display all annotations, default only displays on surface or line with maximum coordinates

Properties

PropertyTypeDescription
_layeranyBelonging layer
_eventsanyBound events. Pass data through callback methods
centerOfMassanyPolygon center
areanumberArea (getter)
attranyInput attribute information (getter)
centeranyCenter point coordinates (Cartesian coordinates) (getter)
distancenumberPolygon length (getter)
entityGraphicanySpecific type object of Cesium internal object corresponding to vector data (getter)
hasEditbooleanWhether editable (getter)
isAddedbooleanWhether added to layer (getter)
isDestroybooleanWhether destroyed (getter)
isEditinganyWhether in editing state (getter)
labelanyAdditional label text object (getter)
minOuterRectangleanyMinimum outer rectangle (setter)
showanyShow/hide state (getter)
styleanyStyle information (getter)
rectangleanyRectangle boundary corresponding to coordinate data (getter)

Methods

MethodParametersReturn ValueDescription
addEventListenertypes: any, fn: any, context?: anythisEvent binding
clear-voidClear elements
destroynoDel?: booleanvoidDestroy elements
flyTooptions?: anyundefined | PolygonEntityFly to view angle where data is located
getCenterOfMass-anyInternal center point coordinates of enclosed surface
getCoordinatesnoAlt?: undefined, closure?: undefinedany[][]Get latitude and longitude coordinates
getPositions-anyPosition coordinate array (Cartesian coordinates), can pass LatLngPoint array object or Cesium.PolygonHierarchy when assigning
getSetHeightstyle?: any, index?: numberanyGet set elevation
getPositionsShow-anyActually displayed coordinate array (Cartesian coordinates), when plotting, positions may correspond to control point coordinates or CallbackProperty properties
removeEventListenertypes: any, fn: any, context?: anythisRemove event binding
setOpacityvalue: numbervoidSet opacity
setOptionsoptions: { attr: any; position: any; positions: any; style: any }thisSet Options parameters
setPositionsvalue: anyvoidSet coordinates
setStylenewStyle: anythisSet style
toGeoJSONoptions: anyobjectConvert to geojson
toWKToptions: anyanyConvert to wkt