blob: d41c69250949fe3c86d7e45dc64eb0758d294da1 (
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, double direction) {
mapView.setDirection(direction);
}
}
|