public void OnLocationChanged(LocationChangedEvent e) {

            if (e == null) {
                return;
            }

            MapControl target;
            mMapControl.TryGetTarget(out target);
            
            if (target == null) {
                // the map is not longer present
                // this overlay is not longer needed
                Unregister();
                return;
            }

            if (mMarker != null) {
                target.Children.Remove(mMarker);
            }

            mMarker = CreateMarker();
            target.Children.Add(mMarker);
            MapControl.SetLocation(mMarker, e.Args.Position.Coordinate.Point);
            MapControl.SetNormalizedAnchorPoint(mMarker, new Point(0.5, 0.5));
        }
 public void OnLocationChanged(LocationChangedEvent e) {
     if (!locationInitialed) {
         locationInitialed = true;
         mapControl.ZoomLevel = 17;
         mapControl.Center = e.Args.Position.Coordinate.Point;
     }
 }
 public void OnLocationChanged(LocationChangedEvent e) => SetData(mItems);
        private void Geolocator_PositionChanged(Geolocator sender, PositionChangedEventArgs args) {
            Log.d("NewLocation: " + args?.Position?.Coordinate?.Point?.Position.Latitude+":"+args?.Position?.Coordinate?.Point?.Position.Longitude);

            if (!DataHolder.Instance.HadData) {
                DataHolder.Instance.HadData = true;
                /*var task = new NodesRequest(GeoMath.CalculateBoundingBox(args.Position.Coordinate.Point, 0.8)).Query();
                task.ContinueWith((items) => {
                    DataHolder.Instance.Nodes = items.Result;
                });*/
            }

            LocationChangedEvent e = new LocationChangedEvent() {
                Sender = sender,
                Args = args
            };
            LastLocationEvent = e;
            BusProvider.DefaultInstance.Post(e);
        }