Constructor
new Entity(optionsopt)
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | <optional> | Entity options: Properties
|
- Source
Methods
_setCartesian3vSilent(cartesian, skipLonLat)
Sets entity cartesian position without event dispatching.
Name | Type | Default | Description |
---|---|---|---|
cartesian | Vec3 | Cartesian position in 3d space. | |
skipLonLat | boolean | false | skip geodetic calculation. |
- Source
addTo(collection, rightNowopt) → {Entity}
Adds current entity into the specified entity collection.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
collection | EntityCollection | | Specified entity collection or vector layer. | ||
rightNow | Boolean | <optional> | false | Entity insertion option for vector layer. |
- Source
- This object.
- Type:
- Entity
appendChild(entity)
Append child entity.
Name | Type | Description |
---|---|---|
entity | Entity | Child entity. |
- Source
getAltitude() → {number}
Sets entity altitude over the planet.
- Source
Altitude.
- Type:
- number
getCartesian() → {Vec3}
Returns cartesian position.
- Source
- Type:
- Vec3
getExtent() → {Extent}
Return geodetic extent.
- Source
- Type:
- Extent
getLonLat() → {LonLat}
Gets entity geodetic coordinates.
- Source
- Type:
- LonLat
getVisibility() → {boolean}
Returns entity visibility.
- Source
- Type:
- boolean
remove()
Removes current entity from collection and layer.
- Source
setAltitude(altitude)
Sets entity altitude over the planet.
Name | Type | Description |
---|---|---|
altitude | number | Altitude. |
- Source
setBillboard(billboard) → {Billboard}
Sets entity billboard.
Name | Type | Description |
---|---|---|
billboard | Billboard | Billboard object. |
- Source
- Type:
- Billboard
setCartesian(x, y, z)
Sets entity cartesian position.
Name | Type | Description |
---|---|---|
x | number | 3d space X - position. |
y | number | 3d space Y - position. |
z | number | 3d space Z - position. |
- Source
setCartesian3v(cartesian)
Sets entity cartesian position.
Name | Type | Description |
---|---|---|
cartesian | Vec3 | Cartesian position in 3d space. |
- Source
setGeoObject(geoObject) → {GeoObject}
Sets entity geoObject.
Name | Type | Description |
---|---|---|
geoObject | GeoObject | GeoObject. |
- Source
- Type:
- GeoObject
setGeometry(geometry) → {Geometry}
Sets entity geometry.
Name | Type | Description |
---|---|---|
geometry | Geometry | Geometry object. |
- Source
- Type:
- Geometry
setLabel(label) → {Label}
Sets entity label.
Name | Type | Description |
---|---|---|
label | Label | Text label. |
- Source
- Type:
- Label
setLonLat(lonlat)
Sets geodetic coordinates of the entity point object.
Name | Type | Description |
---|---|---|
lonlat | LonLat | WGS84 coordinates. |
- Source
setLonLat2(lon, lat, heightopt)
Sets geodetic coordinates of the entity point object.
Name | Type | Attributes | Description |
---|---|---|---|
lon | number | Longitude. | |
lat | number | Latitude | |
height | number | <optional> | Height |
- Source
setPickingColor()
Appends entity items(billboard, label etc.) picking color.
- Source
setPointCloud(pointCloud) → {PointCloud}
Sets entity pointCloud.
Name | Type | Description |
---|---|---|
pointCloud | PointCloud | PointCloud object. |
- Source
- Type:
- PointCloud
setPolyline(polyline) → {Polyline}
Sets entity polyline.
Name | Type | Description |
---|---|---|
polyline | Polyline | Polyline object. |
- Source
- Type:
- Polyline
setRay(ray) → {Ray}
Sets entity ray.
Name | Type | Description |
---|---|---|
ray | Ray | Ray object. |
- Source
- Type:
- Ray
setStrip(strip) → {Strip}
Sets entity strip.
Name | Type | Description |
---|---|---|
strip | Strip | Strip object. |
- Source
- Type:
- Strip
setVisibility(visibility)
Sets the entity visibility.
Name | Type | Description |
---|---|---|
visibility | boolean | Entity visibility. |
- Source