ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Map functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the API instance of a Map control. This allows you to handle the Map control in a JavaScript code directly.
Combined with MapConfigureGglAPI, this function allows you to manage additional parameters not proposed by default by the Map control.
Note In WINDEV, this function can be used in the Javascript code executed by function MapExecuteJS to manipulate the Map control field in the WINDEV application.
Example
// Code serveur
MapConfigureGglAPI("libraries=geometry,places","language=fr")
// Code navigateur
MaCarte is object dynamic
MaCarte = MapGetJSObject(CARTE_Navigateur)
RechercheAdresse(MaCarte)
// JavaScript function that uses the dynamic object
FindAddress(MyMap)
{
var infowindow;
// Rome: 41.873144, 12.480391
var pyrmont = new google.maps.LatLng(41.873144, 12.480391);
var request = {
location: pyrmont,
radius: 500,
types: ['store']
};
infowindow = new google.maps.InfoWindow();
var service = new google.maps.places.PlacesService(MyMap);
service.nearbySearch(request, ReturnAddress_WB);

}
Syntax
<Result> = MapGetJSObject([<Map control>])
<Result>: Dynamic object
Name of Dynamic Object variable containing the instance of the API of Map control.
<Map control>: Optional control name
Name of the Map control to be used. If this parameter corresponds to an empty string ("") or is not specified, the Map control to which the current event belongs will be used.
Component: WDJS.DLL
Minimum version required
  • Version 20
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help