private void WpfMap_Loaded(object sender, RoutedEventArgs e) { Map1.MapUnit = GeographyUnit.Meter; //Map1.MapUnit = GeographyUnit.DecimalDegree; Map1.ZoomLevelSet = new GoogleMapsZoomLevelSet(); var pointLayer = new InMemoryMarkerOverlay(); pointLayer.Columns.Add(new FeatureSourceColumn("HOLEID")); var uri = new Uri(@"D:\Temp\AQUA.png"); pointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle.ImageSource = new BitmapImage(uri); pointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle.Width = 20; pointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle.Height = 34; pointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle.YOffset = -17; pointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle.ToolTip = "This is [#HOLEID#]."; pointLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; pointLayer.FeatureSource.BeginTransaction(); var pointShape = new PointShape(60950.578, 10671.408); var pointFeature = new Feature(pointShape); pointFeature.ColumnValues["HOLEID"] = "1"; pointLayer.FeatureSource.AddFeature(pointFeature); pointShape = new PointShape(60950.894, 10675.447); pointFeature = new Feature(pointShape); pointFeature.ColumnValues["HOLEID"] = "2"; pointLayer.FeatureSource.AddFeature(pointFeature); pointShape = new PointShape(60950.928, 10680.07); pointFeature = new Feature(pointShape); pointFeature.ColumnValues["HOLEID"] = "3"; pointLayer.FeatureSource.AddFeature(pointFeature); pointLayer.FeatureSource.CommitTransaction(); var scaleLineAdornmentLayer = new ScaleLineAdornmentLayer(); Map1.AdornmentOverlay.Layers.Add("ScaleLineAdornmentLayer", scaleLineAdornmentLayer); Map1.Overlays.Add(pointLayer); Map1.CurrentExtent = pointShape.GetBoundingBox(); Map1.Refresh(); }