@@ -23,6 +23,8 @@ class HeatMapWithTime(JSCSSMixin, Layer):
2323 The name of the Layer, as it will appear in LayerControls.
2424 radius: default 15.
2525 The radius used around points for the heatmap.
26+ blur: default 0.8.
27+ Blur strength used for the heatmap. Must be between 0 and 1.
2628 min_opacity: default 0
2729 The minimum opacity for the heatmap.
2830 max_opacity: default 0.6
@@ -91,6 +93,7 @@ class HeatMapWithTime(JSCSSMixin, Layer):
9193 var {{this.get_name()}} = new TDHeatmap({{this.data}},
9294 {heatmapOptions: {
9395 radius: {{this.radius}},
96+ blur: {{this.blur}},
9497 minOpacity: {{this.min_opacity}},
9598 maxOpacity: {{this.max_opacity}},
9699 scaleRadius: {{this.scale_radius}},
@@ -119,7 +122,7 @@ class HeatMapWithTime(JSCSSMixin, Layer):
119122 'https://cdn.jsdelivr.net/npm/[email protected] /dist/leaflet.timedimension.control.css' )
120123 ]
121124
122- def __init__ (self , data , index = None , name = None , radius = 15 , min_opacity = 0 ,
125+ def __init__ (self , data , index = None , name = None , radius = 15 , blur = 0.8 , min_opacity = 0 ,
123126 max_opacity = 0.6 , scale_radius = False , gradient = None ,
124127 use_local_extrema = False , auto_play = False ,
125128 display_index = True , index_steps = 1 , min_speed = 0.1 ,
@@ -140,6 +143,7 @@ def __init__(self, data, index=None, name=None, radius=15, min_opacity=0,
140143
141144 # Heatmap settings.
142145 self .radius = radius
146+ self .blur = blur
143147 self .min_opacity = min_opacity
144148 self .max_opacity = max_opacity
145149 self .scale_radius = 'true' if scale_radius else 'false'
@@ -184,6 +188,7 @@ def render(self, **kwargs):
184188 initialize: function(data, options) {
185189 var heatmapCfg = {
186190 radius: 15,
191+ blur: 0.8,
187192 maxOpacity: 1.,
188193 scaleRadius: false,
189194 useLocalExtrema: false,
0 commit comments