AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Mapa
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Indicates the "Google Maps API" license key that will be used in the Map controls (of WINDEV or WEBDEV). This key may be required to use the "Google Maps API for work" features. For more details, see the "Google Maps API" license.
WEBDEV - Código ServidorPHP You also have the ability to enter the "Google Maps API" license in the description window of project ("Project" tab).
WINDEViPhone/iPad Important When calling the function MapLicenseGgl FUNCTION must be made before the Map control window is opened. If the Map control is found in the first project window, the call to MapLicenseGgl must be performed in the project initialization code.
iPhone/iPad In test mode, the Map control uses the Map control of WINDEV. This function is used to specify (if necessary) the "Google Maps API" license key in order for the Map control to be displayed properly during a GO on the development computer.
Ejemplo
// Initialize the Google key
MapLicenseGgl("ABCDEF12345789abcdef")
Sintaxis
MapLicenseGgl(<Google key>)
<Google key>: Character string or Secret string
Key supplied by Google.
Novedad versión 2025
Cadenas secretas: Si utiliza el almacén de cadenas secretas, el tipo de cadena secreta utilizado para este parámetro debe ser "ANSI o Unicode string".
Para obtener más información sobre las cadenas secretas y el almacén, consulte Almacén de cadenas secretas.
Novedad versión 2025
AndroidWidget Android Las cadenas secretas no están disponibles para este parámetro en aplicaciones Android y widgets de Android.
Observaciones
  • The use of the Map control is subject to specific terms and conditions. Check the Google license regarding the use of mapping services.

    Please note: As of June 22, 2016, the terms of use for Google's mapping services have changed. From now on, a license key must necessarily be specified to use this service. You must:
    1. Generate the key in the Google developer console (https://console.developers.google.com). The operations to perform are as follows (valid at the date this page was written):
      • Use a Google account to connect to the developer console.
      • Create a Google project if necessary.
      • Access the "API manager" of the project.
      • In the "Google Maps API" item, click the "Google Maps JavaScript API" link.
      • Click "Enable" to enable the Google Maps JavaScript API.
      • In the "Identifiers" item, expand the "Create identifiers" button.
      • Select "API key".
      • Select "API key".
        • For a WEBDEV website, select "Browser key". It is recommended to specify the domain that will use the key in order to monitor queries and avoid any fraud.
        • For a WINDEV application, select "Server key". It is recommended to specify the address that will use the key in order to monitor queries and avoid any fraud.
      • Validate the key creation and copy the key created by Google.
    2. Specify the key used in the application or site with MapLicenseGgl.
  • This function allows you to specify the license to use in order for the provider of Google Maps to give the application:
    • from June 22 2016, access to the "Google Maps JavaScript API" features.
    • access to the extended features of "Maps API for work" (greater number of queries, monitoring, quota, ...).
  • The license is applied to all the maps of the application and it will be used for all the new Map controls created after this call. We advise you to call this function in the project initialization code.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 20
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 16/05/2025

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