AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Mapa
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
Remark: 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(MyMap)
// 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
Versión mínima requerida
  • Versión 20
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local