Ac-Array

<ac-array-desc />

This is custom component that represents an array under ac-layer. The element must be a child of ac-layer element.
Usage :
1
<ac-layer acFor="let track of tracks$" [show]="show" [context]="this">
2
<ac-array-desc acFor="let arrayItem of track.array" [idGetter]="trackArrayIdGetter">
3
<ac-array-desc acFor="let innerArrayItem of arrayItem.innerArray" [idGetter]="trackArrayIdGetter">
4
<ac-point-desc props="{
5
position: innerArrayItem.pos,
6
pixelSize: 10,
7
color: getTrackColor(track),
8
outlineColor: Cesium.Color.BLUE,
9
outlineWidth: 1
10
}">
11
</ac-point-desc>
12
</ac-array-desc>
13
</ac-array-desc>
14
</ac-layer>
Copied!
Description of the props :
  • acFor - {string} - get the tracked array and entityName (see the example).
  • idGetter {Function} - a function that gets the id for a given element in the array - should be defined for maximum performance.
  • show {boolean} - show/hide array's entities.
Last modified 2yr ago
Copy link