PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Returns the instance of the API of 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 run by MapExecuteJS to handle the Map control of the WINDEV application.
Example
// Server code
MapConfigureGglAPI("libraries=geometry,places","language=fr")
// Browser code
MyMap is object dynamic
MyMap = MapGetJSObject(MAP_Browser)
FindAddress()
// Javascript function that is using the dynamic object
function FindAddress()
{
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
Versions 21 and later
Name of Dynamic Object variable containing the instance of the API of Map control.
New in version 21
Name of Dynamic Object variable containing the instance of the API of Map control.
Name of Dynamic Object variable containing the instance of the API of Map control.
<Map Control>: Optional control name
Name of Map control to use. If this parameter corresponds to an empty string ("") or if it is not specified, the Map control to which the current process belongs will be used.
Components
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 20
Comments
Click [Add] to post a comment