Q&A - Question

sublayer

Question
Dick asked on January 03, 2017, keyword: Developer Kernel
How can I display sublayers in ControlLegend so I can expand or collapse the sub-layers ?
Answers
Artur Redzko (TatukGIS) replied December 20, 2016
The legend control has an option ShowSubLayers in the Options property. If a layer has sublayers, they should be displayed automatically.
Dick replied December 20, 2016
Thanks, I had found this, the issue was that ControlLegend needed the mode changed to show groups ...

GIS_ControlLegend1.Mode := gisControlLegendModeGroups;
 
Danv replied January 02, 2017
Do you mean sublayers like in DXF files? I see a big difference between sublayers and the groups functionality of the legend.

Sublayers are file related and its data structure, e.g. DXF_LAYER in a DXF file.

Groups is a set of layers nicely ordered with a name in the legend.

Does this setting really answer your question?

 
Dick replied January 03, 2017
I needed to create an object then create sub-items of that group e.g. parent & child style. The gisControlLegend Mode allows me to do this for layers I create programmatically and so resolves my issue.

I have noticed however that when importing DXF files with several layers, sometimes the import produces sub-layers and sometimes not, what governs whether a sub-layer is shown, is it the DXF version ?
Danv replied January 03, 2017
In DXF the attribute DXF_LAYER controls this behavior. Every unique value makes a sublayer in the DXF layer in TatukGIS.

I have created a tool which can export data from all visible layers in a certain extent to 1 DXF file.
This is done by giving the DXF_LAYER the name of the layer e.g.
 
If you would like to answer the question please Sign In.
*
*
Please review our recent Privacy Policy.
If you have any questions or requests, please contact us.
Rules
The Questions and Answers (Q & A) is intended to provide a means of communication between TatukGIS customers.
 
  1. Licensed users (with active maintenance play) of TatukGIS products may contribute to the Q & A content. Read-only access is available to anyone.
  2. Keep the content positive and professional.
  3. 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.
  4. The Q & A is not a replacement for TatukGIS technical support. TatukGIS team may or may not regularly follow or contribute content.