I’m trying to write a custom overlay/layer switcher and I’m stuck on getting the layers to turn on/off. What do I need to add to my checkbox tag to get the layers to turn off/on. Either I need the scripting code to place as a onchanged event or i need it to mirror the original layerswitcher that the map generates.
@foreach (Overlay L in Model.CustomOverlays)
{
if (L.IsVisibleInOverlaySwitcher)
{
if (L.Name == “NG911”)
{
}
}
}