mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
cmd/ursrv: Minor heatmap tweaks
This commit is contained in:
parent
b7dffc051e
commit
2c2e6cd0d5
@ -214,7 +214,7 @@ found in the LICENSE file.
|
|||||||
|
|
||||||
var locations = [];
|
var locations = [];
|
||||||
{{range $location, $weight := .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}}
|
{{- end}}
|
||||||
|
|
||||||
function drawHeatMap() {
|
function drawHeatMap() {
|
||||||
@ -233,6 +233,7 @@ found in the LICENSE file.
|
|||||||
);
|
);
|
||||||
var cfg = {
|
var cfg = {
|
||||||
"radius": 1,
|
"radius": 1,
|
||||||
|
"minOpacity": .25,
|
||||||
"maxOpacity": .8,
|
"maxOpacity": .8,
|
||||||
"scaleRadius": true,
|
"scaleRadius": true,
|
||||||
"useLocalExtrema": true,
|
"useLocalExtrema": true,
|
||||||
@ -297,7 +298,7 @@ found in the LICENSE file.
|
|||||||
{{if .locations}}
|
{{if .locations}}
|
||||||
<div class="img-thumbnail" id="map" style="width: 1130px; height: 400px; padding: 10px;"></div>
|
<div class="img-thumbnail" id="map" style="width: 1130px; height: 400px; padding: 10px;"></div>
|
||||||
<p class="text-muted">
|
<p class="text-muted">
|
||||||
Heatmap max intensity is capped at 25 reports within a location.
|
Heatmap max intensity is capped at 100 reports within a location.
|
||||||
</p>
|
</p>
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
Loading…
Reference in New Issue
Block a user