.NET and Xamarin port of LFHEATMAP iOS heat map package
- extremely fast heat map generation from point/weight data pairs
- generates byte[] of RGBA images that can be used as needed
- variable boost/bleed
- portable class library
Install-Package LFHeatMap
Alternatively you can directly add the LFHeatMap.iOS
project to your own project or LFHeatMap
portable class library.
This demo plots the measured magnitudes of the 2011 Virginia Earthquake.
- Open and launch the LFHeatMapDemo project in VS or XS.
- Move the slider on the bottom to adjust the boost.
This class contains the three basic static functions used to generate the heat maps.
Supply the desired image dimensions and boost, as well as the point/value arrays. There should be a 1:1 mapping between these two arrays, that is each index in the points array should have a corresponding index in the weights array. Alternate you can also provide a PointWithWeight array.
Works generally the same as the basic heat map, but allows to tweak two additional parameters to control the "bleed" of heat rendering.
Works the same as the basic heat map, but allows you to supply map-specific parameters. Pass an MKMapView
object (typically the target you want to overlay), and an array of CLLocation
objects corresponding to coordinates on the specified MKMapView
object.
The function will convert these to the required CGRect/CGPoint values as needed.
LFHeatMap is available under the MIT license. See the LICENSE file for more info.
LFHeatMap comes from the work of George Polak here, and was ported to .NET and Xamarin by Rui Marinho.