blob: 8b8cd7209605f72f17354fd83026f7406a5dc1bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.mapbox.mapboxsdk.maps;
/**
* Utility class to fetch a MapboxMap instance by bypassing package visibility
*/
public class MapboxMapUtils {
/**
* Get the MapboxMap instance linked to passed MapView
*
* @param mapView
* @return
*/
public static MapboxMap getMapboxMap(MapView mapView) {
return mapView.getMapboxMap();
}
/**
* Set the direction of the user
*
* @param mapView
* @param direction
*/
public static void setDirection(MapView mapView, float direction) {
mapView.setBearing(direction);
}
}
|