JSNavigationControl

API for setting and managing map navigation (compass) features.

You can create it using the Module.getNavigation API.

var navigation = Module.getNavigation();

Function

getPadding() → JSVector2D

Returns the padding value of the navigation (compass).

setPadding(number left, number top)

Sets the padding value for the navigation (compass).

Name
Type
Description

left

number

left Padding value

top

number

top Padding value

Getter / Setter

getNaviPos(), setNaviPos(align) → number

Sets the alignment (Align) of the navigation (compass).

Name
Type
Description

getNaviVisible(), setNaviVisible(display) → number

Sets the visibility of the navigation (compass).

Name
Type
Description

Last updated