public CustomGeoCircle() { InitializeComponent(); double[] resolutions = new double[14]; double resolution = 0.28526148969889065; for (int i = 0; i < 14; i++) { resolutions[i] = resolution; resolution /= 2; } MyMap.Resolutions = resolutions; FeaturesLayer featuresLayer = MyMap.Layers["MyFeaturesLayer"] as FeaturesLayer; Feature feature = new Feature(); GeoCircle circle = new GeoCircle(); circle.Center = new GeoPoint(0, 0); circle.Radius = 20; feature.Geometry = circle; featuresLayer.Features.Add(feature); _layer = MyMap.Layers["tiledLayer"] as TiledDynamicRESTLayer; _layer.LocalStorage = new OfflineStorage("World"); _layer.Failed += CustomGeoCircle_Failed; this.Unloaded += CustomGeoCircle_Unloaded; }
/// <summary>${core_GeoCircle_method_clone_D}</summary> public override Geometry Clone() { GeoCircle region = new GeoCircle(this.center, this.radius); return region; }