Beispiel #1
0
 public void OnMapLoadedChanged(MapLoaded mapLoaded)
 {
     this.MapControl = gisOperations.GetMap();
     isMapLoaded = true;
     this.ApplicationName = configuration.GetApplication();
     this.ApplicationLogo =
         new BitmapImage(new Uri(configuration.GetApplicationConfig().ApplicationLogo, UriKind.Absolute));
     DelegateCommand<object> delegateCommand = this._queryCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._zoomInCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._zoomOutCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._infoCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._routeClearCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._addressLocatorCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._routeStartCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._infoCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._addLayerCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._removeLayerCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._panCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     delegateCommand = this._bookmarkCommand as DelegateCommand<object>;
     delegateCommand.RaiseCanExecuteChanged();
     this.ExtentInfo =
     "1:" + gisOperations.Resolution2Scale(gisOperations.GetMap().Resolution).ToString("########");
 }
Beispiel #2
0
 private void Map_loaded(object sender, RoutedEventArgs e)
 {
     mapView.map.Loaded -= Map_loaded;
     // Send information that the map is initilized
     MapLoaded mapLoaded = new MapLoaded() { IsLoaded = true };
     mapLoadedEvent.Publish(mapLoaded);
     this.RaisePropertyChanged(() => this.InitialExtent);
 }