How to make one type of element correspond to multiple icons ？ For example, I can change icons by setting different properties. Can this be done
Yes, this can be done. In fact, it is rather trivial.
Thank you for your reply. Where should I start to implement it, or is there a reference example
Thank you for your reply.I have successfully solved this problem
For everyone else interested, do you mind sharing the gist of your solution?
It mainly rewrites the drawshape function. The drawshape function is called every time the attribute is modified, which can be used for re rendering. I set different properties and find the corresponding rendering method in the drawshape function, such as image URL and other information.