From c6a8a860d0a6fb830bc72dc19fc2b26c369ce23b Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 15 Aug 2021 20:41:48 +0200 Subject: [PATCH] selectall performance with many filtered aircraft --- html/layers.js | 2 +- html/script.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/html/layers.js b/html/layers.js index c61627e..29eb676 100644 --- a/html/layers.js +++ b/html/layers.js @@ -86,7 +86,7 @@ function createBaseLayers() { attributions: 'Powered by Esri.com' + '— Sources: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community', attributionsCollapsible: false, - maxZoom: 17, + maxZoom: 16, }), name: 'esri_gray', title: 'ESRI.com Gray', diff --git a/html/script.js b/html/script.js index fa77824..5a0fc27 100644 --- a/html/script.js +++ b/html/script.js @@ -2149,6 +2149,10 @@ function initMap() { case "t": selectAllPlanes(); break; + case "g": + nogpsOnly = !nogpsOnly; + refreshFilter(); + break; case "h": resetMap(); break; @@ -3518,7 +3522,8 @@ function selectAllPlanes() { if (globeIndex) { for (let i in PlanesOrdered) { let plane = PlanesOrdered[i]; - plane.processTrace(); + if (plane.visible && plane.inView) + plane.processTrace(); } } refreshFeatures();