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?

Document ID : KB000035338
Last Modified Date : 29/11/2018
Show Technical Document Details
Question:

The Spectrum GIS view displays the model name and model handle of the model when the mouse pointer is placed on the location. Can this be modified to display other data?

default_GIS.png

 

     

    Answer:

    The Spectrum GIS View can be modified to display additional data when the mouse pointer is placed on the location.

    1. Log into the OneClick system as the user that owns the Spectrum installation
    2. cd to the $SPECROOT/tomcat/webapps/spectrum/console directory
    3. Make a backup copy of the gis-view.jsp file
    4. Edit the gis-view.jsp file and modify the line that reads "var marker_title="Model Name   :" +model_name+"\n" + "Model Handle :" +model_handle;". For example, to add the Location attribute, change it to read "var marker_title="Model Name   :" +model_name+"\n" + "Model Handle :" +model_handle+"\n" + "Location :" +location;". 
    5. Refresh the GIS View page. The value of the Location attribute (if populated on the model) should now display.
    new_GIS.png