CA Spectrum GIS View Does Not Show Device Pins/Location on the Google Map
search cancel

CA Spectrum GIS View Does Not Show Device Pins/Location on the Google Map

book

Article ID: 74022

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

The GIS View does not show device pins on the Google Map. I have configured the Location attribute to a street address for the model added to the GCDevices global collection.  When I launch the GIS view, the pins do not show.

Environment

Release:
Component: SPCOCK

Cause

There is a typo in the $Spectrum\tomcat\webapps\spectrum\console\gis-view.jsp which references localhost.

Resolution

Edit the  $Spectrum\tomcat\webapps\spectrum\console\gis-view.jsp and change the String requestRestURL entry from this:

String requestRestURL ; 
String requestURL = request.getRequestURL().toString(); 
String servletPath = request.getServletPath(); 
String appPath = "http://localhost:8080/spectrum"; 
InputStream inputStream = null; 
Properties prop = null; 
try{ 
String ipAdressesFile=appPath+"/console/gisGC.config"; 
URL url = new URL(ipAdressesFile); 

To this:

String requestRestURL ; 
String requestURL = request.getRequestURL().toString(); 
String servletPath = request.getServletPath(); 
String appPath = requestURL.substring(0, requestURL.indexOf(servletPath)); 
InputStream inputStream = null; 
Properties prop = null; 
try{ 
String ipAdressesFile=appPath+"/console/gisGC.config"; 
URL url = new URL(ipAdressesFile); 

Stop and restart Tomcat.