Esempio n. 1
0
 void map1_CenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     if (markerLayer != null && (markerLayer.Count > 0))
     {
         markerLayer[0].GeoCoordinate = map1.Center;
     }
 }
Esempio n. 2
0
 private void mapacentral_CenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     //Reservas.IsEnabled = false;
     //pedidos.IsEnabled = false;
     //carta.IsEnabled = false;
     //VIP.IsEnabled = false;
     //listacercanos.Header = "";
 }
Esempio n. 3
0
 private void MyMap_CenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     foreach (var obj in listPushpin)
     {
         obj.pushPinHeader.Opacity = 0;
         obj.box.Opacity           = 0;
         obj.pushpin.Opacity       = 100;
     }
 }
Esempio n. 4
0
 /// <summary>
 /// when map center changed event handler.  Turns off the centermaplock.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void MyMap_CenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     if(!App.ViewChanging && App.GeoCoordinate != null)
     {
         App.CenterMapLock = false;
     }
     else
     {
         App.CenterMapLock = true;
     }
 }
 private void MainMap_OnCenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     if (geolocator.LocationStatus == PositionStatus.Ready)
     {
         if (StaticMethod.Distance(currCoordinate, MainMap.Center) > 0.2)
         {
             HeadingPath.Visibility    = Visibility.Collapsed;
             SecretTestPath.Visibility = Visibility.Collapsed;
         }
         else
         {
             HeadingPath.Visibility    = Visibility.Visible;
             SecretTestPath.Visibility = Visibility.Visible;
         }
     }
 }
Esempio n. 6
0
 /// <summary>
 /// Mỗi khi map thay đổi, hai biến currentLat và currentLng sẽ được cập nhật
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void map_DriverMap_CenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     currentLat = map_DriverMap.Center.Latitude;
     currentLng = map_DriverMap.Center.Longitude;
 }
Esempio n. 7
0
 private void OnMapCenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     this.UpdateMapView();
 }
Esempio n. 8
0
 void MapControl_CenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     App.ViewModel.SettingsModel.MapCenter = MapControl.Center;
     SetUsers();
 }
 void map1_CenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     if(markerLayer != null && (markerLayer.Count > 0)){
         markerLayer[0].GeoCoordinate = map1.Center;
     }
 }
Esempio n. 10
0
 private void MapCenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     Center = new Coordinate(AssociatedObject.Center.Latitude, AssociatedObject.Center.Longitude);
 }
Esempio n. 11
0
 private void map1_CenterChanged_1(object sender, MapCenterChangedEventArgs e)
 {
     Debug.WriteLine("Map Center changed");
 }
Esempio n. 12
0
 private void map1_CenterChanged_1(object sender, MapCenterChangedEventArgs e)
 {
     Debug.WriteLine("Map Center changed");
 }
 void MapControl_CenterChanged(object sender, MapCenterChangedEventArgs e)
 {
     App.ViewModel.SettingsModel.MapCenter = MapControl.Center;
     SetUsers();
 }
Esempio n. 14
0
        private void MyMap_CenterChanged(object sender, MapCenterChangedEventArgs e)
        {

        }