0

I'm using mapbox sdk to find user's location but none of these functions work: My manifest has Accessfinelocation and coarselocation permission already.

setMyLocationEnabled(true)
setUserLocationTrackingMode()
setUserLocationRequiredZoom(10);
getUserLocation();

MapView mv = (MapView)  findViewById(R.id.mapView);
MapView.setMyLocationEnabled(true);
        mapView.setUserLocationTrackingMode(UserLocationOverlay.TrackingMode.FOLLOW);
mapView.setUserLocationRequiredZoom(10);


mapView.getUserLocation();

0 Answers0