Beispiel #1
0
 public MapView()
 {
     Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = LanguageControl.GetInstance().lang;
     this.InitializeComponent();
     instance = this;
     Map.ShapeLayers.Add(walkedPathLayer);
     zoomToLocation();
     flyout = new MapViewSettingsFlyout(this);
     sightFlyout = new SightInfoFlyout();
     turorialViewFlyout = new TutorialViewFlyout();
     //flyout.Show();
     Uri uri = new Uri("ms-appx:///" + "Assets/agslogo2.png");
     Uri uri2 = new Uri("ms-appx:///" + "Assets/VVVLogo.png");
     AgsLogo.Source = new BitmapImage(uri);
     VVVLogo.Source = new BitmapImage(uri2);
     InfoButton.Icon = new SymbolIcon { Symbol = Symbol.MapPin };
     //System.Diagnostics.Debug.WriteLine("Test");
 }
Beispiel #2
0
        public void refresh()
        {
            Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = LanguageControl.GetInstance().lang;
            flyout = new MapViewSettingsFlyout(this);
            sightFlyout = new SightInfoFlyout();

            ResourceLoader rl = new ResourceLoader();
            AppbarButton.Label = rl.GetString("AppbarButtonLabel");
            InfoButton.Label = rl.GetString("InfoButtonLabel");
            TutorialButton.Label = rl.GetString("TutorialButtonLabel");
            legendaBezochteBZW.Text = rl.GetString("Legend11");
            legendaOnbezochteBZW.Text = rl.GetString("Legend21");
            legendaRoute.Text = rl.GetString("Legenda31");
            mc.createSights();
        }