AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones Google / Gestión de Google Maps
  • Displaying a map
GglGetStaticMap (Example)
Displaying a map
WINDEV This example is used to display a map from a physical address.
// Display a map from a physical address
 
// Variables
Zoom is int
Zoom = 12
gglParameters is gglMapParameter
rLatitude, rLongitude are reals
Location is gglCoordinate
M1 is gglMarker
 
// Retrieve the longitude and latitude of a physical address
Location = GglAddressToCoordinates("3 rue Puech Villa 34000 Montpellier")
rLatitude = Location.Latitude
rLongitude = Location.Longitude
 
// Create the marker for this address
M1.Latitude = rLatitude
M1.Longitude = rLongitude
M1.Color = 0x0000FF
M1.Size = gglSmall
Add(gglParameters.Marker, M1)
 
// Display this address in an Image control
IMG_MAP = GglGetStaticMap(rLatitude, rLongitude, Zoom, IMG_MAP.Width, ...
IMG_MAP.Height, gglRoadmap, gglParameters)
WEBDEV - Código Servidor This example is used to display a map from a physical address.
// Display a map from a physical address.
 
// Variables
Zoom is int
Zoom = 12
gglParameters is gglMapParameter
rLatitude, rLongitude are reals
Location is gglCoordinate
M1 is gglMarker
MyImage is string
MyImage = "MyFile.gif"
ImagePath is string
ImagePath = CompleteDir(fWebDir()) + MyImage
 
// Retrieve the longitude and latitude of a physical address
Location = GglAddressToCoordinates("3 rue Puech Villa 34000 Montpellier")
rLatitude = Location.Latitude
rLongitude = Location.Longitude
 
// Create the marker for this address
M1.Latitude = rLatitude
M1.Longitude = rLongitude
M1.Color = 0x0000FF
M1.Size = gglSmall
Add(gglParameters.Marker, M1)
 
// Display this address in an Image control
fSaveText(MyImage, ...
GglGetStaticMap(rLatitude, rLongitude, nZoom, ...
IMG_Image1.Width, IMG_Image1.Height, gglRoadmap, gglParameters))
IMG_Image1 = "./" + MyImage
Versión mínima requerida
  • Versión 16
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

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