PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • Required permissions
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Displays the current device position in a Map control and updates this position during its move.
Android Caution: This function is available in the Android emulator. This function is not available in the Android simulator.
Android Note: This function is available in the Android emulator and in the Android simulator.
Versions 18 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 20 and later
WEBDEV - Browser code This function is now available in Browser code.
New in version 20
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code This function is now available in Browser code.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Starts following the movement in the map
MapFollowMovement(MAP_Position)
Syntax
<Result> = MapFollowMovement(<Map Control> [, <Compass> [, <Procedure Name>]])
<Result>: Boolean
  • True if the following of movement was enabled,
  • False otherwise. To find out the error details, use ErrorInfo.
<Map Control>: Control name
Name of Map control to use. If this parameter corresponds to an empty string (""), the Map control to which the current process belongs will be used.
<Compass>: Optional boolean
  • True to enable the compass. A compass is displayed in the Map control to indicate the orientation of the move. This option is available for the devices equipped with an orientation sensor.
  • False (default value) to disable the compass.
<Procedure Name>: Optional character string (with or without quotes)
Name of WLanguage procedure ("callback") called whenever a change of position is notified. This procedure has the following format:
PROCEDURE <Procedure Name> (<Position>)

where <Position> is a geoPosition variable containing information about the position of the device when the notification is performed.
The parameters of this procedure are optional. There is no need to pass parameters to this procedure. Indeed, these parameters are automatically filled during each call.
If this procedure returns False, the map displayed in the control will not be refreshed.
If this parameter is not specified, whenever a change of device position is notified, the map displayed in the Map control is automatically centered on the new position.
Remarks

Special cases

  • To stop following the move, use MapEndOfMove.
  • A blue circle may appear around the marker, indicating the current position of the device. This circle is a representation of the level of precision regarding the position. The more it is extended, less precise the position will be. To define the position of the device, the function uses two types of "localization providers":
    - the network of GPS satellites
    - the triangulation performed from the network of mobile and Wi-Fi antennas.
    The choice depends on the localization setting of the device when the call is performed.
  • A period of time may pass between the call to MapFollowMovement and the effective display of the device position on the map. This duration corresponds to the time taken by the localization provider (GPS or mobile/Wi-Fi network) to define the current position of the device. Once this position is found, the map control is automatically centered on this one.
Android

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: ACCESS_FINE_LOCATION
This permission allows an application to access a specific location (GPS).
Versions 21 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Geo-localization
This feature allows the applications to use the geo-localization features of the device.
New in version 21
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Geo-localization
This feature allows the applications to use the geo-localization features of the device.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Geo-localization
This feature allows the applications to use the geo-localization features of the device.
Related Examples:
WM Geo-localization Cross-platform examples (WINDEV Mobile): WM Geo-localization
[ + ] This example explains how to perform proximity searches with geolocalization:
- search around me
- search in a city, at a given address, or close to a specific address.
The results are displayed in a looper and in a map with markers.
WM Sports Cross-platform examples (WINDEV Mobile): WM Sports
[ + ] This example is a sport application used to save your performances.
The application calculates the distance, the time, the average speed and the number of calories spent according to the sport.
The run is displayed on a map control via markers and an itinerary.

The example also includes a server part used to synchronize the user data.
This webservice is available in the WEBDEV "WW_Sports" example.
Components
WEBDEV - Browser code WDJS.DLL
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment