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 :
<ac-layer acFor="let html of htmls$" [context]="this"><ac-html-desc props="{position: html.position, show: html.show}"><ng-template let-html><div><h1>This is ac-html {{html.name}}</h1><button (click)="changeText(html, 'Test')">change text</button></div></ng-template></ac-html-desc></ac-layer>
Description of the props :
position
- cartesian3 position
show -
show/hide html content
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.
<ac-html [props]="{position: position, show: true}">;<p>html element</p></ac-html>
Description of the props :
position
- cartesian3 position
show -
show/hide html content