Licensing
The Google Maps JavaScript API requires a key or license from Google. For more information, see
https://developers.google.com/maps/licensing.
Apama does not provide a key or license for the Google Maps JavaScript API. However, the Thin Client can be configured to download the API using a custom URL that contains specific key or license information obtained from Google.
The custom URL is defined by creating a JavaScript file named apama_extra.js under the APAMA_WORK\dashboards folder. Users can also create the apama_extra.js file under the dashboards folder of a Designer project.
The apama_extra.js file contains just one JavaScript statement. For example,
to specify a URL containing a Google API key, add the following line:
rtv.customGoogleMapsApiBaseURL = "https://maps.googleapis.com/maps/api/js?key=YOUR_GOOGLE_API_KEY";
to specify a "Google Maps API for Work" client ID and release version 3.20:
rtv.customGoogleMapsApiBaseURL = "https://maps.googleapis.com/maps/api/js?client=YOUR_GOOGLE_CLIENT_ID&v=3.20";
If apama_extra.js is found under the dashboards folder of the Designer project, then this JavaScript file will be used for the display server deployment. Otherwise, the system will try to look for apama_extra.js under the APAMA_WORK\dashboards folder.
If no
apama_extra.js is found, the Thin Client uses the following public URL to download the latest "experimental" version of the API with no key or license information:
https://maps.googleapis.com/maps/api/js.
Important:
Please refer to
https://developers.google.com/maps/licensing for information about the license key in order to use this Google Map object.