Update Android Dependencies, use maplibre-gestures-android (#2714)
This commit is contained in:
@@ -10,9 +10,9 @@ import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import com.mapbox.android.gestures.AndroidGesturesManager;
|
||||
import com.mapbox.android.gestures.MoveGestureDetector;
|
||||
import com.mapbox.android.gestures.RotateGestureDetector;
|
||||
import org.maplibre.android.gestures.AndroidGesturesManager;
|
||||
import org.maplibre.android.gestures.MoveGestureDetector;
|
||||
import org.maplibre.android.gestures.RotateGestureDetector;
|
||||
import org.maplibre.android.location.modes.CameraMode;
|
||||
import org.maplibre.android.maps.MapLibreMap;
|
||||
import org.maplibre.android.maps.Transform;
|
||||
|
||||
@@ -15,7 +15,7 @@ import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.StyleRes;
|
||||
|
||||
import com.mapbox.android.gestures.AndroidGesturesManager;
|
||||
import org.maplibre.android.gestures.AndroidGesturesManager;
|
||||
|
||||
import org.maplibre.android.R;
|
||||
import org.maplibre.android.maps.MapLibreMap;
|
||||
@@ -730,7 +730,7 @@ public class LocationComponentOptions implements Parcelable {
|
||||
* like zooming in and out, without breaking tracking.
|
||||
* <p>
|
||||
* <strong>Note</strong>: If set to true, this can overwrite some of the gesture thresholds
|
||||
* and the custom {@link com.mapbox.android.gestures.AndroidGesturesManager} that was set with
|
||||
* and the custom {@link org.maplibre.android.gestures.AndroidGesturesManager} that was set with
|
||||
* {@link MapLibreMap#setGesturesManager(AndroidGesturesManager, boolean, boolean)}.
|
||||
*
|
||||
* @return true if gestures are adjusted when in one of the camera tracking modes, false otherwise
|
||||
@@ -1784,7 +1784,7 @@ public class LocationComponentOptions implements Parcelable {
|
||||
* like zooming in and out, without breaking tracking.
|
||||
* <p>
|
||||
* <strong>Note</strong>: This can overwrite some of the gesture thresholds
|
||||
* and the custom {@link com.mapbox.android.gestures.AndroidGesturesManager} that was set with
|
||||
* and the custom {@link org.maplibre.android.gestures.AndroidGesturesManager} that was set with
|
||||
* {@link MapLibreMap#setGesturesManager(AndroidGesturesManager, boolean, boolean)}.
|
||||
*
|
||||
* @param trackingGesturesManagement true if gestures should be adjusted when in one of the camera tracking modes,
|
||||
|
||||
@@ -15,13 +15,13 @@ import android.view.animation.DecelerateInterpolator;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.mapbox.android.gestures.AndroidGesturesManager;
|
||||
import com.mapbox.android.gestures.MoveGestureDetector;
|
||||
import com.mapbox.android.gestures.MultiFingerTapGestureDetector;
|
||||
import com.mapbox.android.gestures.RotateGestureDetector;
|
||||
import com.mapbox.android.gestures.ShoveGestureDetector;
|
||||
import com.mapbox.android.gestures.StandardGestureDetector;
|
||||
import com.mapbox.android.gestures.StandardScaleGestureDetector;
|
||||
import org.maplibre.android.gestures.AndroidGesturesManager;
|
||||
import org.maplibre.android.gestures.MoveGestureDetector;
|
||||
import org.maplibre.android.gestures.MultiFingerTapGestureDetector;
|
||||
import org.maplibre.android.gestures.RotateGestureDetector;
|
||||
import org.maplibre.android.gestures.ShoveGestureDetector;
|
||||
import org.maplibre.android.gestures.StandardGestureDetector;
|
||||
import org.maplibre.android.gestures.StandardScaleGestureDetector;
|
||||
import org.maplibre.android.R;
|
||||
import org.maplibre.android.constants.MapLibreConstants;
|
||||
import org.maplibre.android.log.Logger;
|
||||
@@ -124,7 +124,7 @@ final class MapGestureDetector {
|
||||
if (attachDefaultListeners) {
|
||||
StandardGestureListener standardGestureListener = new StandardGestureListener(
|
||||
context.getResources().getDimension(
|
||||
com.mapbox.android.gestures.R.dimen.mapbox_defaultScaleSpanSinceStartThreshold));
|
||||
org.maplibre.android.gestures.R.dimen.mapbox_defaultScaleSpanSinceStartThreshold));
|
||||
MoveGestureListener moveGestureListener = new MoveGestureListener();
|
||||
ScaleGestureListener scaleGestureListener = new ScaleGestureListener(
|
||||
context.getResources().getDimension(R.dimen.maplibre_density_constant),
|
||||
@@ -138,7 +138,7 @@ final class MapGestureDetector {
|
||||
context.getResources().getDimension(R.dimen.maplibre_angular_velocity_multiplier),
|
||||
context.getResources().getDimension(R.dimen.maplibre_minimum_angular_velocity),
|
||||
context.getResources().getDimension(
|
||||
com.mapbox.android.gestures.R.dimen.mapbox_defaultScaleSpanSinceStartThreshold));
|
||||
org.maplibre.android.gestures.R.dimen.mapbox_defaultScaleSpanSinceStartThreshold));
|
||||
ShoveGestureListener shoveGestureListener = new ShoveGestureListener();
|
||||
TapGestureListener tapGestureListener = new TapGestureListener();
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ import androidx.annotation.Nullable;
|
||||
import androidx.annotation.Size;
|
||||
import androidx.annotation.UiThread;
|
||||
|
||||
import com.mapbox.android.gestures.AndroidGesturesManager;
|
||||
import com.mapbox.android.gestures.MoveGestureDetector;
|
||||
import com.mapbox.android.gestures.RotateGestureDetector;
|
||||
import com.mapbox.android.gestures.ShoveGestureDetector;
|
||||
import com.mapbox.android.gestures.StandardScaleGestureDetector;
|
||||
import org.maplibre.android.gestures.AndroidGesturesManager;
|
||||
import org.maplibre.android.gestures.MoveGestureDetector;
|
||||
import org.maplibre.android.gestures.RotateGestureDetector;
|
||||
import org.maplibre.android.gestures.ShoveGestureDetector;
|
||||
import org.maplibre.android.gestures.StandardScaleGestureDetector;
|
||||
import org.maplibre.geojson.Feature;
|
||||
import org.maplibre.geojson.Geometry;
|
||||
import org.maplibre.android.MapStrictMode;
|
||||
|
||||
@@ -20,7 +20,7 @@ import androidx.annotation.UiThread;
|
||||
import androidx.collection.LongSparseArray;
|
||||
import timber.log.Timber;
|
||||
|
||||
import com.mapbox.android.gestures.AndroidGesturesManager;
|
||||
import org.maplibre.android.gestures.AndroidGesturesManager;
|
||||
import org.maplibre.android.MapStrictMode;
|
||||
import org.maplibre.android.MapLibre;
|
||||
import org.maplibre.android.R;
|
||||
|
||||
Reference in New Issue
Block a user