void SeaMap_Loaded(object sender, RoutedEventArgs e) { if (WindowUtil.IsDesingMode()) { return; } if (this.RenderSize.Width == 0 || this.RenderSize.Height == 0) { return; } this.Focus(); if (_render.InitCompletion.IsCompleted) { return; } var defaultData = DefaultConfigInfo.Instance.Default; Locator.Locate(defaultData.Scale, new MapPoint(defaultData.Lon, defaultData.Lat)); _locatorAndBorder = LocatorAndBorder.Instance; _locatorAndBorder.InitLocator(Locator); Locator.OnMapRefreshed += Locator_OnMapRefreshed; }
static LocatorAndBorder() { Instance = new LocatorAndBorder(); }
public FeatureSelectUI() { _locator = LocatorAndBorder.Instance; }