[Android]changing the map style does not reflect in map in version 7.0 and below
GnanaPriyaNamasivayam opened this issue · 0 comments
GnanaPriyaNamasivayam commented
I have used below code in my android renderer of my xamarin forms application. while changing the satelite view to mapview and vice versa. Please check my codes i have used below.
if (e.PropertyName == nameof(Element.ChangeStyle))
{
if (_map != null)
{
if (Element.ChangeStyle)
{
_map.SetStyle(new Style.Builder().FromUri(Com.Mapbox.Mapboxsdk.Maps.Style.SATELLITE_STREETS));
}
else
{
_map.SetStyle(new Style.Builder().FromUri(Com.Mapbox.Mapboxsdk.Maps.Style.MAPBOX_STREETS));
}
}
}
But view does not change on screen. It happens perfect in all other android versions above 7.0 and affects below 7.0 like 6.0 ...
Can you please check and let us know the details regarding this bug.