How can we add graphic symbol in popup through popup template with JS API 4.16?

149
1
01-28-2021 06:50 AM
Vara_PrasadM_S
Occasional Contributor II

Hi Team,

We have a requirement to show the symbol of a graphic in popup in js api V4.16application(not WAB application).

I could able to create html element from graphic symbol using "renderPreviewHTML". It is working fine for div element added to body. but it is not working as html string given for title or content of popup.

Could someone please help me in this regards.

@RobertScheitlin__GISP , could you please help me out.

Thanks & Regards,

Vara Prasad

1 Reply
MichaelRaasch
New Contributor

I would also like to know how to add a Symbol to a popupTemplate.content property.

I can get a symbol from here: graphic.layer.renderer.uniqueValueInfos[1].symbol

0 Kudos