Hello Gary ,
Thank you for your reply, i managed to solve this problem using the WellKnownType. The problem im having now is removing an overlay from the map.
Im having a list of layers that the user can check or uncheck in order to show them on the map the problem is that when i uncheck a layer and i remove it from the code it stayes on the map
Every overlay is declared like this
TestOverlay = new LayerOverlay("TOverlay" + tblName, false, TileType.SingleTile);
in order to be unique So when i uncheck the checkbox i just declare the Overlay and then i remove it
Map1.CustomOverlays.Remove(TestOverlay);
But it does not work . whereas if i declared manually an overlay for each layer then the .Remove method works fine
Any thoughts
thanks in advance
dom