I just got the World map Kit and trying to test it in a real environment. I do have the demo working locally.
I put the code on my server and modified the code to find the location of the map files but my maps only show the citys (map is black).
Here is my code pretty much right from the sample:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromArgb(255, 242, 239, 233));
Map1.MapUnit = GeographyUnit.DecimalDegree;
//string dataPath = ConfigurationManager.AppSettings.Get("WorldMapKitDataFolder");
string dataPath = HttpContext.Current.Server.MapPath("/maps");
RenderMap renderMap = new RenderMap(dataPath);
renderMap.LoadLayers(Map1.StaticOverlay.Layers, Map1.DynamicOverlay.Layers);
Map1.CurrentExtent = RenderMap.DefaultExtent;
Map1.StaticOverlay.WebImageFormat = WebImageFormat.Jpeg;
//Map1.StaticOverlay.ServerCache.CacheDirectory = ConfigurationManager.AppSettings.Get("ImageCacheFolder");
Map1.StaticOverlay.ServerCache.CacheDirectory = HttpContext.Current.Server.MapPath("/RenderCache");
Map1.StaticOverlay.ClientCache.Duration = new TimeSpan(1, 0, 0, 0);
Map1.StaticOverlay.ClientCache.CacheId = "ThinkGeoClientCache";
Map1.MapTools.LoadingImage.Enabled = true;
Map1.MapTools.KeyboardMapTool.Enabled = true;
Map1.MapTools.MiniMap.Enabled = true;
Map1.MapTools.ScaleLine.Enabled = true;
Map1.MapTools.MouseCoordinate.Enabled = true;
Map1.MapTools.PanZoomBar.Enabled = true;
}
}
you can see this in action at map.signsonatree.com/
What am I doing wrong?