Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - deprecate MyLocationView in favor of LocationLayer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Aug 15, 2017
1 parent f46eea7 commit 3a3a072
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,10 @@ public UiSettings getUiSettings() {
* Gets the tracking interface settings for the map.
*
* @return the TrackingSettings asssociated with this map
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public TrackingSettings getTrackingSettings() {
return trackingSettings;
}
Expand All @@ -561,7 +564,10 @@ public TrackingSettings getTrackingSettings() {
* Gets the settings of the user location for the map.
*
* @return the MyLocationViewSettings associated with this map
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public MyLocationViewSettings getMyLocationViewSettings() {
return myLocationViewSettings;
}
Expand Down Expand Up @@ -1810,7 +1816,10 @@ public OnInfoWindowCloseListener getOnInfoWindowCloseListener() {
* Returns the status of the my-location layer.
*
* @return True if the my-location layer is enabled, false otherwise.
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public boolean isMyLocationEnabled() {
return trackingSettings.isMyLocationEnabled();
}
Expand All @@ -1825,7 +1834,10 @@ public boolean isMyLocationEnabled() {
* android.Manifest.permission#ACCESS_COARSE_LOCATION or android.Manifest.permission#ACCESS_FINE_LOCATION.
*
* @param enabled True to enable; false to disable.
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public void setMyLocationEnabled(boolean enabled) {
trackingSettings.setMyLocationEnabled(enabled);
}
Expand All @@ -1834,8 +1846,11 @@ public void setMyLocationEnabled(boolean enabled) {
* Returns the currently displayed user location, or null if there is no location data available.
*
* @return The currently displayed user location.
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Nullable
@Deprecated
public Location getMyLocation() {
return trackingSettings.getMyLocation();
}
Expand All @@ -1846,7 +1861,10 @@ public Location getMyLocation() {
*
* @param listener The callback that's invoked when the user clicks on a marker.
* To unset the callback, use null.
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public void setOnMyLocationChangeListener(@Nullable MapboxMap.OnMyLocationChangeListener
listener) {
trackingSettings.setOnMyLocationChangeListener(listener);
Expand All @@ -1856,7 +1874,10 @@ public void setOnMyLocationChangeListener(@Nullable MapboxMap.OnMyLocationChange
* Replaces the location source of the my-location layer.
*
* @param locationSource A {@link LocationEngine} location source to use in the my-location layer.
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public void setLocationSource(@Nullable LocationEngine locationSource) {
trackingSettings.setLocationSource(locationSource);
}
Expand All @@ -1866,7 +1887,10 @@ public void setLocationSource(@Nullable LocationEngine locationSource) {
*
* @param listener The callback that's invoked when the location tracking mode changes.
* To unset the callback, use null.
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public void setOnMyLocationTrackingModeChangeListener(
@Nullable MapboxMap.OnMyLocationTrackingModeChangeListener listener) {
trackingSettings.setOnMyLocationTrackingModeChangeListener(listener);
Expand All @@ -1877,7 +1901,10 @@ public void setOnMyLocationTrackingModeChangeListener(
*
* @param listener The callback that's invoked when the bearing tracking mode changes.
* To unset the callback, use null.
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public void setOnMyBearingTrackingModeChangeListener(@Nullable OnMyBearingTrackingModeChangeListener listener) {
trackingSettings.setOnMyBearingTrackingModeChangeListener(listener);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@

/**
* Settings for the user location and bearing tracking of a MapboxMap.
*
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public final class TrackingSettings {

private final MyLocationView myLocationView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@
* <p>
* Use {@link MyLocationViewSettings} to manipulate the state of this view.
* </p>
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public class MyLocationView extends View {

private static final int UNDEFINED_TINT_COLOR = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@

/**
* Settings to configure the visual appearance of the MyLocationView.
* @deprecated use location layer plugin from
* https://github.com/mapbox/mapbox-plugins-android/tree/master/plugins/locationlayer instead.
*/
@Deprecated
public class MyLocationViewSettings {

private Projection projection;
Expand Down

0 comments on commit 3a3a072

Please sign in to comment.