We have a Treeview in our GIS-Application where the user can turn on/off layers. Every layer is stored in an overlay.
We do this by setting the "overlays.IsVisisble" property.
oWFMap.Overlays(lngID_AnsichtLayer.ToString).IsVisible = bolShowing
oWFMap.Refresh()
This works for every overlay except for the last visible overlay. After calling the upper code the overlay (layer) is shown until you pan the map.
Any ideas?
Thomas