GIS view multiple devices one location

Document ID : KB000013413
Last Modified Date : 14/02/2018
Show Technical Document Details

If you have multiple devices that have the same Location attribute (0x23000d) the Spectrum GIS view will display only one device on the map. 

This looks like a common issue with google maps and markers see

Is there a way to work-around the problem so that I can see all devices?


The Spectrum GIS View can be modified to add a small offset to the current Location making the devices position unique.


Log into the OneClick system as the user that owns the Spectrum installation

cd to the $SPECROOT/tomcat/webapps/spectrum/console directory

Make a backup copy of the gis-view.jsp file

Edit the gis-view.jsp file and modify the line that reads

position: new google.maps.LatLng(results[0], results[0].geometry.location.lng()), 


position: new google.maps.LatLng(results[0] + (Math.random() -.5) / 1500, results[0].geometry.location.lng() + (Math.random() -.5) / 1500), 


This will add small offset to the markers making their position unique.  

Refresh the GIS View page. Now, zooming in the map you should be able to see all devices.