[android] #4365 - enforce best practices map startup
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
<com.mapbox.mapboxsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
app:center_latitude="38.87000"
|
||||
app:center_longitude="-77.00800"
|
||||
app:zoom="16"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
@@ -15,6 +16,8 @@
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:style_url="@string/style_light"
|
||||
app:access_token="@string/mapbox_access_token"
|
||||
android:layout_below="@id/toolbar" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
@@ -15,7 +16,10 @@
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="5" />
|
||||
android:layout_weight="5"
|
||||
app:center_latitude="38.90962"
|
||||
app:center_longitude="-77.04341"
|
||||
app:zoom="15" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:center_latitude="38.897705003219784"
|
||||
app:center_longitude="-77.03655168667463"
|
||||
app:center_latitude="38.87031"
|
||||
app:center_longitude="-77.00897"
|
||||
app:style_url="@string/style_mapbox_streets"
|
||||
app:zoom="15" />
|
||||
app:zoom="10" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
@@ -12,9 +13,14 @@
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />
|
||||
|
||||
<com.mapbox.mapboxsdk.maps.MapView
|
||||
android:layout_below="@id/toolbar"
|
||||
android:id="@+id/manualZoomMapView"
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/toolbar"
|
||||
app:access_token="@string/mapbox_access_token"
|
||||
app:center_latitude="-1.063510"
|
||||
app:center_longitude=" 32.895425"
|
||||
app:style_url="@string/style_satellite_streets"
|
||||
app:zoom="4" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -79,6 +79,11 @@
|
||||
<com.mapbox.mapboxsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
app:center_latitude="37.176546"
|
||||
app:center_longitude="-3.599007"
|
||||
app:access_token="@string/mapbox_access_token"
|
||||
app:style_url="@string/style_emerald"
|
||||
app:zoom="15"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
|
||||
Reference in New Issue
Block a user