Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 static LocatorAndBorder()
 {
     Instance = new LocatorAndBorder();
 }
Exemplo n.º 3
0
 public FeatureSelectUI()
 {
     _locator = LocatorAndBorder.Instance;
 }