Am trying to create an image file by following the instructions in the Example for the Method GenerateCacheImages. But the generated tiles are empty, with the exception of the message Unlicensed for Runtime in the middle of the tile.
I have the following code,
MainMap.CustomOverlays.Add(staticOverlay);
MainMap.SyncClientZoomLevels(ZoomLevelHelper.getInstance().GetCustomZoomLevelSet());
MainMap.StaticOverlay.ServerCache.CacheDirectory = @"C:\ImageCache";
//MainMap.StaticOverlay.GenerateCacheImages(MainMap.ClientZoomLevelScales[9], new RectangleShape(-87.9, 15, -83, 9.8), MainMap.MapUnit);
MainMap.StaticOverlay.GenerateCacheImages(MainMap.ClientZoomLevelScales[10], new RectangleShape(-87.9, 15, -83, 9.8), MainMap.MapUnit);
But all the tiles generated have nothing but the message Unlicensed for Runtime.
What am I doing wrong? Our map levels go from 9 to 20:
public ZoomLevelSet GetCustomZoomLevelSet()
{
ZoomLevelSet zoomLevelSet = new ZoomLevelSet(); //values obtained from ThinkGeo help file: ClientZoomlevelScales Property
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(2306999.1796875)); //I am assuming this is level 9
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(1153499.58984375));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(576749.794921875));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(288374.8974609375));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(144187.44873046875));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(72093.724365234375));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(36046.8621826171875));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(18023.43109130859375));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(9011.715545654296875));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(4505.8577728271484));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(2252.9288864135742));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(1126.4644432067871)); //I am assuming this is level 20
return zoomLevelSet;
}