diff --git a/css/main.css b/css/main.css index eac4c38..5c6977c 100644 --- a/css/main.css +++ b/css/main.css @@ -754,6 +754,19 @@ header .search form input[type='submit'] { text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white; } +.gold { + filter: drop-shadow(1px 0px 0 gold) drop-shadow(0px 1px 0 gold) drop-shadow(-1px -0px 0 gold) drop-shadow(-0px -1px 0 gold); +} +.silver { + filter: drop-shadow(1px 0px 0 grey) drop-shadow(0px 1px 0 grey) drop-shadow(-1px -0px 0 grey) drop-shadow(-0px -1px 0 grey); +} +.bronze { + filter: drop-shadow(1px 0px 0 chocolate) drop-shadow(0px 1px 0 chocolate) drop-shadow(-1px -0px 0 chocolate) drop-shadow(-0px -1px 0 chocolate); +} +.white { + filter: drop-shadow(1px 0px 0 white) drop-shadow(0px 1px 0 white) drop-shadow(-1px -0px 0 white) drop-shadow(-0px -1px 0 white); +} + @media only screen and (min-width: 900px) { } diff --git a/js/tracker.js b/js/tracker.js index 6ca48cd..78478fd 100644 --- a/js/tracker.js +++ b/js/tracker.js @@ -345,6 +345,8 @@ function clean_refresh(text, force, history_step) { if(text == wvar.mode && !force) return false; stopAjax(); + live_data_buffer.positions.position=[]; + if (clientActive) { clientActive = false; if (!document.getElementById("stTimer").classList.contains('friendly-dtime') ) { @@ -3290,14 +3292,6 @@ function updateReceiverMarker(receiver) { // init a marker if the receiver doesn't already have one if(!receiver.marker) { - - if (receiver.software == "radiosonde_auto_rx") { - //future option to show different icon per software - } else if (receiver.software == "rdzTTGO") { - //future option to show different icon per software - } else { - //future option to show different icon per software - } receiverIcon = new L.icon({ iconUrl: host_url + markers_url + "antenna-green.png", @@ -3311,7 +3305,10 @@ function updateReceiverMarker(receiver) { title: receiver.name, zIndexOffset: Z_STATION, }); - + + //receiver.infobox = new L.popup({ autoClose: false, closeOnClick: false, className: "gold" }).setContent(receiver.description); + //receiver.infobox = new L.popup({ autoClose: false, closeOnClick: false, className: "silver" }).setContent(receiver.description); + //receiver.infobox = new L.popup({ autoClose: false, closeOnClick: false, className: "bronze" }).setContent(receiver.description); receiver.infobox = new L.popup({ autoClose: false, closeOnClick: false }).setContent(receiver.description); receiver.marker.bindPopup(receiver.infobox);