summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2018-10-25 15:40:54 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2018-10-25 18:12:10 +0200
commitfdd8b54900d963d01f9b643fa7edd9e988eb7785 (patch)
treecab95fa1ad74b57713b3cb0af174375f7f8ad743 /platform
parent2337a6311c73f69c92a5dce3565ac159b5f3fe25 (diff)
downloadqtlocation-mapboxgl-fdd8b54900d963d01f9b643fa7edd9e988eb7785.tar.gz
[android] deprecated ZoomButtonsController support
Diffstat (limited to 'platform')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java4
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java3
2 files changed, 7 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java
index 3fac981fe5..06f714c1f8 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java
@@ -13,6 +13,7 @@ import android.support.annotation.Nullable;
import android.support.v4.content.res.ResourcesCompat;
import android.util.AttributeSet;
import android.view.Gravity;
+
import com.mapbox.mapboxsdk.R;
import com.mapbox.mapboxsdk.camera.CameraPosition;
import com.mapbox.mapboxsdk.constants.MapboxConstants;
@@ -497,7 +498,10 @@ public class MapboxMapOptions implements Parcelable {
*
* @param enabled True and gesture will be enabled
* @return This
+ * @deprecated {@link android.widget.ZoomButtonsController}, this functionality and UI is better handled with
+ * custom views and layouts rather than a dedicated zoom-control widget.
*/
+ @Deprecated
public MapboxMapOptions zoomControlsEnabled(boolean enabled) {
zoomControlsEnabled = enabled;
return this;
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
index 32fc0589d1..16f42c9b0f 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
@@ -732,7 +732,10 @@ public final class UiSettings {
* By default the zoom controls are enabled if the device is only single touch capable;
*
* @param zoomControlsEnabled If true, the zoom controls are enabled.
+ * @deprecated {@link android.widget.ZoomButtonsController}, this functionality and UI is better handled with
+ * custom views and layouts rather than a dedicated zoom-control widget.
*/
+ @Deprecated
public void setZoomControlsEnabled(boolean zoomControlsEnabled) {
this.zoomControlsEnabled = zoomControlsEnabled;
}