Example #1
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();
        }
Example #2
0
 private async void buttonz_Click(object sender, RoutedEventArgs e)
 {
     await ZoomSimulator.RunZoomSimulation(UseWheel?SimulationMode.Wheel : SimulationMode.SetView);
 }