API DOCUMENTATION
API DOCUMENTATION
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);
Required Parameter | Description |
---|---|
value | Type is numeric type, range 0~360 |
mapInstance.setHeading(90);
Gets the value of the set map direction.
mapInstance.getHeading()
The direction of the current map.
mapInstance.getHeading() return : 90