AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Mapa
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns the geographical position (latitude and longitude) corresponding to a point in a Map control.
Ejemplo
// Ajout d'un marqueur à l'emplacement du clic dans un champ Carte 
// (code à placer dans le code de clic du champ)
MaPosition is geoPosition
MaPosition = CARTE_Position.InfoXY(MouseXPos(), MouseYPos())
IF ErrorOccurred = False THEN
	MonMarqueur is Marker
	MonMarqueur.Position = MaPosition
	CARTE_Position.AjouteMarqueur(MonMarqueur)
END
Sintaxis
<Result> = <Map control>.InfoXY(<X> , <Y>)
<Result>: variable geoPosition
geoPosition variable corresponding to the geographical position of the point on the map.
Windows In an error occurs, the ErrorOccurred variable is set to True and ErrorInfo returns the details of the error.
<Map control>: Nombre del control
Name of the Map control to be used.
<X>: Integro
X-coordinate (in pixels) of point to study. This coordinate is relative to the upper-left corner of the control. If this coordinate is negative, the position will be searched for a point that is not displayed on the map.
<Y>: Integro
Y-coordinate (in pixels) of point to study. This coordinate is relative to the upper-left corner of the control. If this coordinate is negative, the position will be searched for a point that is not displayed on the map.
Observaciones
  • To retrieve the coordinates of a point in the Map control in which an event was run (e.g. click):
  • The calculation of position takes into account the zoom level in the Map control during the call to the function. The higher the zoom level is, the more precise the position will be.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 16/01/2025

Señalar un error o enviar una sugerencia | Ayuda local