void locationwatcher_PositionChanged(object sender, AGeoPositionChangedEventArgs e)
 {
     if (mylocation == null)
     {
         mylocation = new MMarker()
         {
             LngLat = e.LngLat
         };
     }
     this.LatitudeTextBlock.Text  = e.LngLat.LatY.ToString();
     this.LongitudeTextBlock.Text = e.LngLat.LngX.ToString();
     Dataclass.latX = e.LngLat.LatY;
     Dataclass.lonY = e.LngLat.LngX;
 }
 void amapGeoCoordinateWatcher_PositionChanged(object sender, AGeoPositionChangedEventArgs e)
 {
     if (mk == null)
     {
         mk = new MMarker()
         {
             LngLat = e.LngLat
         };
     }
     if (!map.Children.Contains(mk))
     {
         map.Children.Add(mk);
     }
     else
     {
         mk.LngLat = e.LngLat;
     }
     map.Center = e.LngLat;
 }
Beispiel #3
0
 void amapGeoCoordinateWatcher_PositionChanged(object sender, AGeoPositionChangedEventArgs e)
 {
     start = e.LngLat;
     (App.Current as App).CurrentLocation = start;
 }
Beispiel #4
0
 void amapGeoCoordinateWatcher_PositionChanged(object sender, AGeoPositionChangedEventArgs e)
 {
     start = e.LngLat;
     (App.Current as App).CurrentLocation = start;
 }