Hi!
I'm working with the source code for the PrintTool that was delivered with the new API. I've modified it so that the user may choose what to display in the legend. However, I don't fully understand the way layers in LegendOptions work.
The picture "sublayers.png" below shows which layers I've selected to be displayed in the legend. My problem is that I'd only like to display the legend of subLayerId 18, but to do that I have to include subLayerId 15. When I do this, all sublayers belonging to subLayerId 15 are included in the legend, even though I don't pass their Id's to LegendOptions. Including only subLayerId 18 yields no results.
How would I go about achieving this? The legend easily becomes too cluttered if I can't control it below that level.
Any help would be greatly appreciated!