Component: Location ( Data): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 45: | Line 45: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Cancel''' | ||
|- | |- | ||
| colspan="2" | Cancels any continuous retrieval of location information. | | colspan="2" | Cancels any continuous retrieval of location information. | ||
| Line 59: | Line 59: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetPosition''' | ||
|- | |- | ||
| colspan="2" | Asks the device to return position information. The OnSuccess callback will be called with appropriate location information is successful. If unsuccessful, the OnFailure callback will provide the reason for failure. Returns false if geolocation is not supported by the browser. | | colspan="2" | Asks the device to return position information. The OnSuccess callback will be called with appropriate location information is successful. If unsuccessful, the OnFailure callback will provide the reason for failure. Returns false if geolocation is not supported by the browser. | ||
| Line 79: | Line 79: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| Line 92: | Line 92: | ||
| colspan="2" | Called when position info is not returned successfully | | colspan="2" | Called when position info is not returned successfully | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Options | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Data |
Location component
Component that provides the mobile device's physical location.
Version information
Library Version, Component Version, Date, Author, Info 1, 1.0, 23-04-26, ST, Created
Detailed description
Many mobile devices have the capability of reporting the physical location of the device (e.g. by using an internal GPS sensor).
This component allows access to this information.
Examples
Plotting geolocation data
This example regularly plots the current location of the device onto a canvas object.
The web app created by this example can be viewed here: GeolocationPlotter Example
Macro reference
Cancel
| Cancel | |
| Cancels any continuous retrieval of location information. | |
| Return | |
GetPosition
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Geolocation.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Geolocation.fcsx