diff --git a/README-query.md b/README-query.md index a248e4b..25522fd 100644 --- a/README-query.md +++ b/README-query.md @@ -56,6 +56,7 @@ See the main readme for more exapmles on how to use the filters - centerReceiver - conter the view on receiver position. - nowebgl - force rendering without WebGL. - tableInView - button V / only show aircraft in view in the table +- screenshot - For automatic screenshotting, disables updates after the first load of all aircraft in view ## Toggles diff --git a/html/script.js b/html/script.js index ae4c31c..669b781 100644 --- a/html/script.js +++ b/html/script.js @@ -411,7 +411,6 @@ function db_load_type_cache() { g.planesOrdered[i].setTypeData(); } }); - refresh(); } g.afterLoad = []; @@ -439,8 +438,17 @@ function afterFirstFetch() { geoMag = geoMagFactory(cof2Obj()); db_load_type_cache(); - if (typeof load_gt != 'undefined' && load_gt) { load_gt(); } - if (typeof load_fi != 'undefined' && load_fi) { load_fi(); } + refresh(); + + if (limitUpdates != 0) { + if (typeof load_gt != 'undefined' && load_gt) { load_gt(); } + if (typeof load_fi != 'undefined' && load_fi) { load_fi(); } + } + + if (usp.has('screenshot')) { + clearIntervalTimers('silent'); + } + console.timeEnd('afterFirstFetch'); }, 150); } @@ -742,6 +750,10 @@ function initPage() { limitUpdates = tmp; } + if (usp.has('screenshot')) { + limitUpdates = 0; + } + if (usp.has('nowebgl')) { loStore['webgl'] = "false"; }