PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
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
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.
Windows This function is now available for the WEBDEV sites in Windows and in Linux.
New in version 20
Windows This function is now available for WINDEV applications in Windows.
Windows This function is now available for the WEBDEV sites in Windows and in Linux.
Windows This function is now available for WINDEV applications in Windows.
Windows This function is now available for the WEBDEV sites in Windows and in Linux.
// Centers the map displayed by the "MAP_Position" control on a geographical position
MyPosition is geoPosition
MapDisplayPosition(MAP_Position, MyPosition)
 
// equivalent syntax (without animation): MAP_Position = MyPosition
Syntax
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.
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 : wd250obj.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Example
MapLicenseGgl("AIzaSyDbSVKYPwB1a-_vPbDzAr6LgAfIj4iW2hc")

PositionWx is geoPosition
PositionWx.Latitude = -25.4401779
PositionWx.Longitude = -49.2118695

MarkerWx is Marker
MarkerWx.Description = "WX INFORMATICA"
MarkerWx.Name = "WX INFORMATICA"
MarkerWx.Position = PositionWx

MapAddMarker(GoogleMaps,MarkerWx)

GoogleMaps.DisplayPosition(PositionWx)
GoogleMaps..Zoom = 18
BOLLER
13 Jul. 2018