Q&A - Question Retrieving legend items data programmatically Question SteH asked on June 28, 2017, keyword: Developer Kernel Via TGIS_LayerPixel.Params.Pixel.AltitudeMapZones it is easy to extract the legend items and construct your own legend as bitmap for example. Now I am looking for a way yo do the same with a vector layer. I have tried via the ParamList property if the vector layer object, but from there I haven't been able to retrieve color and caption of each item. How can this be achieved? Answers SteH replied June 24, 2017 Let me be more precise. I use the automatic rendering build in DK which seems to make it impossible to retrieve the color and legend for each item automatically generated. lvGrid.Params.Render.Expression := 'COUNT'; lvGrid.Params.Render.MinVal := 1; lvGrid.Params.Render.MaxVal := maxCount; lvGrid.Params.Render.Zones := -5; lvGrid.Params.Render.Round := -1; Tomasz Kosinski (TatukGIS) replied June 24, 2017 Hi, Our legend uses this helper class: TGIS_LegendIconFactory class Tomasz Kosinski (TatukGIS) replied June 24, 2017 Generally, the TGIS_legendIconFactory produced a bitmap which we use on legend control but you can produce such bitmap and pick a color. SteH replied June 24, 2017 Thanks,but unfortunately this class is not available in the DK10. Any workaround there? Tomasz Kosinski (TatukGIS) replied June 24, 2017 In DK10 to must parse layer .Params.Pixel.AltitudeMapZones on your own. If you would like to answer the question please Sign In. * * Stay signed in on this computer Please review our recent Privacy Policy.If you have any questions or requests, please contact us. Forgotten password Rules The Questions and Answers (Q & A) is intended to provide a means of communication between TatukGIS customers. Licensed users (with active maintenance play) of TatukGIS products may contribute to the Q & A content. Read-only access is available to anyone. Keep the content positive and professional. Be courteous to others by posting information when a question or issue asked on the Q & A is answered or resolved by other means (such as with help from TatukGIS technical support). Offer others at least a hint how the posted question was answered or the issue was resolved. The Q & A is not a replacement for TatukGIS technical support. TatukGIS team may or may not regularly follow or contribute content.