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
Runs the native code of Google Maps API in a Map control in Javascript.
This function is mainly used to customize the Map control of WINDEV by proposing features specific to the Google Maps API.
Example
// Centers the map on 45.20,26.51
let sCode = [
var LatLng = new google.maps.LatLng(45.20,26.51);
MapGetJSObject().panTo(LatLng);
]

MapExecuteJS(MAP_MyMap, sCode)
Syntax
<Result> = MapExecuteJS(<Map Control> , <Javascript Code>)
<Result>: Character string
  • Result of the execution of the Javascript code to run, if this code returns a result. This result is returned in string format.
  • "" (empty string) if the Javascript code returns no result.
<Map Control>: Control name
Name of Map control to use.
<Javascript Code>: Character string (with quotes)
Javascript code to run. In this code, the name of the Javascript object representing the Google map is returned by MapGetJSObject.
Remarks
  • See the Google documentation for more details (https://developers.google.com/maps/documentation/javascript/).
  • If errors are generated by the code, they can be displayed to the end user and/or prevent the Map control from operating properly.
  • The use of Google Maps API is not guaranteed in the future.
  • The use of Google Maps API is not compatible with the iOS/Android applications.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment