|
|
|
|
|
- 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
- Map control and Google license
The Map control allows you to display a map in order to geolocate, display points of interest (POI) and more, ... This map comes from: - the Google Maps service for Web sites via the Google Maps API.
The use of the Map control is subject to specific terms and conditions. Depending on the use mode, you may have to use a Google key (MapLicenseGgl). Check the Google license before deploying your applications.
The map displayed is interactive: you can zoom in, move around, etc.. It can be displayed in map view or satellite view. Creating a Map control To create a Map control: - On the "Creation" tab, in the "Graphic controls" group, click "Map".
- Click where the control will be created in the window or page.
To view the control characteristics, select "Description" in the context menu of the control. The "General" tab is used to define: - display mode: map or satellite,
- whether traffic information is shown or hidden.
- whether the zoom buttons must be displayed (or not) in the control,
- the image used for the POI markers.
- the default popup displayed when a marker is clicked. This popup can correspond to:
- None: the default popup will be used.
- Predefined page: In this case, an internal page is automatically integrated into your project..
- an internal page in your project.
The "Details" tab allows you to define: - gesture options:
- double-tap to zoom.
Remarks: 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: - 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 a window containing a Map control is opened, a world map is automatically displayed: the map is centered on Europe, with a medium zoom level. Maps handled by the user The user can move on the map: - by scrolling the map using the mouse.
- via the control positioning buttons (if "Show zoom buttons" has been selected in the "General" tab of the control description window).
The user can zoom in or out: - by using the zoom buttons of the control (if the option has been selected in the "General" tab of the control description window).
- programmatically with the Zoom property.
Map control and Google license
Related Examples:
|
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|