HeatMap as new Feature

Aug 20, 2010 at 1:07 PM

i would really like to see HeatMap Generation as new Feature in this fantastic library..

Maybe based on:  http://www.codeproject.com/KB/web-image/GHeat_Net.aspx

 

Aug 20, 2010 at 1:16 PM

check clouds demo and use this service to generate image: http://www.heatmapapi.com/SampleHMReturnImage.aspx?k=0&d=&x=0&b=1&w=400&h=300&lat1=38.7872749142083&lat2=38.46541758885631&lon1=-95.09765625&lon2=-94.54833984375

Jun 8, 2013 at 8:31 PM
Hi,

I am trying to add this lines to the GPoint and PointLatLng classes.
//First, add the following to GPoint and PointLatLng classes in GMap

private decimal? weight;
private object data;
 
public decimal? Weight { get { return weight; } set { weight = value; } }
public object Data { get { return data; } set { data = value; } }
as sugestet in this page.
http://blog.ethereal-engineering.com/2013/01/heatmaps-using-gheat-and-gmap.html

Any idea how I can add this, I get always an error compiling Gmap
Jun 10, 2013 at 12:48 PM
what error?
Jun 11, 2013 at 8:00 AM
I tried to add the following to GPoint and PointLatLng classes in GMap

This are the errors

Field 'GMap.NET.PointLatLng.weight' must be fully assigned before control is returned to the caller
Field 'GMap.NET.PointLatLng.data' must be fully assigned before control is returned to the caller

Changing to return this.weight; and return this.data; gives me the same error.

private decimal? weight;
        private object data;

        public decimal? Weight
        {
            get
            {
                return this.weight;
            }
            set
            {
                weight = value;
            }
        }
        public object Data 
        { 
            get 
            { 
                return this.data; 
            } 
            set 
            { 
                data = value; 
            } 
        }
Jun 11, 2013 at 9:06 AM
you don't have to put these fields in pointlatlng class, make your own struct/class and add all fields you need: point, weight, data, etc...
Jun 11, 2013 at 9:10 AM
p.s. it's a misleading demo, actually you have to create new map provider and use this function to generate tiles:
Bitmap tempImage = gheat.GHeat.GetTile(Points, "classic", (int)MapControl.Zoom, x, y);
Jul 17, 2013 at 10:15 PM
Hi there Radioman

Forgive me for resurrecting a very old thread. I am interested in this same approach but could not conclude what you were saying with your last two posts.

Were you stating that overlay approach would not be the way to go and that one should use a new map provider to accomplish this task?

If so, how would one create a new map provider but still use the existing providers? Would one need to extend each existing provider to use a heat map with them?

Thanks so much for a great library!

Mike