PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of gglMapParameter variables
  • Functions that use the gglMapParameter variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
gglMapParameter (Type of variable)
In French: gglParamètreCarte (Type de variable)
The gglMapParameter type is used to define the advanced characteristics of a map: points, road, ... The characteristics of this map can be defined and modified by several WLanguage properties.
Then, the corresponding map can be retrieved by GglGetStaticMap.
Note: See Declaring a variable for more details.
Versions 22 and later
Android This type of variable is now available for the Android applications.
Android Widget This type of variable is now available in Android Widget mode.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
New in version 22
Android This type of variable is now available for the Android applications.
Android Widget This type of variable is now available in Android Widget mode.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
Android This type of variable is now available for the Android applications.
Android Widget This type of variable is now available in Android Widget mode.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
// Configure a map
Params is gglMapParameter
// Define the markers
M1 is gglMarker
M1..Latitude = 47.022356
M1..Longitude = 52.423654
M1..Color = 0x0000FF // blue
M1..Size = gglSmall
// Add the markers
Add(Params..Marker, M1)
// Various parameters
Params..Format = gglJPG
Params..Border = True
Remarks

Properties specific to the description of gglMapParameter variables

The following properties can be used to handle a gglMapParameter variable:
NameType usedEffect
BorderBoolean
  • True to add a border around the image,
  • False to display no border.
The characteristics of the border are as follows: blue border of 5 pixels wide, with an opacity set to 55%.
Note: since version 2 of the Google service, this parameter has become obsolete and it is ignored.
PathgglPathPath to draw on the map. The drawing of the route is using the specified points (and not the streets found on the map). The points are linked by a line.
Versions 22 and later
Scale
New in version 22
Scale
Scale
IntegerModifies the number of pixels returned. This property is required for a display on a high-resolution screen.
..Scale = 2 returns twice as many pixels as ..Scale = 1 while keeping the same covering area and the same level of details (the content of the map is unchanged).
Possible values:
  • 1 (default value),
  • 2,
  • 4 (available if owning a Google Maps APIs Premium Plan license).
FormatString constantFormat of image received. This parameter can correspond to the following constants:
  • gglGIF (default value): image in GIF format
  • gglJPG: image in JPG format.
  • gglJPGNonProgressive: image in non-progressive JPG format.
  • gglPNG8: image in PNG 8 format
  • gglPNG32: image in PNG 32 format
LanguageCharacter stringLanguage in which the information will be displayed on the map. This parameter can correspond to "fr", "en", "de", ...
MarkerArray of gglMarkerMarkers to display on the map. The maximum number of markers that can be used is set to 50. This number is reduced if points are added (indeed, the size of the URL expected by Google limits the maximum number of markers).
MobileDeviceBoolean
  • True to retrieve a map optimized for the display on a mobile device,
  • False otherwise.
SpangglCoordinateSpecifies the range in latitude and in longitude that must be displayed on the map. In order for this parameter to be taken into account, the <Zoom> parameter found in GglGetStaticMap must correspond to the gglAutoZoom constant.
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the gglMapParameter variables

Versions 14 and later
GglGetStaticMap
New in version 14
GglGetStaticMap
GglGetStaticMap
Retrieves the map of a specific location via the Google Maps service.
Related Examples:
The GglGetStaticMap function Unit examples (WINDEV): The GglGetStaticMap function
[ + ] Using gglGetMap to display a Google map in an Image control.
The GglGetStaticMap function Unit examples (WEBDEV): The GglGetStaticMap function
[ + ] Using GglGetStaticMap function to display a Google map in an Image control.
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment