I am trying to do a heat map using bing or google as my base overlay/ world map. In my simplest example, I basically just have the heat map sample project and replaced the WMK overlay with a bingoverlay. If I remove the bing overlay, they heat map does dispaly so I know the projection is working. However no matter what I do, when I add thebing overlay, the heat map is no longer visible. I have tried various efforts to get this to display, but nothing seems to work. Am I missing something?
Heat map not working with bing base overlay
Hello David,
Thanks for your post, when you said heat map, do you mean the HeatLayer? I did test on it, it works fine with google and bing map, I think the reason you can't see it is because you use the wrong projection, our WMK use the decimal degrees as map unit, but google and bing use the meter.
You just need set the right projection to the heat layer, it will be fine.
Proj4Projection proj4 = new Proj4Projection();
proj4.InternalProjectionParametersString = Proj4Projection.GetDecimalDegreesParametersString();
proj4.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();
HeatLayer heatLayer = new HeatLayer(featureSource);
heatLayer.HeatStyle = new HeatStyle("intensityColumnName", 1, 10);
heatLayer.FeatureSource.Projection = proj4;
Regards,
Gary
Hi Gary, thanks for your reply. Yes, I meant heatlayer. My first thought was the projection as well, but I think I am using the correct projection. As you can see in my attached code, I was using GetEpsgParametersString(4326) instead of GetDecimalDegreesParametersString(), but I think the result should be the same? I have tried your code and get the same result. You can tell that the projection is working because if I remove the bing overlay, you can see the sample earthquake data in the shape of the US, filling my default extent over the white space. As soon as I add the bing overlay, you can't see the heatlayer anymore.
Could you take a look at my attched sample (I hope Vb is ok)? I am using web edition version 5.5.0.21. The only thing I could come up with was maybe there is a bug in this version?
Thanks again for your help.
Dave
HMTest.zip (2.19 KB)
Hello David,
Thanks for your sample code, I tried your code with my data and still I can get the right result, please see the image below:
So could you please send me your shapefile and I can have some test? You can send to forumsupport@thinkgeo.com.
Regards,
Gary
The file is attached. It should be an unaltered copy of the shapefile from the heat map sample from the website. What version of mapsuit are using?
Sorry, didn't notice the file too large until after I posted. I emailed the file as you said. Thanks again
Did anyone receive my shape file?
Hello David,
Yes, I got the data yesterday, thanks for it, I’m working on this.
Regards,
Gary
Hello David,
Thanksf for your data, I still can't recreate your problem, so here is something you can do for test:
1. Get the newest dlls from helpdesk.thinkgeo.com
2. Try attached sample code, replace it into your HowDoISamples is the easiest way, also you can just refer the code in any project.
Checke the result.
Please let me know if you can recreate the problem with newest dlls and my code.
Regards,
Gary
003_002_001_GettingStarted.zip (2.49 KB)
It has been awhile since I have worked with this, but I am still having problems with the heat map functionality. The base/world map overlay loads, then when it attempts to load the heat map overlay tiles, they go white or display a broken image icon. Here is my latest test project. Any help that can be offered is greatly appreciated.
Thanks,
Dave
HeatMapSample_VB.zip (1010 KB)
Hi David,
We made a little amendment in your sample, would you please try the attached sample, it should be working now.
Best Regards
Johnny
001_HeatMapSample_VB.zip (857 KB)