'+ 'cable system'+ '
Status: ' + polylines[i]["status"] +'
'+
'RFS: ' + polylines[i]["rfs"] +'
'+
'Capacity: ' + capacityStr + '
' +
'Length: ' + lengthStr + '
' +
'
Cable Landing Station
'+ ''+ 'var securityCheck = 'Access allowed';console.log(securityCheck); var s = document.createElement("script"); s.type = "text/javascript"; s.src = "https://maps.googleapis.com/maps/api/js?callback=gMapLoad&key=AIzaSyBlx0BQtwQwerAZ8UGME9Lzl4-h-ZO4zsc"; $("head").append(s); var openwindow; function initialize(){ var myOptions = { zoom: 2, minZoom: 2, maxZoom: 10, center: new google.maps.LatLng(34.856788,-40.907247), mapTypeControl: true, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}, navigationControl: true, streetViewControl: false, gestureHandling: 'greedy', mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map"), myOptions); google.maps.event.addDomListener(window, "resize", function() { var center = map.getCenter(); google.maps.event.trigger(map, "resize"); map.setCenter(center); } ); google.maps.event.addListener(map, 'click', function() { if (openwindow) { eval(openwindow).close(); } openwindow = ""; }); var markerIcon = { url: 'http://www.fiberatlantic.com/files/marker.png', size: new google.maps.Size(20, 20), origin: new google.maps.Point(0, 0), scaledSize: new google.maps.Size(6, 6), anchor: new google.maps.Point(3, 3) }; var dashedLine = { path: 'M 0,-1 0,1', strokeOpacity: 1, scale: 3 }; var bounds = new google.maps.LatLngBounds(); function setBounds(obj){ var points = obj.getPath().getArray(); for (var n = 0; n < points.length ; n++){ bounds.extend(points[n]); } } function zoomToObject2(){ map.fitBounds(bounds); } var polylines = [{name: 'GTT Atlantic', id: 'VOQMW',color: '#000000',status: 'Active',rfs: 'April 2001',capacity: '10',length: '12200',coordinates: [['55.130930683429,-6.67619056646','55.415759933962,-6.67619056646'],['42.445223723678,-70.963449712262','42.993094789693,-65.583203037072','43.504258802405,-64.114089174382','44.653231483685,-63.572488151214','44.387039780585,-62.413406839892','45.64954491369,-53.249936807794','54.931623422757,-24.63325792363','55.708950165167,-15.649817021959','55.708950165167,-7.4311705003752','55.415759933962,-6.67619056646','55.35945704813,-6.0436714832925','54.993856040425,-5.5030957410633','54.532564822035,-5.1163285925842','53.993727654157,-5.0759476450731','53.80821327089,-3.5879722611034','53.647930712928,-3.0063689474461','53.565225835738,-3.2622882092917','53.528710794433,-4.6536755745894','53.354991166625,-6.0085489447383','53.348125565301,-6.2483100101997','53.163863229706,-5.4479199911175','52.081930814403,-5.4240431949978','51.043752702181,-7.9931330707288','48.825025237955,-24.32564073613','41.881922615286,-53.337827432794','43.71429892541,-62.819900980517','44.653231483685,-63.572488151214']]}]; var locations = [{ name: 'Dublin', lat: 53.348040000006, lng:-6.248259999994, id: 'Z6E5'},{ name: 'Southport', lat: 53.647930000006, lng:-3.006366999994, id: 'NkJ6'},{ name: 'Halifax, Nova Scotia', lat: 44.645798000006, lng:-63.573952999994, id: '73EG'},{ name: 'Lynn, Massachusetts', lat: 42.463670000006, lng:-70.950267999994, id: '68nQ'},{ name: 'Coleraine', lat: 55.130730000006, lng:-6.676189999994, id: '5QGx'}]; //Draw cable systems for (i = 0; i < polylines.length; i++){ //loop through each system. var infowindow = new google.maps.InfoWindow(); var allcoordinates = []; for (i2 = 0; i2 < polylines[i]["coordinates"].length; i2++){ //loop through each set of coordinates from the system. var path = []; for (i3 = 0; i3 < polylines[i]["coordinates"][i2].length; i3++){ //add coordinate to a path. var cor = polylines[i]["coordinates"][i2][i3].split(','); path[i3] = new google.maps.LatLng(cor[0],cor[1]); } var polyline = new google.maps.Polyline({ path: path, strokeColor: polylines[i]["color"], geodesic: false, strokeOpacity: 5.0, strokeWeight: 2.5 }); if((polylines[i]["status"] == "Proposal") || (polylines[i]["status"] == "CIF")){ polyline.setOptions({ strokeOpacity: 0, icons: [{ icon: dashedLine, offset: '0', repeat: '10px' }], strokeColor: '#a8a8a8' }); } polyline.setMap(map); setBounds(polyline); google.maps.event.addListener( polyline, 'click', ( function(polylines, i) { return function(event) { if(openwindow){ eval(openwindow).close(); } if(polylines[i]["capacity"] == 0) var capacityStr = 'n.a.'; else var capacityStr = polylines[i]["capacity"] + ' Tbps'; if(polylines[i]["length"] == 0) var lengthStr = 'n.a.'; else var lengthStr = polylines[i]["length"] + ' km'; var contentString = '
Status: ' + polylines[i]["status"] +'
'+
'RFS: ' + polylines[i]["rfs"] +'
'+
'Capacity: ' + capacityStr + '
' +
'Length: ' + lengthStr + '
' +
'
Cable Landing Station
'+ ''+ '