mapbox-android-binding icon indicating copy to clipboard operation
mapbox-android-binding copied to clipboard

Android offline

Open stefangstrein1 opened this issue 5 years ago • 1 comments

In android the map is not initialized when starting the app in airplane mode. Seems that the style is not set correctly. I downloaded Naxam.mapbox.Platform.Droid and changed MapViewFragment.cs

public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState);

        MapView = view as MapView;
        // here the style is set and then the map is as well working offline from start
        MapView.SetStyleUrl("mapbox://styles/mapbox/streets-v9");
        MapView?.AddOnMapChangedListener(this);
    }

Is this approach correct ?

stefangstrein1 avatar Nov 20 '18 08:11 stefangstrein1

Hi,

Could you double check the latest version as well as the native version?

Cheers.

tuyen-vuduc avatar Aug 20 '19 23:08 tuyen-vuduc