private void WpfMap_Loaded(object sender, RoutedEventArgs e) { Map1.MapUnit = GeographyUnit.DecimalDegree; ShapeFileFeatureLayer shpLayer = new ShapeFileFeatureLayer(@"..\..\sampledata\data\majorcities.shp"); shpLayer.Open(); shpLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; ValueStyle valueStyle = new ValueStyle("AREANAME", new System.Collections.ObjectModel.Collection()); valueStyle.ValueItems.Add(new ValueItem("New York", new PointStyle(new GeoFont("Arial", 20), 78, new GeoSolidBrush(GeoColor.StandardColors.Red)))); valueStyle.ValueItems.Add(new ValueItem("Miami", new PointStyle(new GeoFont("Arial", 20), 77, new GeoSolidBrush(GeoColor.StandardColors.Red)))); shpLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(valueStyle); LayerOverlay ov = new LayerOverlay(); ov.Layers.Add(shpLayer); Map1.Overlays.Add(ov); Map1.CurrentExtent = shpLayer.GetBoundingBox(); Map1.Refresh(); }