I’m upgrading WebEdition from 9.x to 10.x. My usages of ThinkGeo are (1) I have an interactive map with the Map control, and (2) I also let the user generate an image to a static image file, which happens in my C# code not inside the Map control, which I used MapEngine for. Both of these have an IsoLine layer and marker layers, and labels. I allow the user to switch between Google, Bing, and OpenStreetMaps background layers.
I removed WebEdition.dll, and other references from my projects. Then I added Nuget packages for the following:
MapSuiteWebForWebForms-BareBone
ThinkGeo.MapSuite
ThinkGeo.MapSuite.Layers.Adornments
ThinkGeo.MapSuite.Layers.BingMaps
ThinkGeo.MapSuite.Layers.GoogleMaps
ThinkGeo.MapSuite.Layers.OpenStreetMap
ThinkGeo.MapSuite.Layers.ProductCenter (this was added automatically as dependency)
For the most part, I was able to get most of my code compiling by changing namespaces as mentioned in the upgrade guide (http://wiki.thinkgeo.com/wiki/map_suite_10_upgrade_guide).
However, I can’t figure out the following issues:
-
ClassBreakStyle and ClassBreak classes. Where are these now?
-
MapEngine. I realize this class has been removed. But how do I achieve the same functionality? See my example code below:
var mapEngine = new MapEngine(); var layer = GetBackgroundLayer(); mapEngine.CurrentExtent = extent; mapEngine.StaticLayers.Add(layer); // .... a bunch of code to generate isoLineLayer and labelLayer mapEngine.StaticLayers.Add(isoLineLayer); mapEngine.StaticLayers.Add(labelLayer); var bitmap = new Bitmap(width, height); mapEngine.OpenAllLayers(); mapEngine.DrawStaticLayers(bitmap, GeographyUnit.Meter); mapEngine.DrawDynamicLayers(bitmap, GeographyUnit.Meter); mapEngine.CloseAllLayers();
Please let me know if I’ve imported the correct Nuget packages, of if I’m missing something. Thank you.