Hi,
I am using CIM symbol for my maps. But I am not able to dynamically change the size of the symbol. I tried to clone the symbol using clone().
https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html
let symLyr = myobject[0].symbol.clone();
But the above code is giving me undefined as output.
Any idea how to clone the CIM symbol?
Thnaks
You might also want to check out the cimSymbolUtils if you're looking to change the size of the symbol. Maybe the scaleCIMSymbolTo() method will do what you need?
Hi @ADITYAKUMAR1 - You should be able to call clone() on your symbol after it's been initialized - here's an example: https://codepen.io/annefitz/pen/XWxdJvV (the clone method is called on line 278). Hope this helps!
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.