Here is the code i am testing..
-----------------------------
Map1.MapUnit =
GeographyUnit.Meter;GdiPlusRasterLayer Layer1 = new GdiPlusRasterLayer(@"C:\Raster Images\6.png");DrawingExceptionMode.DrawException;double.MaxValue;GdiPlusRasterLayer Layer2 = new GdiPlusRasterLayer(@"C:\Raster Images\7.png");DrawingExceptionMode.DrawException;double.MaxValue;GdiPlusRasterLayer Layer3 = new GdiPlusRasterLayer(@"C:\Raster Images\8.png");DrawingExceptionMode.DrawException;double.MaxValue;GdiPlusRasterLayer Layer4 = new GdiPlusRasterLayer(@"C:\Raster Images\9.png");DrawingExceptionMode.DrawException;double.MaxValue;LayerOverlay Overlay1 = new LayerOverlay();"Layer1", Layer1);"Layer2", Layer2);TileType.SingleTile;LayerOverlay Overlay2 = new LayerOverlay();"Layer3", Layer3);"Layer4", Layer4);TileType.SingleTile;
Map1.Overlays.Remove(
Map1.Overlays.Remove(
Map1.Overlays.Add(
Map1.Overlays.Add(
"Image1");"Image2");"Image1", Overlay1);"Image2", Overlay2);
Map1.CurrentExtent =
Map1.Refresh();
new RectangleShape(484857.949507236, 5617332.17532825, 551665.833723545, 5562961.05079556);
-------------------------------
9.png is displayed on top of 8.png which seem to be right. but 6.png is displayed on top of 7.png which seem to be not right. what is the problem here? what is the display order of layers and overlays?
Layer1.DrawingExceptionMode =
Layer1.UpperThreshold =
Layer2.DrawingExceptionMode =
Layer2.UpperThreshold =
Layer3.DrawingExceptionMode =
Layer3.UpperThreshold =
Layer4.DrawingExceptionMode =
Layer4.UpperThreshold =
Overlay1.Layers.Add(
Overlay1.Layers.Add(
Overlay1.TileType =
Overlay2.Layers.Add(
Overlay2.Layers.Add(
Overlay2.TileType =