- Overview of Map control
- Creating a Map control
- Popup for displaying markers
- Displaying and handling maps
- Displaying the maps
- Maps handled by the user
- Specific features
- Internet Explorer: Required versions
- Modifying the permissions
- Map control and Google license
Popup for displaying markers
Depending on the platform, when a preset window or page is used to manage marker popups, the following elements are included:
- FI_WinDevPopupMarqueur_WD (internal window in the WDFAA component).
- FI_WinDevPopupMarqueur_WM (internal window in the WDFAA component).
- the IPAGE_WEBDEVPopupMarker internal page.
These elements contain:
- two controls used to display the name and description of the marker.
- a declaration code to handle the current Marker variable.
Displaying and handling maps
Displaying the maps
When the window containing a Map control is opened, a world map is automatically displayed: the map is centered on Europe, with medium zoom level.
Internet Explorer: Required versions
In a WINDEV application, the Map control uses Internet Explorer's ActiveX on the client computer. To use the Map control in the application, the client computer must have Internet Explorer 10 or 11.
To view a Map control in a WEBDEV site, the Web user must use:
- Internet Explorer 10 or 11.
- Another browser (Chrome, Firefox, etc.).
Modifying the permissions
Using a Map control automatically adds the INTERNET permission to the list of permissions required by the application.
Map control and Google license
Caution: Google license
You must specify a license key to use the maps service.
A Google Developer account is required to get a Google Maps API key. Refer to the Google license to learn more about the terms of service (free or paid service, usage quota, etc.).
When the developer account is available, you must:
- Generate the key in the Google developer console (https://console.developers.google.com). The operations to perform are as follows (valid at the date this page was written):
- Use a Google account to connect to the developer console.
- Create a project if necessary.
- Click "Enable APIs and services".
- Click "Credentials". Then, click the link "Credentials in APIs & Services".
- Click "Create credentials".
- Select "API key".
- Validate the key creation and copy the key created by Google.
- Specify the key used in the application or in the site with MapLicenseGgl.
Unit examples (WEBDEV): The Map control
[ + ]
This example explains how to use the Map control of WEBDEV.
It can be used to display a map that includes markers as well as an itinerary.
Unit examples (WINDEV): The Map control
[ + ]
Using the Map control of WINDEV.
It is used to display a map that includes markers as well as an itinerary.
Unit examples (WINDEV): The GglGetStaticMap function
[ + ]
Using gglGetMap to display a Google map in an Image control.
Cross-platform examples (WINDEV Mobile): WM Geolocation
[ + ]
This example explains how to perform proximity searches with geolocation :
- search around me
- search in a city, at a given address, or close to a specific address.
The results are displayed in a looper and in a map with markers.
Cross-platform examples (WINDEV Mobile): WM Sports
[ + ]
This example is a sport application used to save your performances.
The application calculates the distance, the time, the average speed and the number of calories spent according to the sport.
The run is displayed on a map control via markers and an itinerary.
The example also includes a server part used to synchronize the user data.
This webservice is available in the WEBDEV "WW_Sports" example.
This page is also available for…