示例#1
0
        private void _gpsWatcher_PositionChanged(object sender, GeoPositionChangedEventArgs <GeoCoordinate> e)
        {
            //We just wrap the original event
            //Reason: We preserve the enableGpsProvider() and disableGpsProvider() methods from the
            //Android version
            if (OnGpsPositionChange != null)
            {
                OnGpsPositionChange(this, e);
            }

            if (LocationService.AllowTracking)
            {
                LocationService.AddToTrackedPositions(e.Position.Location);
            }
        }