private void WpfMap_Loaded(object sender, RoutedEventArgs e) { Map1.Overlays.Add(new GoogleMapsOverlay() { TileType = TileType.SingleTile}); Map1.MapTools.MouseCoordinate.IsEnabled = true; Map1.CurrentExtent = new RectangleShape(-10000000, 10000000, 10000000, -10000000); Map1.MapUnit = GeographyUnit.Meter; Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel01.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel02.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel03.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel04.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel05.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel06.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel07.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel08.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel09.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel10.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel11.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel12.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel13.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel14.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel15.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel16.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel17.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel18.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel19.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel20.Scale)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel20.Scale / 2)); Map1.ZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(Map1.ZoomLevelSet.ZoomLevel20.Scale / 4)); Map1.Refresh(); }