Hi,
I am attempting to add two WMSOverlays to the map using the following code:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.StandardColors.White);
Map1.CurrentExtent = new RectangleShape(-131.22, 55.05, -54.03, 16.91);
Map1.MapUnit = GeographyUnit.DecimalDegree;
WmsOverlay wms = new WmsOverlay("WMS Overlay");
wms.Parameters.Add("layers", "Countries02");
wms.Parameters.Add("STYLE", "SIMPLE");
wms.ServerUris.Add(new Uri("wmssamples.thinkgeo.com/WmsServer.aspx"));
wms.TileType = TileType.MultipleTile;
wms.TileHeight = 256;
wms.TileWidth = 256;
WmsOverlay wms1 = new WmsOverlay("WMS Overlay1");
wms1.Parameters.Add("layers", "USStates");
wms1.Parameters.Add("STYLE", "SIMPLE");
wms1.ServerUris.Add(new Uri("wmssamples.thinkgeo.com/WmsServer.aspx"));
wms1.TileType = TileType.MultipleTile;
wms1.TileHeight = 256;
wms1.TileWidth = 256;
Map1.CustomOverlays.Add(wms);
Map1.CustomOverlays.Add(wms1);
}
}
Only the 'wms' overlay is displayed on the map. I would expect that the 'wms1' overlay would display on top of the 'wms' overlay.