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
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.
Ejemplo
// Centre la carte affichée par le champ "CARTE_Position" sur une position géographique
MaPosition is geoPosition
CARTE_Position.AffichePosition(MaPosition)

// Syntaxe équivalente (sans animation): CARTE_Position = MaPosition
WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP
// 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")
Sintaxis
WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP

Visualización de una localización geográfica con procedimiento de verificación Ocultar los detalles

<Map control>.DisplayPosition(<Position>)
<Map control>: Nombre del control
Name of the Map control to be used.
<Position>: variable geoPosition o cadena de caracteres
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.
  • to a character string containing an address, a town, the name of a monument, etc.
  • a variable of type Address.
Observaciones
  • 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.
  • WEBDEV - Código Navegador To find out the position currently displayed in the center of the Map control, use <Map>.GetPosition.
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: 19/09/2024

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