Find & Order
v1.0
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Manage user position
Copy Markdown
Open in ChatGPT
Open in Claude
All events for manage user position in the map
setUserPosition
Define current user position
Parameters
| Name | type | description |
|---|---|---|
| floor | int | selected floor |
| position | Position GPS | user position |
| hide | boolean | show or hide the position icon on the map (default value false) |
| angle | int | define the rotation angle in degree of the position icon (from 0 to 360) |
| is_accurate | boolean | change position icon colour depending on the accuracy |
| show_arrow | boolean | show orientation arrow around the icon |
Result
No result
Example
Javascript
Swift
Java
FnoMapManager.sendEvent('setUserPosition', { floor: 0, angle:30, hide:false, is_accurate:true, show_arrow:true, position : {latitude:48.2, longitude: 2.8 }});focusToUserPosition
Center map on user position
Parameters
No parameter
Result
No result
Javascript
Swift
Java
xxxxxxxxxxFnoMapManager.sendEvent('focusToUserPosition', {}});followUser
Always center map on user position until user clicks on map
Parameters
| Name | type | description |
|---|---|---|
| follow | boolean | activate / disable |
Result
No result
Javascript
Swift
Java
xxxxxxxxxxFnoMapManager.sendEvent('followUser', { follow:true});enableUserOrientation
Activate / disable user orientation
Parameters
| Name | type | description |
|---|---|---|
| enable | boolean | activate / disable |
Result
No result
Javascript
Swift
Java
xxxxxxxxxxFnoMapManager.sendEvent('enableUserOrientation', { enable:true});getUserPosition
Get current user position in the map
Parameters
No parameter
Result
| Name | type | description |
|---|---|---|
| x | decimal | |
| y | decimal | |
| z | decimal | |
| floor | int | current user floor |
| scale | decimal |
Example
Javascript
Swift
Java
xxxxxxxxxxFnoMapManager.sendEvent('getUserPosition', null, (data) => { console.log("user position:", data)});Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Next to read:
Global eventsnull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
