[android] #3348 - Moved ExampleCustomLayer into it's own package. Moved Custom Layer to Main Activity Controls in Nav Drawer with new icon.
This commit is contained in:
@@ -35,6 +35,7 @@ import com.mapbox.mapboxsdk.constants.MyLocationTracking;
|
||||
import com.mapbox.mapboxsdk.constants.Style;
|
||||
import com.mapbox.mapboxsdk.geometry.LatLng;
|
||||
import com.mapbox.mapboxsdk.layers.CustomLayer;
|
||||
import com.mapbox.mapboxsdk.testapp.layers.ExampleCustomLayer;
|
||||
import com.mapbox.mapboxsdk.testapp.utils.GeoParseUtil;
|
||||
import com.mapbox.mapboxsdk.utils.ApiAccess;
|
||||
import com.mapbox.mapboxsdk.views.MapView;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.mapbox.mapboxsdk.testapp;
|
||||
package com.mapbox.mapboxsdk.testapp.layers;
|
||||
|
||||
public class ExampleCustomLayer {
|
||||
static {
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M4,4h7V2H4c-1.1,0 -2,0.9 -2,2v7h2V4zm6,9l-4,5h12l-3,-4 -2.03,2.71L10,13zm7,-4.5c0,-0.83 -0.67,-1.5 -1.5,-1.5S14,7.67 14,8.5s0.67,1.5 1.5,1.5S17,9.33 17,8.5zM20,2h-7v2h7v7h2V4c0,-1.1 -0.9,-2 -2,-2zm0,18h-7v2h7c1.1,0 2,-0.9 2,-2v-7h-2v7zM4,13H2v7c0,1.1 0.9,2 2,2h7v-2H4v-7z"/>
|
||||
</vector>
|
||||
@@ -20,6 +20,12 @@
|
||||
android:id="@+id/action_compass"
|
||||
android:icon="@drawable/ic_navigation_24dp"
|
||||
android:title="@string/action_compass" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_custom_layer"
|
||||
android:icon="@drawable/ic_now_wallpaper_24dp"
|
||||
android:title="@string/action_custom_layer" />
|
||||
|
||||
</group>
|
||||
</menu>
|
||||
</item>
|
||||
@@ -143,12 +149,6 @@
|
||||
android:icon="@drawable/ic_trending_up_24dp"
|
||||
android:title="@string/activity_polyline" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_custom_layer"
|
||||
android:checkable="false"
|
||||
android:icon="@drawable/ic_trending_up_24dp"
|
||||
android:title="@string/activity_custom_layer" />
|
||||
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<string name="action_gps">Toggle GPS location</string>
|
||||
<string name="action_user_location_tracking">User location tracking</string>
|
||||
<string name="action_compass">Toggle compass</string>
|
||||
<string name="action_custom_layer">Custom Layer</string>
|
||||
<string name="action_debug">Cycle map debug options</string>
|
||||
<string name="action_point_annotations">Toggle point annotations</string>
|
||||
<string name="action_info_window_adapter">InfoWindow Adapter</string>
|
||||
|
||||
Reference in New Issue
Block a user