DJI Mobile SDK Documentation

class Mapkit

class Mapkit
Package:com.dji.mapkit.core
Description:

Contains methods to set information that is required for map initialization.

Class Members:
method mapboxAccessToken
static void mapboxAccessToken(@NonNull String accessToken)
Package:com.dji.mapkit.core
Description:

Sets the mapbox access token. This must be called before fetching the Mapbox map view.

Input Parameters:
@NonNull String accessTokenThe mapbox access token.
method inMainlandChina
static void inMainlandChina(boolean inMainlandChina)
Package:com.dji.mapkit.core
Description:

Sets whether the drone's location is in mainland China. This information is used for GPS offset, and does not affect which map is used.

Input Parameters:
boolean inMainlandChinatrue if the user is in mainland China.
method inHongKong
static void inHongKong(boolean inHongKong)
Package:com.dji.mapkit.core
Description:

Sets whether the drone's location is in Hong Kong. This information is used for GPS offset, and does not affect which map is used.

Input Parameters:
boolean inHongKongtrue if the user is in Hong Kong.
method
method inMacau
static void inMacau(boolean inMacau)
Package:com.dji.mapkit.core
Description:

Sets whether the drone's location is in Macau. This information is used for GPS offset, and does not affect which map is used.

Input Parameters:
boolean inMacautrue if the user is in Macau.