API DOCUMENTATION

setHeading

Set ‘heading’ to rotate the map in the desired direction.At this point, the compass shape also looks at the set value.
For example, a 90° compass loos west.You can set 0~360. The default is 0 degrees(North)

mapInstance.setHeading(value);

 

Parameter
Required Parameter Description
value Type is numeric type, range 0~360

 

Example
mapInstance.setHeading(90);

getHeading

Gets the value of the set map direction.

mapInstance.getHeading()

 

Return

The direction of the current map.

 

Example
mapInstance.getHeading()
return : 90