diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2018-11-08 12:49:02 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-12-10 16:59:50 +0100 |
commit | 1374535e632c8ff40de15adacab1e1b0435cc66c (patch) | |
tree | 5bd1d42accf571f99f78dc4b6a85a95ab6d4b545 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java | |
parent | fbef604546705ffadc8cb2eb92ca9d3097d48e59 (diff) | |
download | qtlocation-mapboxgl-1374535e632c8ff40de15adacab1e1b0435cc66c.tar.gz |
[android] - cleanup old style java constants file, migrate style transition to Style.java
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java | 50 |
1 files changed, 4 insertions, 46 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java index 9c36343051..d9ee460ec1 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java @@ -34,7 +34,7 @@ import com.mapbox.mapboxsdk.camera.CameraPosition; import com.mapbox.mapboxsdk.camera.CameraUpdate; import com.mapbox.mapboxsdk.camera.CameraUpdateFactory; import com.mapbox.mapboxsdk.constants.MapboxConstants; -import com.mapbox.mapboxsdk.constants.Style; +import com.mapbox.mapboxsdk.maps.Style; import com.mapbox.mapboxsdk.geometry.LatLng; import com.mapbox.mapboxsdk.geometry.LatLngBounds; import com.mapbox.mapboxsdk.location.LocationComponent; @@ -76,13 +76,13 @@ public final class MapboxMap { @Nullable private MapboxMap.OnFpsChangedListener onFpsChangedListener; - private com.mapbox.mapboxsdk.maps.Style style; + private Style style; MapboxMap(NativeMapView map, Transform transform, UiSettings ui, Projection projection, OnGesturesManagerInteractionListener listener, AnnotationManager annotations, CameraChangeDispatcher cameraChangeDispatcher, MapChangeReceiver mapChangeReceiver) { this.nativeMapView = map; - this.style = new com.mapbox.mapboxsdk.maps.Style(nativeMapView); + this.style = new Style(nativeMapView); this.uiSettings = ui; this.projection = projection; this.annotationManager = annotations.bind(this); @@ -104,7 +104,7 @@ public final class MapboxMap { setPrefetchesTiles(options); } - public com.mapbox.mapboxsdk.maps.Style getStyle(){ + public Style getStyle(){ return style; } @@ -213,48 +213,6 @@ public final class MapboxMap { // Style /** - * <p> - * Get the animation duration for style changes. - * </p> - * The default value is zero, so any changes take effect without animation. - * - * @return Duration in milliseconds - */ - public long getTransitionDuration() { - return nativeMapView.getTransitionDuration(); - } - - /** - * Set the animation duration for style changes. - * - * @param durationMs Duration in milliseconds - */ - public void setTransitionDuration(long durationMs) { - nativeMapView.setTransitionDuration(durationMs); - } - - /** - * <p> - * Get the animation delay for style changes. - * </p> - * The default value is zero, so any changes begin to animate immediately. - * - * @return Delay in milliseconds - */ - public long getTransitionDelay() { - return nativeMapView.getTransitionDelay(); - } - - /** - * Set the animation delay for style changes. - * - * @param delayMs Delay in milliseconds - */ - public void setTransitionDelay(long delayMs) { - nativeMapView.setTransitionDelay(delayMs); - } - - /** * Sets tile pre-fetching from MapboxOptions. * * @param options the options object |