diff options
author | Brad Leege <bleege@gmail.com> | 2015-08-05 12:25:15 -0500 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-08-05 12:25:15 -0500 |
commit | c84a6fbec98741cd7499ccfc9b39dd69d27114f2 (patch) | |
tree | fa95580a49d9cb46d3705a542962b97445a134e8 | |
parent | 6e04804586f1c62e1abeea386f6a134435c719e2 (diff) | |
download | qtlocation-mapboxgl-c84a6fbec98741cd7499ccfc9b39dd69d27114f2.tar.gz |
#1940 -Adding menu item controls for compass on / off. Removing location_marker assets from App as they're now only in the SDK.
14 files changed, 11 insertions, 0 deletions
diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxgl/testapp/MainActivity.java b/android/java/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxgl/testapp/MainActivity.java index 6b407acbd2..df524f9905 100644 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxgl/testapp/MainActivity.java +++ b/android/java/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxgl/testapp/MainActivity.java @@ -247,6 +247,12 @@ public class MainActivity extends ActionBarActivity { case R.id.action_markers: // Toggle markers toggleMarkers(!mIsMarkersOn); + return true; + + case R.id.action_compass: + // Toggle compass + mapView.setCompassEnabled(!mapView.isCompassEnabled()); + return true; default: return super.onOptionsItemSelected(item); diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-hdpi/ic_explore_white_24dp.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-hdpi/ic_explore_white_24dp.png Binary files differnew file mode 100644 index 0000000000..69ac91f7b0 --- /dev/null +++ b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-hdpi/ic_explore_white_24dp.png diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-hdpi/location_marker.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-hdpi/location_marker.png Binary files differdeleted file mode 100644 index f3a57845b7..0000000000 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-hdpi/location_marker.png +++ /dev/null diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-ldpi/location_marker.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-ldpi/location_marker.png Binary files differdeleted file mode 100644 index 94a7837817..0000000000 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-ldpi/location_marker.png +++ /dev/null diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-mdpi/ic_explore_white_24dp.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-mdpi/ic_explore_white_24dp.png Binary files differnew file mode 100644 index 0000000000..17f1883a0e --- /dev/null +++ b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-mdpi/ic_explore_white_24dp.png diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-mdpi/location_marker.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-mdpi/location_marker.png Binary files differdeleted file mode 100644 index d8c1563880..0000000000 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-mdpi/location_marker.png +++ /dev/null diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xhdpi/ic_explore_white_24dp.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xhdpi/ic_explore_white_24dp.png Binary files differnew file mode 100644 index 0000000000..cfe12105fb --- /dev/null +++ b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xhdpi/ic_explore_white_24dp.png diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xhdpi/location_marker.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xhdpi/location_marker.png Binary files differdeleted file mode 100644 index 157c48adea..0000000000 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xhdpi/location_marker.png +++ /dev/null diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxhdpi/ic_explore_white_24dp.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxhdpi/ic_explore_white_24dp.png Binary files differnew file mode 100644 index 0000000000..599711f992 --- /dev/null +++ b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxhdpi/ic_explore_white_24dp.png diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxhdpi/location_marker.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxhdpi/location_marker.png Binary files differdeleted file mode 100644 index ccc56f6601..0000000000 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxhdpi/location_marker.png +++ /dev/null diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/ic_explore_white_24dp.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/ic_explore_white_24dp.png Binary files differnew file mode 100644 index 0000000000..33031d077a --- /dev/null +++ b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/ic_explore_white_24dp.png diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/location_marker.png b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/location_marker.png Binary files differdeleted file mode 100644 index 2318f1b7cc..0000000000 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/location_marker.png +++ /dev/null diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_main.xml b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_main.xml index f16522d99c..b682fe0cb4 100644 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_main.xml +++ b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_main.xml @@ -12,4 +12,8 @@ android:icon="@drawable/ic_action_location_searching" android:title="@string/action_gps" app:showAsAction="ifRoom" /> + <item android:id="@+id/action_compass" + android:icon="@drawable/ic_explore_white_24dp" + android:title="@string/action_compass" + app:showAsAction="ifRoom"/> </menu> diff --git a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml index 95419a5a67..0022fe0455 100644 --- a/android/java/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml +++ b/android/java/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml @@ -4,6 +4,7 @@ <string name="app_name">Mapbox GL</string> <string name="action_gps">Toggle GPS location</string> + <string name="action_compass">Toggle Compass</string> <string name="action_debug">Toggle debug mode</string> |