BEACONS – 47GHz
The following uses Google Maps to show the locations of 47GHz Microwave Beacons in the UK:-
|
var gmarkers = []; var myicon = ""; var htmls = []; var htmls1 = []; var htmls2 = []; var navlinks_html = ""; var menulinks_html = ""; var openedWindow = null ; // Remember the opened window // Define extra colored icons - as default is red var gicons = []; gicons[""] = "https://www.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png" ; gicons["red"] = "https://www.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png" ; //gicons["red"].iconSize = new GSize(32,32); gicons["blue"] = "https://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png" ; //gicons["blue"].iconSize = new GSize(32,32); gicons["green"] = "https://www.google.com/intl/en_us/mapfiles/ms/micons/green-dot.png" ; //gicons["green"].iconSize = new GSize(32,32); gicons["yellow"] = "https://www.google.com/intl/en_us/mapfiles/ms/micons/yellow-dot.png" ; //gicons["yellow"].iconSize = new GSize(32,32); gicons["purple"] = "https://www.google.com/intl/en_us/mapfiles/ms/micons/purple-dot.png" ; //gicons["purple"].iconSize = new GSize(32,32); gicons["orange"] = "https://www.google.com/intl/en_us/mapfiles/ms/micons/orange-dot.png" ; //gicons["orange"].iconSize = new GSize(32,32); gicons["pink"] = "https://www.google.com/intl/en_us/mapfiles/ms/micons/pink-dot.png" ; //gicons["pink"].iconSize = new GSize(32,32); function createMarker(point,callsign, html1, html2, myicon) { var marker = new google.maps.Marker({ position: point, map: map, icon: gicons[myicon], title: callsign }); gmarkers.push(marker); htmls1.push(html1); htmls2.push(html2); // var id = 55; google.maps.event.addListener(marker, 'click', function() { beaconinfo_html= html1+ ' ' + html2 ; document.getElementById("beaconinfo").innerHTML = beaconinfo_html; var infowindow = new google.maps.InfoWindow({ content: html1 // NB html2 not used unless tabs available }); if (openedWindow != null) openedWindow.close(); infowindow.open(map, marker); openedWindow = infowindow ; // remember it }); }; // Beacon menu function myclick(id) { // map.setCenter(gmarkers[i].getPosition()); google.maps.event.trigger(gmarkers[id], 'click'); beaconinfo_html= htmls1[id]+ ' ' + htmls2[id] ; document.getElementById("beaconinfo").innerHTML = beaconinfo_html; } //Map Options such as Reset, Toggle map type function menuclick(id) { if (id==1) { var pt = new google.maps.LatLng(54, -1); map.setCenter(pt); map.setZoom(5); map.setMapTypeId(google.maps.MapTypeId.ROADMAP); if (openedWindow != null) openedWindow.close(); beaconinfo_html= " " ; document.getElementById("beaconinfo").innerHTML = beaconinfo_html; }; if (id==2) { var currentMapType = map.getMapTypeId(); if (currentMapType == "roadmap") { map.setMapTypeId(google.maps.MapTypeId.TERRAIN)} if (currentMapType == "terrain") { map.setMapTypeId(google.maps.MapTypeId.HYBRID)} if (currentMapType == "hybrid") { map.setMapTypeId(google.maps.MapTypeId.ROADMAP)} if (currentMapType == "satellite") { map.setMapTypeId(google.maps.MapTypeId.ROADMAP)} } } var map; var mapOptions = { zoom:5, center: new google.maps.LatLng(54, -1), panControl: true, zoomControl: true, zoomControlOptions: { style: google.maps.ZoomControlStyle.NORMAL }, rotateControl: true, scaleControl: true, scaleControlOptions: { position: google.maps.ControlPosition.RIGHT_CENTER }, mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR }, streetViewControl: false, overviewMapControl: true, overviewMapControlOptions: {opened: true} // mapTypeId: google.maps.MapTypeId.TERRAIN }; var map = new google.maps.Map(document.getElementById("map"), mapOptions); // Close InfoWindow when clicking anywhere on the map. google.maps.event.addListener(map, 'click', function() { if (openedWindow != null) openedWindow.close(); }); // Bedford
var point = new google.maps.LatLng( 52.153510, -0.47579713 );
var marker = createMarker(point, 'GB3BED', 'GB3BED var myicon=""; // Cheltenham
//var point = new google.maps.LatLng( 51.9222, -2.0102 );
//var marker = createMarker(point, 'GB3CCX', 'GB3CCX // Cheltenham
var point = new google.maps.LatLng( 51.882993, -2.00169 );
var marker = createMarker(point, 'GB3CMB', 'GB3CMB // Kilsyth, Scotland
var point = new google.maps.LatLng( 55.9979100, -4.0362723 );
var marker = createMarker(point, 'GB3CSB', 'GB3CSB // Farnham, Hampshire
// var point = new google.maps.LatLng( 51.237884, -0.825353 );
// var marker = createMarker(point, 'GB3FNM', 'GB3FNM // Bell Hill, Dorset NGR: ST79980826
//var point = new google.maps.LatLng(50.8729 ,-2.2875);
var point = new google.maps.LatLng(50.873492, -2.285912 );
var marker = createMarker(point, 'GB3SCQ', 'GB3SCQ // Bell Hill, Dorset
// var point = new google.maps.LatLng(50.8729 ,-2.2875);
// var point = new google.maps.LatLng(50.8738500,-2.2856153);
// var marker = createMarker(point, 'G8BKE/P', 'G8BKE/P // Add more here menulinks_html = 'Options: ' + "Reset" + '<\/a> '; menulinks_html += '' + "Toggle-MapType" + '<\/a> '; // put the assembled menu/navlinks_html contents into the navbars divs document.getElementById("navlinks").innerHTML = navlinks_html; document.getElementById("menulinks").innerHTML = menulinks_html;
|
|
Notes:
Click here if you do not see the main menu bar on the left
14-Feb-2026