private void ZoomInAndZoomOut_Load(object sender, EventArgs e) { winformsMap1.MapUnit = GeographyUnit.DecimalDegree; winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean); winformsMap1.CurrentExtent = new RectangleShape(-139.2, 92.4, 120.9, -93.2); WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay(); winformsMap1.Overlays.Add("WorldMapKitWmsOverlay", worldMapKitDesktopOverlay); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(800000)); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(300000)); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(90000)); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(70000)); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(50000)); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(40000)); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(25000)); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(15000)); winformsMap1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(7500)); winformsMap1.Refresh(); } private void btnZoomIn_Click(object sender, EventArgs e) { winformsMap1.CurrentScale = 800000; winformsMap1.Refresh(); }