PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Initializing a map
  • Displaying a map
  • Managing advanced parameters (WEBDEV)
  • The following functions can be used with the Map controls
  • Notes
  • Properties specific to the Map controls
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
Overview
WINDEV Mobile allows you to handle a Map control by programming. To do so, use the variable of the Map control in the code.WINDEV, WEBDEV and WINDEV Mobile allow you to handle a Map control by programming. To do so, use the variable of the Map control in the code.
The variable of the Map control corresponds to the name of the Map control.
This help page explains how to handle a Map control by programming.
Note: Several WLanguage functions are specific to the management of Map controls. See Map control management functions for more details.
Versions 20 and later
WINDEVWindows The Map control is now available for the WINDEV applications in Windows.
WindowsLinux The Map control is now available for the WEBDEV sites in Windows and Linux.
New in version 20
WINDEVWindows The Map control is now available for the WINDEV applications in Windows.
WindowsLinux The Map control is now available for the WEBDEV sites in Windows and Linux.
WINDEVWindows The Map control is now available for the WINDEV applications in Windows.
WindowsLinux The Map control is now available for the WEBDEV sites in Windows and Linux.
Versions 21 and later
Universal Windows 10 App The Map control is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App The Map control is now available in Universal Windows 10 App mode.
Universal Windows 10 App The Map control is now available in Universal Windows 10 App mode.
Initializing a map

Displaying a map

When the window containing a Map control is opened, a map of the world is automatically displayed: the map is centered around the equator, with the lowest zoom level. When the window containing a Map control is opened, a map of the world is automatically displayed: the map is centered on Europe, with minimum zoom level.
You have the ability to display the last position stored: simply select the option"Store the last displayed position" in the "General" tab of the Map control description window. In this case, the last position is displayed with the same zoom level.
To display a map corresponding to a specific location, use:
  • the function MapDisplayPosition: This function can be used with a specific position (geoPosition variable), or on a town or a monument.
    For example:
    // Centers the map displayed by the "MAP_Position" control
    // on a geographical location
    MyPosition is géoPosition
    MapDisplayPosition(MAP_Position, MyPosition)

    // Centers the map displayed by the "MAP_Position" control on a city
    // from its name
    MapDisplayPosition(MAP_Position, "Montpellier, France")

    // Centers the map displayed by the "MAP_Position" control on a monument
    // from its name
    MapDisplayPosition(MAP_Position, "Eiffel Tower")
  • a direct assign command with a specific position. In this case, the position is displayed without any animation.
    Example:
    // Centers the map displayed by the "MAP_Position" control
    // on a geographical location
    MyPosition is geoPosition
    MAP_Position = MyPosition
Managing advanced parameters (WEBDEV)
The following functions can be used with the Map controls
The WLanguage functions that can be used with the Map controls can be classified in several categories:

Notes

    • Versions 20 and later
      WINDEV MapLicenseGgl allows you to specify the Google identifier required for using a Map control with the Google Map API for Work option. For more details, check the user license of Google Maps API.
      New in version 20
      WINDEV MapLicenseGgl allows you to specify the Google identifier required for using a Map control with the Google Map API for Work option. For more details, check the user license of Google Maps API.
      WINDEV MapLicenseGgl allows you to specify the Google identifier required for using a Map control with the Google Map API for Work option. For more details, check the user license of Google Maps API.
    • Versions 21 and later
      Universal Windows 10 App MapLicenseBing is used to specify the Bing key required for using the Map control in an application in Universal Windows 10 app mode.
      New in version 21
      Universal Windows 10 App MapLicenseBing is used to specify the Bing key required for using the Map control in an application in Universal Windows 10 app mode.
      Universal Windows 10 App MapLicenseBing is used to specify the Bing key required for using the Map control in an application in Universal Windows 10 app mode.
    Properties specific to the Map controls
    The following properties are used to manage a Map control by programming:
    MapModeReturns or modifies the display mode of the map in the Map control.
    ValueUsed to center the map on the position corresponding to the specified geoPosition variable.
    ZoomReturns or modifies the zoom level used to display the map.

    For a complete list of WLanguage properties that can be used with a Map control, see Properties associated with the Map control.
    Minimum version required
    • Version 17
    This page is also available for…
    Comments
    Click [Add] to post a comment