Welcome to Radarspotting. Please login or sign up.

May 02, 2024, 03:03:39 PM

Login with username, password and session length

New Members

New Members

You should get an activation email when you join.  If not, please use the Contact option.

Define distance filter via JavaScript for adsbexchange

Started by rdjsb, August 25, 2017, 09:31:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rdjsb

I can see all the aircraft from my own receiver and the aircraft from http://www.adsbexchange.com in my Virtual Radar Server.
But all the aircraft worldwide from http://www.adsbexchange.com are shown on the map and in te list. I want to restrane the amount of aircraft I see, because my Virtual Radar Server gets very slow when showing the whole world while I only need to see Europe.

I know that I can enable a distance filters in the filtermenu (via options), but I want to do this via a JavaScript (via Custom Content plugin) like the example in http://www.virtualradarserver.co.uk/Documentation/CustomContent/ChangeSettings.aspx.

I only want to see aircraft at a distance between 0 and 600 km from my own receiver location. So I like to put this Variables in the JavaScript.
If possible I like to hide the option that users can not alter this distance. So it would be nice that the distance filter is not visible for users.

Is there anyone who has such a script?

I hope someone can help. I saw multiple people struggle with the large amount of data on the map/list from http://www.adsbexchange.com, but still no joy. Maybe this helps more people than just me.

Regards,
Roland

wylamek

You should ask developers on GitHub repositories I think.