[android] - remove deprecated emerald (#7767)
[android] - remove deprecation annoation for setStyle [android] - dismiss tracking on gesture deprecation cleanup
This commit is contained in:
@@ -23,7 +23,7 @@ public class Style {
|
||||
* constants means your map style will always use the latest version and may change as we
|
||||
* improve the style
|
||||
*/
|
||||
@StringDef( {MAPBOX_STREETS, OUTDOORS, EMERALD, LIGHT, DARK, SATELLITE, SATELLITE_STREETS})
|
||||
@StringDef( {MAPBOX_STREETS, OUTDOORS, LIGHT, DARK, SATELLITE, SATELLITE_STREETS})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface StyleUrl {
|
||||
}
|
||||
@@ -43,14 +43,6 @@ public class Style {
|
||||
*/
|
||||
public static final String OUTDOORS = "mapbox://styles/mapbox/outdoors-v9";
|
||||
|
||||
/**
|
||||
* Emerald: A versatile style, with emphasis on road networks and public transit.
|
||||
*
|
||||
* @deprecated this style has been deprecated and will be removed in future versions.
|
||||
*/
|
||||
@Deprecated
|
||||
public static final String EMERALD = "mapbox://styles/mapbox/emerald-v8";
|
||||
|
||||
/**
|
||||
* Light: Subtle light backdrop for data visualizations. Using this constant means your map
|
||||
* style will always use the latest version and may change as we improve the style.
|
||||
|
||||
@@ -824,7 +824,6 @@ public final class MapboxMap {
|
||||
* @deprecated use {@link #setStyleUrl(String)} instead with versioned url methods from {@link Style}
|
||||
*/
|
||||
@UiThread
|
||||
@Deprecated
|
||||
public void setStyle(@Style.StyleUrl String style) {
|
||||
setStyleUrl(style);
|
||||
}
|
||||
|
||||
@@ -152,17 +152,6 @@ public final class TrackingSettings {
|
||||
return myLocationView.getMyBearingTrackingMode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if the tracking modes will be dismissed when a gesture occurs.
|
||||
*
|
||||
* @return True to indicate the tracking modes will be dismissed.
|
||||
* @deprecated use @link #isAllDismissTrackingOnGestureinstead
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean isDismissTrackingOnGesture() {
|
||||
return dismissLocationTrackingOnGesture && dismissBearingTrackingOnGesture;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if all tracking modes will be dismissed when a gesture occurs.
|
||||
*
|
||||
@@ -172,17 +161,6 @@ public final class TrackingSettings {
|
||||
return dismissLocationTrackingOnGesture && dismissBearingTrackingOnGesture;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the dismissal of the tracking modes if a gesture occurs.
|
||||
*
|
||||
* @param dismissTrackingOnGesture True to dismiss the tracking modes.
|
||||
* @deprecated use @link #setDismissAllTrackingOnGesture instead
|
||||
*/
|
||||
@Deprecated
|
||||
public void setDismissTrackingOnGesture(boolean dismissTrackingOnGesture) {
|
||||
setDismissAllTrackingOnGesture(dismissTrackingOnGesture);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the dismissal of the tracking modes if a gesture occurs.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user