Hello
I am trying to add a symbol of the layer in the built-in Overlay switcher.
I used this code :
var PipelineOverlay = new LayerOverlay("AB Adjusted Pipelines FEB", false, TileType.MultipleTile);
PipelineOverlay.Name = @"<IMG SRC='RED.png' ALT='Blue'>" + " AB Adjusted Pipelines FEB";
This display the symbol image well. However, this messes up layer switcher's checkbox. As long as the checkbox is checked one cannot access layer using:
var LayerOverlay = (LayerOverlay) Map1.CustomOverlays["AB Adjusted Pipelines FEB"];
Please tell me what is wrong
Thanks
Vivek