From 3e54310c8dd80d4aa02c2d563d0b23e21c15b4b8 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 5 Oct 2023 17:36:07 +0200 Subject: [PATCH] Add Range input for heatmap radius --- umap/static/umap/js/umap.layer.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.layer.js b/umap/static/umap/js/umap.layer.js index 7f0b03fc..4f45b859 100644 --- a/umap/static/umap/js/umap.layer.js +++ b/umap/static/umap/js/umap.layer.js @@ -161,8 +161,11 @@ L.U.Layer.Heat = L.HeatLayer.extend({ [ 'options.heat.radius', { - handler: 'BlurIntInput', - placeholder: L._('Heatmap radius'), + handler: 'Range', + min: 10, + max: 100, + step: 5, + label: L._('Heatmap radius'), helpText: L._('Override heatmap radius (default 25)'), }, ],