diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2015-12-11 18:21:54 -0800 |
---|---|---|
committer | Tobrun <tobrun.van.nuland@gmail.com> | 2015-12-12 09:08:58 -0800 |
commit | 7117ec503233bad1aaf4f82c57b184f4e73c3b56 (patch) | |
tree | 8d70e83babd926a3bc5ba30a7e2c87a661e60056 /android | |
parent | 9af7594d612fd8d338e3bc85217cdb84a2caeac8 (diff) | |
download | qtlocation-mapboxgl-7117ec503233bad1aaf4f82c57b184f4e73c3b56.tar.gz |
[android] #3267 limit user input as an example to VisibleCoordinateBounds
Diffstat (limited to 'android')
-rw-r--r-- | android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/VisibleCoordinateBoundsActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/VisibleCoordinateBoundsActivity.java b/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/VisibleCoordinateBoundsActivity.java index f245aa1075..2dfdaba41d 100644 --- a/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/VisibleCoordinateBoundsActivity.java +++ b/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/VisibleCoordinateBoundsActivity.java @@ -56,6 +56,11 @@ public class VisibleCoordinateBoundsActivity extends AppCompatActivity { .setAction(android.R.string.ok, new View.OnClickListener() { @Override public void onClick(View v) { + // Disable UserInput + mMapView.setScrollEnabled(false); + mMapView.setZoomEnabled(false); + + // Reposition coordinate bounds float margin = getResources().getDimension(R.dimen.coordinatebounds_margin); mMapView.setVisibleCoordinateBounds(new CoordinateBounds(losAngeles, newYork), new RectF(margin, 0, margin, 0), true); } |