heatmap.js icon indicating copy to clipboard operation
heatmap.js copied to clipboard

Calculate the area that the heatmap occupy?

Open ngunhaSO opened this issue 6 years ago • 3 comments

Is it possible to calculate the area that the heatmap occupy? Also, the radius value, what is the measurement unit, is it pixel?

ngunhaSO avatar Feb 14 '19 05:02 ngunhaSO

Area can be easily calculated by using the lat ,lng information of the related locations.

SerhanBent avatar Feb 14 '19 13:02 SerhanBent

@SerhanBent Do you know what the measurement unit the 'radius' use in the configuration?

ngunhaSO avatar Feb 15 '19 01:02 ngunhaSO

It is pixels, yes but as you can easily understand you should multiply its value by 2 to get the exact pixel value of its diameter. (2r) For example when you assign 10 for the radius. Its width will be 20 pixels.

SerhanBent avatar Feb 15 '19 08:02 SerhanBent