var receiverzoom = 0; var map; var scintmap; var scintmapOnOff = 1; var nodetails; var brazilIconButton; var scintmapButton; var prnMark = []; function abrir(page){ this.page = page; browser = navigator.appName; if(browser=="Microsoft Internet Explorer"){ window.location.href = 'http://www.inpe.br/scintec/downloadSvgPt?file='+page; }else { window.location.href = 'http://www.inpe.br/scintec/images/svgImages/'+page ; } } function player(){ browser = navigator.appName; if(browser=="Microsoft Internet Explorer"){ window.location.href = 'http://www.adobe.com/svg/viewer/install/'; } else { alert("For Internet Explorer only"); } } function Atualizacao(){ alert("Não tem dados da ultima noite"); } function Maintenance(){ alert("in Maintenance"); } function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(-14.5, -52.7), 4); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.addControl(new BackControl()); map.addControl(new InpeLogoControl()); map.addControl(new ScintmapControl()); map.addControl(new LegendControl()); var boundaries = new GLatLngBounds(new GLatLng(-37, -86), new GLatLng(16, -25.5)); scintmap = new GGroundOverlay("http://www.inpe.br/scintec/images/map_google.png", boundaries); map.addOverlay(scintmap); for (i = 15; i >= -40; i = i-5) map.addOverlay(new GPolyline([new GPoint(-85, i), new GPoint(-25, i)], "#000000", 2, 0.05)); for (i = -25; i >= -85; i = i-5) map.addOverlay(new GPolyline([new GPoint(i, 15), new GPoint(i, -40)], "#000000", 2, 0.05)); var point = new GLatLng(-19.868593, -43.961942); var receiverMark = receiverPoint(point, 'yellow', 'bht', '
Belo Horizonte, BR (Lat: -19.868593, Lon: -43.961942)
Universidade Federal de Belo Horizonte (UFMG) - Responsible:
Last information:
2012-02-09 10:31:00 LT
(1min atrás)
Satellites:
(Total:8)

0.07

0.06

0.06

0.08

0.06
27°

0.05
45°

0.06

0.05
', ''); map.addOverlay(receiverMark); var point = new GLatLng(2.834376, -60.693921); var receiverMark = receiverPoint(point, 'green', 'boa', '
Boa Vista, BR (Lat: 2.834376, Lon: -60.693921)
Responsible:
Last information:
2012-02-09 10:31:17 LT
(49s atrás)
Satellites:
(Total:9)

0.11
20°

0.07
27°

0.06
42°

0.11
11°

0.06
58°

0.08
26°

0.06
55°

0.11
14°

0.06
42°
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-15.764318, -47.869295); var receiverMark = receiverPoint(point, 'gray', 'bsb', '
(Lat: -15.764318, Lon: -47.869295)
Universidade de Brasilia (UNB) - Responsible:
Last information:
2012-02-05 04:54:50 LT
(4 dias atrás)
Satellites:
(Total:10)

0.01
66°

0.03
21°

0.02
45°

0.03
29°

0.02
26°

0.06
52°

0.03
42°

0.03
25°

0.08
12°

0.03
52°
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-15.555244, -56.069893); var receiverMark = receiverPoint(point, 'gray', 'cba', '
Cuiabá, BR (Lat: -15.555244, Lon: -56.069893)
Instituto Nacional de Pesquisas Espaciais (INPE) - Responsible:
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-22.702242, -45.013799); var receiverMark = receiverPoint(point, 'green', 'chp', '
Cachoeira Paulista, BR (Lat: -22.702242, Lon: -45.013799)
Instituto Nacional de Pesquisas Espaciais (INPE) - Responsible:
Last information:
2012-02-09 10:31:07 LT
(59s atrás)
Satellites:
(Total:8)

0.04
28°

0.04
29°

0.03
44°

0.07
24°

0.05
24°

0.03
41°

0.04
32°

0.04
69°
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-5.836162, -35.2077); var receiverMark = receiverPoint(point, 'gray', 'ntl', '
Natal, BR (Lat: -5.836162, Lon: -35.2077)
Responsible:
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-22.120054, -51.40864); var receiverMark = receiverPoint(point, 'yellow', 'ppt', '
Presidente Prudente, BR (Lat: -22.120054, Lon: -51.40864)
Universidade Estadual de São Paulo (UNESP) - Responsible:
Last information:
2012-02-09 10:31:05 LT
(1min atrás)
Satellites:
(Total:8)

0.05

0.05

0.06

0.05

-1.00
20°

0.01
40°

0.03

0.04
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-23.207675, -45.859818); var receiverMark = receiverPoint(point, 'green', 'sjc', '
São José dos Campos, BR (Lat: -23.207675, Lon: -45.859818)
Instituto Nacional de Pesquisas Espaciais (INPE)
Last information:
2012-02-09 10:31:19 LT
(47s atrás)
Satellites:
(Total:8)

0.05

0.03

0.03

0.06

0.03
23°

0.03
40°

0.03

0.02
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-2.593415, -44.212277); var receiverMark = receiverPoint(point, 'green', 'slz', '
São Luís, BR (Lat: -2.593415, Lon: -44.212277)
Instituto Nacional de Pesquisas Espaciais (INPE)
Last information:
2012-02-09 10:31:41 LT
(25s atrás)
Satellites:
(Total:10)

0.07
18°

0.06
26°

0.09
19°

0.09
23°

0.04
44°

0.05
40°

0.05
65°

0.13
13°

0.21
13°

0.06
46°
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-29.7126, -53.717199); var receiverMark = receiverPoint(point, 'gray', 'stm', '
Santa Maria, BR (Lat: -29.7126, Lon: -53.717199)
Instituto Nacional de Pesquisas Espaciais (INPE)
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-26.512, -51.9857); var receiverMark = receiverPoint(point, 'gray', 'plm', '
Palmas, BR (Lat: -26.512, Lon: -51.9857)
Instituto Nacional de Pesquisas Espaciais (INPE)
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-3.10194, -59.9745); var receiverMark = receiverPoint(point, 'gray', 'man', '
Manaus, BR (Lat: -3.10194, Lon: -59.9745)
Instituto Nacional de Pesquisas Espaciais (INPE)
', ''); map.addOverlay(receiverMark); var point = new GLatLng(-1.31536, -48.28837); var receiverMark = receiverPoint(point, 'gray', 'blm', '
Belem, BR (Lat: -1.31536, Lon: -48.28837)
Instituto Nacional de Pesquisas Espaciais (INPE)
', ''); map.addOverlay(receiverMark); nodetails = ''; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= ' '; nodetails+= '
Caption > 3min
Online > 6min
> 1min Offline
'; nodetails+= '
'; nodetails+= '
Network Status: 46% | Scintillation Map: On
'; nodetails+= ' Larger scintillation: 0.21 in the satellite 26 from São Luís, BR.'; nodetails+= '
'; nodetails+= '
'; document.getElementById("details").innerHTML = nodetails; } } function receiverPoint(point, color, receiver, text, extra) { var newicon = new GIcon(); newicon.image = "/scintec/images/googlemaps/gps_"+color+".png"; newicon.iconSize = new GSize(20, 20); newicon.iconAnchor = new GPoint(10, 10); newicon.infoWindowAnchor = new GPoint(10, 10); markerOptions = { icon:newicon }; var marker = new GMarker(point, markerOptions); GEvent.addListener(marker, "mouseover", function() { document.getElementById("details").innerHTML = text; showPrns(receiver); }); GEvent.addListener(marker, "mouseout", function() { if (!receiverzoom) document.getElementById("details").innerHTML = nodetails; hidePrns(); }); GEvent.addListener(marker, "click", function() { // open('http://www.inpe.br/scintec/status?id='+receiver); //Alteração por Anderson Dutra if (receiver == "bht"){ marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation Animated
' +'Azimuth/Elevation Image
' +'Error Pos
' ); } else if (receiver == "bsb") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation Animated
' +'Azimuth/Elevation Image
' +'Error Pos
' ); } else if (receiver == "boa") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation
' +'Azimuth/Elevation Image
' +'Error Pos
' ); } else if (receiver == "cba") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation Animated
' +'Azimuth/Elevation Image
' +'Error Pos
' ); }else if (receiver == "chp") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation
' +'Azimuth/Elevation Image
' +'Error Pos
' ); }else if (receiver == "plm") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth Animated
' +'Azimuth Image
' +'Error Pos
' ); }else if (receiver == "ppt") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation
' +'Azimuth/Elevation Image
' +'Error Pos
' ); } else if (receiver == "sjc") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation Animated
' +'Azimuth/Elevation Image
' +'Error Pos
' ); }else if (receiver == "slz") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation Animated
' +'Azimuth/Elevation Image
' +'Error Pos
' ); }else if (receiver == "ntl") { marker.openInfoWindowHtml( 'S4 Status
' +'Azimuth/Elevation Animated
' +'Azimuth/Elevation Image
' +'Error Pos
' ); } // receiverZoomIn(point); // marker.openInfoWindowHtml(extra); // document.getElementById("details").innerHTML = text; }); return marker; } function prnPoint(point, number) { var newicon = new GIcon(); newicon.image = "/scintec/images/googlemaps/prn"+number+".png"; newicon.iconSize = new GSize(20, 20); newicon.iconAnchor = new GPoint(12.5, 12.5); markerOptions = { icon:newicon }; var marker = new GMarker(point, markerOptions); return marker; } function scintillationMap(state) { if (!state) { if (scintmapOnOff == 1) state = 'off'; else state = 'on'; } if (state == 'on') { map.addOverlay(scintmap); scintmapOnOff = 1; } if (state == 'off') { map.removeOverlay(scintmap); scintmapOnOff = 0; } } function receiverZoomIn(point) { scintillationMap('off'); map.setMapType(G_HYBRID_MAP); map.setCenter(point, 17); receiverzoom = 1; brazilIconButton.style.display = "block"; // marker.openInfoWindowHtml(''); // document.getElementById("map_canvas").style.height = "250px"; } function receiverZoomOut() { scintillationMap('on'); map.setMapType(G_NORMAL_MAP); map.setCenter(new GLatLng(-14, -53), 4); receiverzoom = 0; brazilIconButton.style.display = "none"; document.getElementById("details").innerHTML = nodetails; } function showPrns(receiver) { switch(receiver) { case 'bht': break; case 'boa': break; case 'bsb': break; case 'cba': break; case 'chp': break; case 'ntl': break; case 'ppt': break; case 'sjc': break; case 'slz': break; case 'stm': break; case 'plm': break; case 'man': break; case 'blm': break; } for (var i = 0; i < prnMark.length; i++) map.addOverlay(prnMark[i]); } function hidePrns() { for (var i = 0; i < prnMark.length; i++) map.removeOverlay(prnMark[i]); prnMark = []; } function ScintmapControl() {} ScintmapControl.prototype = new GControl(); ScintmapControl.prototype.initialize = function(map) { scintmapButton = document.createElement("div"); scintmapButton.style.color = "#000000"; scintmapButton.style.backgroundColor = "white"; scintmapButton.style.font = "12px Arial"; scintmapButton.style.border = "1px solid black"; scintmapButton.style.padding = "1px"; scintmapButton.style.marginBottom = "1px"; scintmapButton.style.textAlign = "center"; scintmapButton.style.width = "70px"; scintmapButton.style.height = "14px"; scintmapButton.style.cursor = "pointer"; scintmapButton.appendChild(document.createTextNode("Scintillation")); GEvent.addDomListener(scintmapButton, "click", function() { scintillationMap() }); map.getContainer().appendChild(scintmapButton); return scintmapButton; } ScintmapControl.prototype.getDefaultPosition = function() { return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(212, 7)); } function BackControl() {} BackControl.prototype = new GControl(); BackControl.prototype.initialize = function(map) { brazilIconButton = document.createElement("div"); brazilIconButton.style.cursor = "pointer"; brazilIconButton.style.display = "none"; brazilIconButton.innerHTML="\"\""; GEvent.addDomListener(brazilIconButton, "click", function() { receiverZoomOut(); }); map.getContainer().appendChild(brazilIconButton); return brazilIconButton; } BackControl.prototype.getDefaultPosition = function() { return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(4, 100)); } function InpeLogoControl() {} InpeLogoControl.prototype = new GControl(); InpeLogoControl.prototype.initialize = function() { var contents = document.createElement("div"); contents.style.width="63px"; contents.style.height="34px"; contents.innerHTML="\"\""; map.getContainer().appendChild(contents); return contents; } InpeLogoControl.prototype.printable=function() { return true }; InpeLogoControl.prototype.selectable=function() { return true }; InpeLogoControl.prototype.getDefaultPosition = function() { return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(2, 40)); } function LegendControl() {} LegendControl.prototype = new GControl(); LegendControl.prototype.initialize = function() { var contents = document.createElement("div"); contents.style.width="43px"; contents.style.height="150px"; contents.innerHTML="\"\""; map.getContainer().appendChild(contents); return contents; } LegendControl.prototype.printable = function() { return true }; LegendControl.prototype.selectable = function() { return true }; LegendControl.prototype.getDefaultPosition = function() { return new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(15, 15)); }