I installed the WorldMapKitServer, successfully launch from localhost/WorldMapKitServer/
Click on "Preview" and get the map to display. BUT, I create a desktop app with the following code, the app launches but nothing displays. Here is the form code from the WorldMapKitServerSamples:
private void Form1_Load(object sender, EventArgs e)
{
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
winformsMap1.CurrentExtent = new RectangleShape(-126, 57, -70, 18);
// You can access to the World Map Kit Server for free, but with watermark on every tile image
TiledWmsLayer tiledWmsLayer = new TiledWmsLayer(new Uri("localhost/WorldMapKitServer/WmsServer.axd"));
// Also you can access to the World Map Kit Server with billable account,
// otherwise you will get watermark on every tile image
//tiledWmsLayer.ClientId = "YourClientId";
//tiledWmsLayer.PrivateKey = "YourPrivateKey";
// You need to specify the name and style of Layer you want to consume
tiledWmsLayer.ActiveLayerNames.Add("WorldMapKitLayer");
tiledWmsLayer.ActiveStyleNames.Add("WorldMapKitDefaultStyle");
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.Layers.Add("WorldMapKitServer", tiledWmsLayer);
winformsMap1.Overlays.Add(staticOverlay);
winformsMap1.Refresh();
}
Here is the Web.config
<configuration>
<appSettings>
The WmsPluginPath is where we will check for plugins.
-->
<add key="WmsLayerPluginsPath" value="\WorldMapKitPlugins\"/>
The directory path of WorldMapKit Data.
<add key="WorldMapKitData" value="C:\WorldMapKitData"/>
-->
<add key="WorldMapKitData" value="E:\ThinkGeoSDK\Data1"/>
The directory path of WorldMapKit SphericalMercator Data.
-->
<add key="WorldMapKitSphericalMercatorData" value="C:\WorldMapKitSphericalMercatorData"/>
The cache folder for the WorldMapKit Server.
<add key="WorldMapKitCache" value="c:\WorldMapKitServerCache\"/>
-->
<add key="WorldMapKitCache" value="E:\ThinkGeoServerCache\" />
The "RequireSingedUrl" is used to set whether we apply the default "License Strategies" to your own Map Server.
If it’s true, your own Map Server will have two kinds of users. Ones with "Free accout" to get the images
watermarked, and others use "Premium account" to requst images without watermarked. Otherwise, everybody
can access your map server without any license limits.
-->
<add key="RequireSignedUrl" value="true"/>
users wait untill the cache has been expired if you changes them. You can modify the expiration time here.
-->
<add key="ClientListCacheExpirationInMinutes" value="30"/>
</appSettings>
<system.web>
<httpHandlers>
The httpHandlers section is required for running ASP.NET under Internet
Information Services 6.0. It's also necessary for previous version of IIS.
For more information, see msdn.microsoft.com/en-us/library/46c5ddfy%28v=VS.71%29.aspx.
-->
<!--Map Suite WMS Server Edition Http Handlers-->
<add path="WmsServer.axd" verb="GET" type="ThinkGeo.MapSuite.WorldMapKitServer.WorldMapKitWmsHandler"/>
<!---->
</httpHandlers>
<compilation debug="true"/>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
The system.webServer configuration section in the Web.config file specifies IIS 7.0 settings
that are applied to the Web application. It is not necessary for previous version of IIS.
For more information, see msdn.microsoft.com/en-us/library/bb515251.aspx.
-->
<!--Map Suite WMS Server Edition Http Handlers-->
<add name="WmsServer" path="WmsServer.axd" verb="GET" type="ThinkGeo.MapSuite.WorldMapKitServer.WorldMapKitWmsHandler"/>
<!---->
</handlers>
</system.webServer>
</configuration>
Also, I am not sure what goes in the path to "WorldMapKitSphericalMercatorData" Thanks in advance!