Hi all,
Since the latest build of MSWE, I've been having a difficult time sifting through the changes in the layers. Right now, for instance, I'm using ShapeFileFeatureLayers, where before I would use ShapeFileLayers. As I understand it, the changes between these two types are minimal, as both are static overlays, correct? My large problem comes in with the MarkerLayer changes. Previously, I could create a MarkerLayer, and add it to a map as a MarkerLayer, instead of an InMemoryLayer. Now, since it seems I need to use InMemoryMakerLayer, I have to add the layer as a CustomOverlay, which seems to be making my StaticOverlays not work at all. Is there something I'm doing wrong, or are the changes intentionally doing this? Code follows:
MainMap.MapUnit = GeographyUnit.DecimalDegree;
MainMap.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#B3C6D4"));
MainMap.RestrictedExtent = new RectangleShape(new PointShape(-180, 90), new PointShape(180, -90));
MainMap.MapTools.PanZoomBar.Enabled = false;
MainMap.MapTools.Logo.Enabled = false;
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer((@"D:\Program Files\ThinkGeo\Map Suite Web Full Edition 3.0 (BETA)\Samples\CSharp Samples\SampleData\World\cntry02.shp"));
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
MainMap.StaticOverlay.Layers.Add(worldLayer);
MarkerOverlay markerOverlay = new InMemoryMarkerOverlay("Markers");
MainMap.CustomOverlays.Add(markerOverlay);
MainMap.CurrentExtent = new RectangleShape(-180, 90, 180, -90);