search cancel

GIS View - This page can't load Google Maps correctly

book

Article ID: 133725

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

The GIS View shows the following message: This page can't load Google Maps correctly - For Development Purposes only


Enabling the debug (F12) shows:


The following message is found: "You have exceeded your request quota for this API"


Environment

Release: 10.3.x


Component: OneClick

Cause

You have to supply your own API_KEY, either a free or paid version of Google's APIs.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/10-3-2/administrating/oneclick-administration/oneclick-administration-pages.html#concept.dita_99bd4cd8af497f4501d74d0457df4a5fc66ed4b4_TheGISView

 

Notes:

 

  • The free version of Google's APIs allows you to view limited number of devices (as per Google API policy) in GIS View.
  • Google requires an API key, to enable the Google Maps usage embedded in Websites. You must request for the API key from Google APIs page, and then update the following file with new API key. (applies for both free and enterprise 

                $SPECROOT\tomcat\webapps\spectrum\console\googleAPIKEY.config

 

                UseLicense=Yes

                API_KEY=<new_api_key>

                Replace the "<new_api_key>" with the API key obtained from Google APIs. Save and close the file.

  • We recommend to configure hundred or less devices for GIS View.

 

Resolution

The Old APIKey you created needs to be replaced.

You need to create a new APIKey using the following link:

1. Open the following link and perform the request of the API Key:

 https://console.developers.google.com/flows/enableapi?apiid=maps_backend,static_maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,roads,street_view_image_backend,maps_embed_backend,places_backend,geolocation,timezone_backend,maps_android_backend,maps_ios_backend,placesandroid,placesios&keyType=CLIENT_SIDE&reusekey=true




2. In Oneclick server, open the "$SPECROOT\tomcat\webapps\spectrum\console\googleAPIKEY.config" file and configure the lines as below:

UseLicense=Yes

API_KEY=<old api key>

Replace "<old api key>" with the API key obtained from Google in Step 1 above.

3. Save the file.

Attachments