Display Asset Locations on a Map
Enable Google Maps for your applications to display asset locations.
About this task
Procedure
-
Access https://cloud.google.com/maps-platform/,
and follow the on-screen instructions to generate
the API key.
The API key is generated.Note: Ensure that the following APIs are enabled for the key:
- The Geocoding API
- The Maps JavaScript API
-
Modify the
userconfig.json
file located here:C:\Program Files\GE\Operations Hub\iqp-endapp\public\scripts\data
-
Update the file using the API key and version information provided by Google:
Search for
"googleMapsVersion"
and enter the version number for it.Search for[GOOGLEAPIKEY]
and replace (including the brackets) with your API key. - Save and close the file.
-
Restart the Operations Hub IQP Tomcat Web Server service.
The Google Map widget is now available for use in the application. Asset locations are now displayed on a map.