public void onPositionUpdated(
            LocationMethod method, GeoPosition position, boolean isMapMatched) {
          // set the center only when the app is in the foreground
          // to reduce CPU consumption

          map.setCenter(position.getCoordinate(), Map.Animation.BOW);

          Src =
              new LocationCoord(
                  position.getCoordinate().getLatitude(), position.getCoordinate().getLongitude());
          map.setZoomLevel((map.getMaxZoomLevel() + map.getMinZoomLevel()));
        }