ThinkGeo.com    |     Documentation    |     Premium Support

Add a legend to ValueStyle

Hello

I use a ValueStyle and I am looking how to add a legend to each item in order to display it with the Legend Adornment Layer (as in V2 with SymbolValueRenderer

 
 Dim values As New Collection(Of ValueItem)()
 values.Add(New ValueItem(“01”, symbol01)) '<-- add legend01
 values.Add(New ValueItem(“02”, symbol02)) '<-- add legend02
 Dim valuRender As New ValueStyle(“ID_COL”, values)
         

Have you any idea?

Thank you



We had in plan to provide a Legend for the May release but it did not make it and now we are shooting for the November release. In the meantime, you will have to create yourself manually the legend as we did for example in the Code Community project Swine Flu code.thinkgeo.com/projects/show/swineflu.



There is also the Legend Adornment Layer Code Community project you can look at for inspiration.


code.thinkgeo.com/projects/show/legendadornment