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
Solved! Go to Solution.
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!
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?