Html

<ac-html-desc />

This is a mechanism that allows for displaying html on the map as part of an entity graphics. The ac-html-desc element must be a child of ac-layer element.
Usage :
1
<ac-layer acFor="let html of htmls$" [context]="this">
2
<ac-html-desc props="{position: html.position, show: html.show}">
3
<ng-template let-html>
4
<div>
5
<h1>This is ac-html {{html.name}}</h1>
6
<button (click)="changeText(html, 'Test')">change text</button>
7
</div>
8
</ng-template>
9
</ac-html-desc>
10
</ac-layer>
Copied!
Description of the props :
  • position - cartesian3 position
  • show -show/hide html content

<ac-html />

This is a mechanism that allows for attaching html to the map just like any other Cesium graphics. The ac-html element must be a child of ac-map element.

Usage :

1
<ac-html [props]="{position: position, show: true}">;
2
<p>html element</p>
3
</ac-html>
Copied!
Description of the props :
  • position - cartesian3 position
  • show -show/hide html content

More details:

Last modified 2yr ago