void MyMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e) { if (!_mapInited && !Rectangle2D.IsNullOrEmpty(e.NewViewBounds)) { _mapInited = true; MyMap.ZoomToLevel(8, new Point2D(12969134.4929308, 4863396.19924929)); _compassFeature = new Feature(); _compassFeature.Geometry = new GeoPoint(Point2D.Empty); CompassMarkerStyle style = new CompassMarkerStyle(); style.Height = 40; style.Width = 30; style.Rotation = 0; _compassFeature.Style = style; _fLayer.AddFeature(_compassFeature); _needPan = true; _watcher.Start(); } }
void MyMap_ViewBoundsChanged(object sender, ViewBoundsEventArgs e) { }