AnsweredAssumed Answered

renderer.fromJSON

Question asked by segseg12 on May 21, 2019
Latest reply on May 22, 2019 by rscheitlin

I am trying to convert a layer back to its original drawing,after changing it.

the service include the layer in json form(i think) i tried both the fromJSON func and rewriting it manually but I think there is something wrong with the way i wrote it.

 

heres a codepen:

 

https://codepen.io/segev-salman/pen/MdEbwv

 

 

*is there a function to revertback to the original drawing or do i have to change the renderer with the full info inside?  

Outcomes