[android] #4878 - Setting default MyLocationBackgroundTint to be white

This commit is contained in:
Brad Leege
2016-04-28 13:28:15 -05:00
parent 25af12b647
commit 2c3e137260
4 changed files with 2 additions and 5 deletions

View File

@@ -174,7 +174,7 @@ public class MapboxMapOptions implements Parcelable {
mapboxMapOptions.locationEnabled(typedArray.getBoolean(R.styleable.MapView_my_location_enabled, false));
mapboxMapOptions.myLocationForegroundTintColor(typedArray.getColor(R.styleable.MapView_my_location_foreground_tint, Color.TRANSPARENT));
mapboxMapOptions.myLocationBackgroundTintColor(typedArray.getColor(R.styleable.MapView_my_location_background_tint, Color.TRANSPARENT));
mapboxMapOptions.myLocationBackgroundTintColor(typedArray.getColor(R.styleable.MapView_my_location_background_tint, Color.WHITE));
Drawable foregroundDrawable = typedArray.getDrawable(R.styleable.MapView_my_location_foreground);
if(foregroundDrawable==null){

View File

@@ -52,7 +52,6 @@ public class MyLocationToggleActivity extends AppCompatActivity {
@Override
public void onMapReady(MapboxMap map) {
mapboxMap = map;
mapboxMap.setStyle(Style.MAPBOX_STREETS);
}
});

View File

@@ -22,7 +22,6 @@
android:id="@id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
mapbox:my_location_background_tint="@android:color/white"
mapbox:access_token="@string/mapbox_access_token" />
<android.support.design.widget.FloatingActionButton

View File

@@ -43,10 +43,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:my_location_foreground_tint="@color/primary"
app:my_location_background_tint="@android:color/white"
app:my_location_accuracy_tint="@color/primary"
app:access_token="@string/mapbox_access_token"
app:style_url="@string/style_mapbox_streets"
app:zoom="15" />
</LinearLayout>
</LinearLayout>