diff --git a/MapboxAndroidDemo/src/global/java/com/mapbox/mapboxandroiddemo/MainActivity.java b/MapboxAndroidDemo/src/global/java/com/mapbox/mapboxandroiddemo/MainActivity.java index b73be3704..83297944b 100644 --- a/MapboxAndroidDemo/src/global/java/com/mapbox/mapboxandroiddemo/MainActivity.java +++ b/MapboxAndroidDemo/src/global/java/com/mapbox/mapboxandroiddemo/MainActivity.java @@ -74,6 +74,7 @@ import com.mapbox.mapboxandroiddemo.examples.javaservices.SimplifyPolylineActivity; import com.mapbox.mapboxandroiddemo.examples.javaservices.StaticImageActivity; import com.mapbox.mapboxandroiddemo.examples.javaservices.TilequeryActivity; +import com.mapbox.mapboxandroiddemo.examples.javaservices.TurfRingActivity; import com.mapbox.mapboxandroiddemo.examples.labs.AnimatedImageGifActivity; import com.mapbox.mapboxandroiddemo.examples.labs.AnimatedMarkerActivity; import com.mapbox.mapboxandroiddemo.examples.labs.CalendarIntegrationActivity; @@ -934,6 +935,15 @@ private void initializeModels() { null, R.string.activity_java_services_tilequery_url, false, BuildConfig.MIN_SDK_VERSION)); + exampleItemModels.add(new ExampleItemModel( + R.id.nav_java_services, + R.string.activity_java_turf_ring_title, + R.string.activity_java_turf_ring_description, + new Intent(MainActivity.this, TurfRingActivity.class), + null, + R.string.activity_java_turf_ring_url, false, BuildConfig.MIN_SDK_VERSION + )); + exampleItemModels.add(new ExampleItemModel( R.id.nav_snapshot_image_generator, R.string.activity_image_generator_snapshot_notification_title, diff --git a/MapboxAndroidDemo/src/main/AndroidManifest.xml b/MapboxAndroidDemo/src/main/AndroidManifest.xml index 04e40a3e2..3ba8eb826 100644 --- a/MapboxAndroidDemo/src/main/AndroidManifest.xml +++ b/MapboxAndroidDemo/src/main/AndroidManifest.xml @@ -773,6 +773,14 @@ android:name="android.support.PARENT_ACTIVITY" android:value="com.mapbox.mapboxandroiddemo.MainActivity" /> + + + + + + + + \ No newline at end of file diff --git a/MapboxAndroidDemo/src/main/res/values/activity_strings.xml b/MapboxAndroidDemo/src/main/res/values/activity_strings.xml index ff673cb48..b84531e33 100644 --- a/MapboxAndroidDemo/src/main/res/values/activity_strings.xml +++ b/MapboxAndroidDemo/src/main/res/values/activity_strings.xml @@ -333,4 +333,7 @@ Tap on a neighborhood area to toggle its color + + + Tap on the map to move the ring \ No newline at end of file diff --git a/MapboxAndroidDemo/src/main/res/values/descriptions_strings.xml b/MapboxAndroidDemo/src/main/res/values/descriptions_strings.xml index 245926e1c..f8711028b 100644 --- a/MapboxAndroidDemo/src/main/res/values/descriptions_strings.xml +++ b/MapboxAndroidDemo/src/main/res/values/descriptions_strings.xml @@ -117,4 +117,5 @@ Tap on various polygons to "select" them and toggle their colors. Show an accurate and government-approved China map in your app using the Mapbox Maps SDK. Show the device\'s current location or other information in a homescreen widget. + Use Turf to calculate coordinates to eventually draw a ring around a center coordinate. diff --git a/MapboxAndroidDemo/src/main/res/values/titles_strings.xml b/MapboxAndroidDemo/src/main/res/values/titles_strings.xml index 7c5f0ecef..dfa2ab757 100644 --- a/MapboxAndroidDemo/src/main/res/values/titles_strings.xml +++ b/MapboxAndroidDemo/src/main/res/values/titles_strings.xml @@ -115,4 +115,5 @@ Polygon toggle China map view Homescreen geocoding widget + Hollow circle diff --git a/MapboxAndroidDemo/src/main/res/values/urls_strings.xml b/MapboxAndroidDemo/src/main/res/values/urls_strings.xml index 420e44a4b..027b2b14a 100644 --- a/MapboxAndroidDemo/src/main/res/values/urls_strings.xml +++ b/MapboxAndroidDemo/src/main/res/values/urls_strings.xml @@ -117,4 +117,5 @@ https://i.imgur.com/gVIfE3G.png https://i.imgur.com/KwoEynZ.png https://i.imgur.com/H5N9jDn.png + https://i.imgur.com/nG8xeXH.png