From ae432010fe0f8979d3b24f5d059921171c17202f Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 29 May 2022 14:16:06 +0200 Subject: [PATCH] add heatmap stuff to readme --- README-query.md | 14 ++++++++++++++ html/early.js | 2 +- html/script.js | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README-query.md b/README-query.md index 5e588af..a248e4b 100644 --- a/README-query.md +++ b/README-query.md @@ -65,3 +65,17 @@ See the main readme for more exapmles on how to use the filters - desktop - force desktop view. - kiosk - force kiosk mode (tempTrails=true / hideButtons=true / userScale=2). - allTracks - enable tracks as if pressing T + +## heatmap / reaplay (only available with readsb --heatmap parameter) + +- replay - replay history of all planes +- heatmap - show a heatmap for the last 24h by default (optional: supply the maximum number of dots drawn, default 32000) +- heatDuration - how many hours to show in the heatmap +- heatEnd - how many hours to shift the heatmap time window into the past +- heatAlpha - 0.1 to 1.0 - how transparent the dots will be +- heatRadius - dot size for heatmap +- heatManualRedraw - only redraw dots when pressing r + +- realHeat - real heatmap instead of dots +- heatBlur - parameter for realHeat +- heatWeight - parameter for realHeat diff --git a/html/early.js b/html/early.js index 16d5ac6..39a85b9 100644 --- a/html/early.js +++ b/html/early.js @@ -234,7 +234,7 @@ function arraybufferRequest() { return xhrOverride; } -if (usp.has('heatmap')) { +if (usp.has('heatmap') || usp.has('realHeat')) { heatmap = {}; diff --git a/html/script.js b/html/script.js index d8e1e3d..1e7f2a8 100644 --- a/html/script.js +++ b/html/script.js @@ -1923,6 +1923,8 @@ function initMap() { layers_group = createBaseLayers(); layers = layers_group.getLayers(); + //add_kml_overlay('https://developers.google.com/kml/documentation/KML_Samples.kml', 'samples', 0.8); + siteCircleLayer = new ol.layer.Vector({ name: 'siteCircles', type: 'overlay',