Hello,
I'm new to the WPF Edition of MapSuite. For now, I'm just trying to create a simple Map with OpenStreetMap as Background.
When I run the application, I get an empty map and it seems that no request are send to OpenStreetMap.
I tried to disable my Windows Firewall, but the map is still empty.
I tried to set a CaccheDirectory, but the map is still empty even if some folders are created by MapSuite in the directory.
I tried with Google in place of OpenStreetMap, and I got the same result.
I tried with the ThinkGeo WorldMapKit (setting degrees as unit and a full world extent), and... it works.
Do I miss something with OpenStreetMap?
My configuration: Windows 7 Pro x64 French, VisualStudio 2010 Ultimate with .NET4, MapSuite WPF Full 4.5.121.
My source code (in the Loaded event handler) :
wpfMap1.MapUnit = ThinkGeo.MapSuite.Core.GeographyUnit.Meter;
wpfMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.FromArgb(255, 156, 187, 216));
OpenStreetMapOverlay openStreetMapOverlay = new OpenStreetMapOverlay();
openStreetMapOverlay.CacheDirectory = @"E:\Temp\MapSuiteTemp";
wpfMap1.Overlays.Add("OpenStreetMap", openStreetMapOverlay);
wpfMap1.CurrentExtent = new RectangleShape(-620000, 6720000, 870000, 5120000);
wpfMap1.Refresh();