PilotAware

British Forum => Technical Support => Topic started by: gwyn_carwardine on November 03, 2023, 02:58:03 pm

Title: Possible error in radar.js
Post by: gwyn_carwardine on November 03, 2023, 02:58:03 pm
Just thought I'd mention that this looks like a cut and paste error in radar.js

        acft_1.onload = function() {
            off_ac_X[1] = (acft_1.width / 2);
            off_ac_Y[1] = (acft_0.height / 2);
            //console.log("off_ac_X[1] X=" + off_ac_X[1] + " Y=" + off_ac_Y[1]);
        }


Think the third line ought be off_ac_Y[1] = (acft_1.height / 2);
Title: Re: Possible error in radar.js
Post by: Admin on November 04, 2023, 07:42:16 am
Thanks for pointing this out
The radar is undergoing a complete re-write at the moment, so this will be deprecated in the next release