From 2c2e6cd0d535313ca6e239b74b05ace4647b6ed2 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 26 Mar 2020 15:19:05 +0100 Subject: [PATCH] cmd/ursrv: Minor heatmap tweaks --- cmd/ursrv/static/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/ursrv/static/index.html b/cmd/ursrv/static/index.html index 63d0e0a18..b161fa2e8 100644 --- a/cmd/ursrv/static/index.html +++ b/cmd/ursrv/static/index.html @@ -214,7 +214,7 @@ found in the LICENSE file. var locations = []; {{range $location, $weight := .locations}} - locations.push({lat:{{- $location.Latitude -}},lng:{{- $location.Longitude -}},count:Math.min(25, {{- $weight -}})}); + locations.push({lat:{{- $location.Latitude -}},lng:{{- $location.Longitude -}},count:Math.min(100, {{- $weight -}})}); {{- end}} function drawHeatMap() { @@ -233,6 +233,7 @@ found in the LICENSE file. ); var cfg = { "radius": 1, + "minOpacity": .25, "maxOpacity": .8, "scaleRadius": true, "useLocalExtrema": true, @@ -297,7 +298,7 @@ found in the LICENSE file. {{if .locations}}

- Heatmap max intensity is capped at 25 reports within a location. + Heatmap max intensity is capped at 100 reports within a location.