Manage user position

All events for manage user position in the map

setUserPosition

Define current user position

Parameters

Nametypedescription
floorintselected floor
positionPosition GPSuser position
hidebooleanshow or hide the position icon on the map (default value false)
angleintdefine the rotation angle in degree of the position icon (from 0 to 360)
is_accuratebooleanchange position icon colour depending on the accuracy
show_arrowbooleanshow orientation arrow around the icon

Result

No result

Example

Javascript
Swift
Java
Copy

focusToUserPosition

Center map on user position

Parameters

No parameter

Result

No result

Javascript
Swift
Java
Copy

followUser

Always center map on user position until user clicks on map

Parameters

Nametypedescription
followbooleanactivate / disable

Result

No result

Javascript
Swift
Java
Copy

enableUserOrientation

Activate / disable user orientation

Parameters

Nametypedescription
enablebooleanactivate / disable

Result

No result

Javascript
Swift
Java
Copy

getUserPosition

Get current user position in the map

Parameters

No parameter

Result

Nametypedescription
xdecimal
ydecimal
zdecimal
floorintcurrent user floor
scaledecimal

Example

Javascript
Swift
Java
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard