DX NetOps

 View Only
Expand all | Collapse all

Spectrum GIS and IE or FireFox

  • 1.  Spectrum GIS and IE or FireFox

    Posted Dec 13, 2017 10:41 AM

    Anyone know how to get this to work?  I am not savvy with the APIs, but ultimately I need to get this to work on Maps and Google Earth.



  • 2.  Re: Spectrum GIS and IE or FireFox

    Broadcom Employee
    Posted Dec 13, 2017 11:52 AM

    Hi Mike,

     

    You will need to go out to Google and request an 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

     

    Then modify the $SPECROOT/tomcat/webapps/spectrum/console/googleAPIKEY.config file and enter your key in the API_KEY=<new_api_key> line. Also make sure the UseLicense option is set to yes, and save the changes to the file.

     

    You will also need to decide if you want to populate the GIS view with devices contained in a Global Collection, or by IP Address. By default, Spectrum will use the Global Collection option. To point the GIS view to the correct Global Collection, modify the $SPECROOT/tomcat/webapps/specrtrum/console/gisGC.config file. GCName=<the name of the GC you want to use>.

     

    To use IP Addresses, and not a Global Collection, set UseGisGCconfig=no.

     

    There is no need to bounce anything, since this file is read each time the GIS view is launched.

     

    Then go to $SPECROOT/tomcat/webapps/spectrum/console/gisIPAddressList.config file and enter the list out the IP Addresses you want displayed here. One IP per line. Be sure there are no spaces before or after each IP.

     

    For more information see:

    TEC1086811 "CA Spectrum 10.0 and Google Maps integration (GIS view)"

    TEC1829588 "The CA Spectrum OneClick GIS View map does not open"

    TEC1277439 "GIS view multiple devices one location"

    TEC1178723 "Is there an easy way to display the model location in the text pop-up when you hover over a location in the Spectrum GIS View"

     TEC1098803 "GIS View Error in NAT environment"    

     

    Regards,

    Brad                



  • 3.  Re: Spectrum GIS and IE or FireFox

    Posted Dec 13, 2017 01:02 PM

    "Then go to $SPECROOT/tomcat/webapps/spectrum/console/gisIPAddressList.config file and enter the list out the IP Addresses you want displayed here. One IP per line. Be sure there are no spaces before or after each IP."

     

    Is this the list of landscape IPs or device IPs to be discovered?



  • 4.  Re: Spectrum GIS and IE or FireFox

    Broadcom Employee
    Posted Dec 13, 2017 01:53 PM

    Hi Mike,

     

    That would be a list of the device IPs you want displayed in the GIS View.

     

    Thank you,

    Brad



  • 5.  Re: Spectrum GIS and IE or FireFox

    Posted Dec 13, 2017 01:03 PM

    I am still getting the Java error with GIS.



  • 6.  Re: Spectrum GIS and IE or FireFox

    Posted Dec 13, 2017 01:04 PM

    "Oops! Something went wrong.

    This page didn't load Google Maps correctly. See the JavaScript console for technical details."


  • 7.  Re: Spectrum GIS and IE or FireFox

    Broadcom Employee
    Posted Dec 13, 2017 01:56 PM

    Hi Mike,

     

    Can you enable the debug that is discussed in TEC1829588 "The CA Spectrum OneClick GIS View map does not open" https://support.ca.com/us/knowledge-base-articles.TEC1829588.html? let me know what errors are returned.

     

    Thank you,

    Brad



  • 8.  Re: Spectrum GIS and IE or FireFox

    Posted Dec 13, 2017 02:09 PM

    From the Debugger

    HTML1300: Navigation occurred.
    gis-view.jsp
    HTML1503: Unexpected start tag.
    gis-view.jsp (14,1)
    HTML1512: Unmatched end tag.
    gis-view.jsp (23,1)
    SCRIPT1004: Expected ';'
    gis-view.jsp (241,31)
    HTML1513: Extra "<html>" tag found. Only one "<html>" tag should exist per document.
    gis-view.jsp (262,1)
    HTML1503: Unexpected start tag.
    gis-view.jsp (263,3)
    HTML1512: Unmatched end tag.
    gis-view.jsp (285,3)
    Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
    Your site URL to be authorized:



  • 9.  Re: Spectrum GIS and IE or FireFox
    Best Answer

    Broadcom Employee
    Posted Dec 13, 2017 02:24 PM

    Hi Mike,

     

    Please open a case with CA Spectrum Support. Include copies of the following files:

    • $SPECROOT/Install-Tools/.history
    • $SPECROOT/tomcat/webapps/spectrum/console/googleAPIKEY.config
    • $SPECROOT/tomcat/webapps/spectrum/console/gisGC.config
    • $SPECROOT/tomcat/webapps/spectrum/console/gisIPAddressList.config
    • $SPECROOT/tomcat/webapps/spectrum/console/gis-view.jsp
    • Screen shot of the debug output is available

     

    Thank you,

    Brad

     

     



  • 10.  Re: Spectrum GIS and IE or FireFox

    Posted Dec 21, 2017 09:48 AM

    I found the actual fix for this.  I had already added the new API key, but still getting the "RefererNotAllowedMapError" error.

     

    How to Fix RefererNotAllowedMapError

    RefererNotAllowedMapError is the most common error we’ve seen apart from not using a key. The console will also say, “Your site URL to be authorized”. It relates to Step 3 above when creating your key. Here’s how to fix the error.

    1. Go to https://console.developers.google.com/apis/credentials
    2. Click your API key’s name to edit its settings.
    3. Under Accept requests, make sure you have the two entries below (replacing yourname.com with your own domain). Type the first entry then hit enter on your keyboard to add it. Repeat to add the second entry. Having both entries (with asterisks) will help ensure your maps work on any URL of your website.
      yourname.com/*
      *.yourname.com/*

      Google Maps API Key Referer

    4. Click the Save button then wait a few minutes for the change to take effect (Google says it can take up to 5 minutes).