|
|
|
|
|
MapDisplayPosition (Function) In french: CarteAffichePosition 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 "Whenever changing position" event 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.
MaPosition is geoPosition
MapDisplayPosition(CARTE_Position, MaPosition)
Remarks The MapDisplayPosition function uses Google's geolocation service. The positions define from the description of a location depend on the quantity and on the precision of the information supplied in this description. If the same description correspond to several locations, the geolocation service will return the most suitable correspondences. - The zoom level of the map is not modified when changing position.
- To center the map on a given position without animationyou can directly assign a geoPosition variable to the Value property of a Map control.
To find out the position currently displayed in the center of the Map control, use MapGetPosition.
Related Examples:
|
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.
|
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|