AnsweredAssumed Answered

Renderer for points and lines in a GraphicsOverlay

Question asked by plinio on Oct 15, 2019

I created a mobile style file with two classes: point and line, each one with one key - point_key and line_key, respectively.


I'm able to load the *.stylx file in my android application and retrieve those two symbols. Then, every time I add a new graphic to one GraphicsOverlay, I have to check the geometry type and set the symbol properly.


I would like to create a Renderer and set it to my GraphicsOverlay so no matter what I'm adding to it, the render should identify the geometry type and draw it accordly.


Is possible to create such Renderer? So, if I add a point, the renderer applyes the point_key symbol, or in case the geometry is a line, the same renderer applyes the line_symbol.