Heading
setHeading(heading)
Description
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)
Parameter
heading (number)
Example
map.setHeading(90); 0~360
getHeading()
Description
Gets the value of the set map direction.
Return Value
heading (number)
Example
map.getHeading()
return 90