Ejemplo n.º 1
0
        private async Task resetToStartViewAsync()
        {
            var converter = new Converter.ItemConverter();

            isViewRouteEnabled = false;
            movieMap.Routes.Clear();
            movieMap.Children.Clear();
            movieMap.MapElements.Clear();
            MovieManager.GetInstance.SelectedItinerary.Clear();
            clusterGenerator = new ClusteringExtension.ClusterGenerator(converter, 20);
            clusterGenerator.GenerateClusteringData(MovieManager.GetInstance.AllMovies);
            await updateViewAsync(sfcenterPoint, 12, 25, 60);

            refreshMapIcons();
        }
Ejemplo n.º 2
0
        private async Task filterIconsOnMap(string selectedString)
        {
            movieMap.MapElements.Clear();

            var asbSelectedMovies = MovieManager.GetInstance.GetMovies(selectedString);

            var converter = new Converter.ItemConverter();

            clusterGenerator = new ClusteringExtension.ClusterGenerator(converter, 20);
            clusterGenerator.GenerateClusteringData(asbSelectedMovies);

            await updateViewAsync(sfcenterPoint, 14, 45, 60);

            refreshMapIcons();
        }
Ejemplo n.º 3
0
        private async void mainPage_Loaded(object sender, RoutedEventArgs e)
        {
            await MovieManager.GetInstance.GetMoviesDataAsync();

            movieMap.MapElements.Clear();
            itineraryListView.ItemsSource = MovieManager.GetInstance.SelectedItinerary;
            //loadAllMapIcons();

            #region DEMO Make Icons Better

            var converter = new Converter.ItemConverter();
            clusterGenerator = new ClusteringExtension.ClusterGenerator(converter, 20);
            clusterGenerator.GenerateClusteringData(MovieManager.GetInstance.AllMovies);
            refreshMapIcons();

            #endregion
        }