PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Centers the map displayed in a Map control on a geographical position or on a specific location. An animation is automatically performed.
At the end of the animation, the event "Whenever changing position" of the Map control will be run. This event will not be run if the positioning on the map is canceled by the user before the end of the animation.
Versions 20 and later
Windows This function is now available for WINDEV applications in Windows.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server codeWindowsLinux This function is now available for WEBDEV sites in Windows and Linux.
PHP This function is now available for PHP sites.
New in version 20
Windows This function is now available for WINDEV applications in Windows.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server codeWindowsLinux This function is now available for WEBDEV sites in Windows and Linux.
PHP This function is now available for PHP sites.
Windows This function is now available for WINDEV applications in Windows.
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Server codeWindowsLinux This function is now available for WEBDEV sites in Windows and Linux.
PHP This function is now available for PHP sites.
Example
// Centre la carte affichée par le champ "CARTE_Position" sur une position géographique
MaPosition est une geoPosition
CARTE_Position.AffichePosition(MaPosition)
 
// Syntaxe équivalente (sans animation): CARTE_Position = MaPosition
WEBDEV - Server codeWEBDEV - Browser codePHP
// Centre la carte affichée par le champ "CARTE_Position" sur une ville à partir de son nom
CARTE_Position.AffichePosition("Montpellier, France")
 
// Centre la carte affichée par le champ "CARTE_Position" sur un monument à partir de son nom
CARTE_Position.AffichePosition("Tour Eiffel")
Syntax
Versions 20 and later
WEBDEV - Server codeWEBDEV - Browser codePHP

Displaying a geographical location with check procedure Hide the details

<Map control>.DisplayPosition(<Position>)
<Map control>: Control name
Name of the Map control to be used.
<Position>: geoPosition variable or character string
Description of the location on which the map will be centered. This description can correspond to:
  • the name of the geoPosition variable describing the geographical position on which the map will be centered.
  • a character string containing an address, a city, the name of a monument, ...
  • to an variable of type Address.
New in version 20
WEBDEV - Server codeWEBDEV - Browser codePHP

Displaying a geographical location with check procedure Hide the details

<Map control>.DisplayPosition(<Position>)
<Map control>: Control name
Name of the Map control to be used.
<Position>: geoPosition variable or character string
Description of the location on which the map will be centered. This description can correspond to:
  • the name of the geoPosition variable describing the geographical position on which the map will be centered.
  • a character string containing an address, a city, the name of a monument, ...
  • to an variable of type Address.
WEBDEV - Server codeWEBDEV - Browser codePHP

Displaying a geographical location with check procedure Hide the details

<Map control>.DisplayPosition(<Position>)
<Map control>: Control name
Name of the Map control to be used.
<Position>: geoPosition variable or character string
Description of the location on which the map will be centered. This description can correspond to:
  • the name of the geoPosition variable describing the geographical position on which the map will be centered.
  • a character string containing an address, a city, the name of a monument, ...
  • to an variable of type Address.
Remarks
  • The zoom level of the map is not modified when changing position.
  • To center the map on a specific position without performing the animation, you have the ability to assign a geoPosition variable to the Value property of a Map control.
  • WEBDEV - Browser code To find out the position currently displayed in the center of the Map control, use <Map>.GetPosition.
Related Examples:
The Map control Unit examples (WEBDEV): The Map control
[ + ] This example explains how to use the Map control of WEBDEV.
It can be used to display a map that includes markers as well as an itinerary.
The Map control Unit examples (WINDEV): The Map control
[ + ] Using the Map control of WINDEV.
It is used to display a map that includes markers as well as an itinerary.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment