|
|
|
|
|
<Map>.GetJSObject (Function) In french: <Carte>.RécupèreObjetJS 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 <Map>.ExecuteJS to manipulate the Map control field in the WINDEV application.
MapConfigureGglAPI("libraries=geometry,places","language=fr")
MaCarte is object dynamic
MaCarte = CARTE_Navigateur.RécupèreObjetJS()
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
<Map control>.GetJSObject()
<Map control>: Control name Name of the Map control to be used.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|