Ac-Entities

In Angular-Cesium, graphic entities should be defined in an html template in order to tell Angular-Cesium how to render each entity on the map.

Each entity might be rendered using multiple graphics combined together, For example, my plane entity can be represented by a billboard (the plane icon), a label (the plane name), and a polyline (the plane direction).

Angular-Cesium supports the following cesium graphic entities:

Entities API

  • All of the entity components are using a flatten Cesium Entities API.

  • e.g: ac-billboard props input accepts a JSON which can have all properties found in Cesium Entity (like position) plus all properties found in Cesium BillboardGraphics.

  • In AngularCesium, entities have a default height of 0 (except of Billboards and Labels). This as in line with Cesium docs. For some reason in Cesium itself, the default height is undefined which leads Cesium to use GroundPrimitive which is less efficient. As a result, if you want your entity to be more efficient, set height: 0 or any other value in the props.

In AngularCesium, entities have a default height of 0 (except of Billboards and Labels). This as in line with Cesium docs. For some reason in Cesium itself, the default height is undefined which leads Cesium to use GroundPrimitive which is less efficient. As a result, if you want your entity to be more efficient, set height: 0 or any other value in the props.

ac-entity-desc vs ac-entity

  • ac-entity-desc components are used to describe how each entity / array of entities in a stream of entities, managed inside ac-layer, should be drawn.

  • ac-entity-primitive-desc component is the same as ac-entity-desc with the difference of using Primitives to render the graphics. It is more efficient than ac-entity-desc when drawing an updating entity.

  • ac-entity component is used to draw an entity directly on the map, and so, can be used directly under ac-map.