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
  • "Whenever changing the position" Map control event
  • Special cases
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
Moves the map displayed in the Map control so that the specified geographic area can be seen in its entirety.
Ejemplo
p1 is geoPosition
p1.Latitude = 6
p1.Longitude = 0
p2 is geoPosition
p2.Latitude = 3
p2.Longitude = 3
CARTE_MaCarte.AfficheZone(p1, p2)
WINDEV
p1 is geoPosition
p1.Latitude = 6
p1.Longitude = 0
p2 is geoPosition
p2.Latitude = 3
p2.Longitude = 3
MAP_MyMap.DisplayArea(p1, p2, True, procEndAnimation)

INTERNAL PROCEDURE procEndAnimation(bResult is boolean)
	IF bResult = True THEN
		ToastDisplay("Area displayed")
	END
END
Sintaxis
<Result> = <Map control>.DisplayArea(<North West position> , <South East position> [, <Animation> [, <WLanguage procedure>]])
<Result>: booleano
  • True if a request to change the position was made,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Map control>: Nombre del control
Name of the Map control to be used.
<North West position>: variable geoPosition
Name of the geoPosition variable that corresponds to the North West point of the area to be displayed in the Map control.
<South East position>: variable geoPosition
Name of the geoPosition variable that corresponds to the South East point of the area to be displayed in the Map control.
<Animation>: Booleano opcional
  • True (default value) if the area is to be displayed with an animation,
  • False otherwise.
<WLanguage procedure>: Nombre de procedimiento opcional
Name of the WLanguage procedure ("callback") called at the end of the animation. This procedure has the following format:
PROCEDURE <Procedure name> (<Displayed area>)
where <Displayed area> is a boolean:
  • True if the area could be displayed,
  • False otherwise (e.g., if the user moved the map during the animation).
If <Animation> is set to False, the procedure is not called.
iPhone/iPad This parameter is not available.
Observaciones

"Whenever changing the position" Map control event

  • If the Map control moves to the specified area with an animation, the "Whenever changing the position" event will be run at the end of the animation..
  • If the user cancels the positioning on the Map control before the end of the animation, the "Whenever changing the position" event will not be run.

Special cases

  • The zoom level of the Map control can be set to change automatically when the position changes.
  • To center a map on a given position without animations, you can directly assign a geoPosition variable to the Value property of the Map control.
    For example:
    p1 is geoPosition
    p1.Latitude = 3
    p1.Longitude = 3
    MAP_MyMap.Value = p1
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 26
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 08/01/2025

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