Hello,
Our team recently purchased the World Map Kit WMS Server tool. I have successfully set that up and am able to see that The data from a couple of servers in our domain. The problem comes in when I used the Quick Start for the Desktop Edition to consume that Wms Server data. Here is the code:
private void Map_Load(object sender, EventArgs e)
{
lblMunicipality.Text = "Default Municipality";
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
winformsMap1.CurrentExtent = new RectangleShape(-126, 57, -70, 18);
TiledWmsLayer tiledWmsLayer = new TiledWmsLayer(new Uri("AServer/WmsServer.axd"));
tiledWmsLayer.ActiveLayerNames.Add("Display A Simple Map");
tiledWmsLayer.ActiveStyleNames.Add("DEFAULT");
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.Layers.Add("SimpleWmsLayerPlugin", tiledWmsLayer);
winformsMap1.Overlays.Add(staticOverlay);
winformsMap1.Refresh();
}
All I am getting is a blue background. The name of the .axd is correct. Of course, AServer has been masked for security reasons, but I can browse the WMS map data from my development machine where the code resides. The DotNet project level has been set to 3.5. I modified the RectangleShape parameters, but the default from the Quick Start did not work either. Please advise.
Regards,
Steven