Exemplo n.º 1
0
 public ZoomSimulator(ViewpointProvider viewpointProvider, ZoomProviderBase zoomProvider, IMouseSim mouseSimulator)
 {
     _viewpointProvider = viewpointProvider;
     Provider           = zoomProvider;
     _mouseSimulator    = mouseSimulator;
     Items    = new ObservableCollection <LevelDetails>();
     _logFile = Path.Combine(MainWindow.AssemblyDirectory, $"ZoomLog-{zoomProvider.RuntimeVersion}.csv");
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            DataContext = this;
            InitializeComponent();
            _configuration = new InitConfig();

            //string url = "https://services2.geodataonline.no/arcgis/rest/services/Geocache_UTM33_EUREF89/GeocacheBasis/MapServer";
            ////url = "https://services.geodataonline.no/arcgis/rest/services/Geocache_WMAS_WGS84/GeocacheBasis/MapServer";
            //var imageryTiledLayer = new ArcGISTiledLayer(new Uri(url));
            //// create a basemap from the tiled layer

            //_map.Basemap = new Basemap(imageryTiledLayer);
            //MyMapView.Map = _map;

            _viewpointProvider             = new ViewpointProvider(_configuration.Configuration.ActualViewpoints);
            ZoomSimulator                  = new ZoomSimulator(_viewpointProvider, new ZoomProvider(MyMapView), this);
            ZoomSimulator.ProcessFinished += ZoomSimulator_ProcessFinished;
            LegacyZoomProvider lzp = new LegacyZoomProvider(LegacyMap);

            LegacyZoomSimulator = new ZoomSimulator(_viewpointProvider, lzp, this);
            LegacyZoomSimulator.ProcessFinished += LegacyZoomSimulator_ProcessFinished;

            InitializeMap();
        }