MapSuite Team,
I have a situation where a OverlayLayer.Refresh does not refresh the WmsRasterLayer that is contained within the OverlayLayer.
My application has three OverlayLayer. The first contains a WmsRasterLayer, the second a MrSidRasterLayer, and the last one contains a number of ShapeFileFeatureLayer.
When an invoke of OverlayLayer.Refresh is performed on the overlays it works except for the Overlay with the WmsRasterLayer.
so my code is basically this…
Prior to the Refresh the IsVisible properties are:
First OverlayLayer.IsVisible = false;
Second OverlayLayer.IsVisible = true;
Third OverlayLayer.IsVisible = true;
Then IsVisible is changed:
First OverlayLayer.IsVisible = true;
Second OverlayLayer.IsVisible = false;
Third OverlayLayer.IsVisible = true;
First OverlayLayer.Refresh;
Second OverlayLayerRefresh;
Third OverlayLayerRefresh;
The result is the First OverlayLayer is not shown, the Second OverlayLayer is not shown as expected, and the Third OverlayLayer is also shown as expected.
If a pan/zoom is performed after these Refresh are done then the WmsRasterLayer appears.
Replacing the individual OverlayLayer.Refresh with one WpfMap.Refresh results in the overlays appearing as they should.
Thanks,
Dennis