public MainPage() { coreWindow = CoreWindow.GetForCurrentThread(); coreWindow.VisibilityChanged += CoreWindow_VisibilityChanged; this.InitializeComponent(); viewModel = new PointOfInterestsManager(); MapIcon mapIcon1 = new MapIcon(); }
private void MyMap_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e) { myMap.Center = new Geopoint(new BasicGeoposition() { //Geopoint for Seattle Latitude = 47.604, Longitude = -122.329 }); myMap.ZoomLevel = 16; poiManager = new PointOfInterestsManager(); }