ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Google functions / Managing 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)
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help