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"); }
public static MapView getInstance() { return instance != null ? instance : (instance = new MapView()); }