Hi Team,
The map worked before. But recently it stops working with this exception:
Could not find file: …\AppData\Local\Temp\MapSuite\PersistentCaches\BingMapsMetadata.xml.
My codes are:
wpfMap1.MapUnit = GeographyUnit.Meter;
proj4 = drawFeature.Prj4Meters();
pointShapemin = (PointShape)proj4.ConvertToExternalProjection(new PointShape(120, -14));
pointShapemax = (PointShape)proj4.ConvertToExternalProjection(new PointShape(160, -42));
wpfMap1.CurrentExtent = new RectangleShape(pointShapemin, pointShapemax);
LoadMaps loadMaps = new LoadMaps(wpfMap1, ProjectContext.BingMapsKey);
DefaultLayerStyle();
public LoadMaps(WpfMap wpfMap, string bingMapId) {
BingMapsOverlay bingMapsOverlay = new BingMapsOverlay(bingMapId, ThinkGeo.MapSuite.Wpf.BingMapsMapType.AerialWithLabels);
bingMapsOverlay.Name = "Bing Maps Aerial";
bingMapsOverlay.ApplicationId = bingMapId;
bingMapsOverlay.IsVisible = true;
// wpfMap.ZoomLevelSet= new ThinkGeo.MapSuite.Layers.BingMapsZoomLevelSet();
wpfMap.Overlays.Add("bingMapsOverlay", bingMapsOverlay);
}
Do you have any idea to fix that?
I’m using ThinkGeo.MapSuite 10.4.0
Thanks
Min