This is a migrated thread and some comments may be shown as answers.

Add a heat map using UriImageProvider

1 Answer 50 Views
Map
This is a migrated thread and some comments may be shown as answers.
Benoit-Charles
Top achievements
Rank 1
Benoit-Charles asked on 03 Jun 2016, 11:18 AM

Hello,

 

I'm having trouble trying to add a heat map (calculated with geoloc points) over the telerik RadMap. First, correct me if I'm wrong but there is no option to do that simply by using a component of your library.

So my idea was to use the InformationLayer to add an image on which I would have calculated the heat map (ex: http://dylanvester.com/2015/10/creating-heat-maps-with-net-20-c-sharp/), unfortunately it does not seems to work and even if it did work, I'm not sure the renderring would work well with the map interraction.

Can you please provide me solutions on how to add a heatmap simply by using geoloc points?

 

Thanks a lot for your help,

Regard,

A french user ;)

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 08 Jun 2016, 11:03 AM
Hi Benoit-Charles,

RadMap doesn't have built-in such heatmap visualization. However, you can take a look at the heat map demo which is not exactly the map type you are looking for but you can check if it will work for you.

About the desired visualization you can try the UriImageProvider as mentioned in this forum title. But in this case, you will need to create different images for the different viewports (location, size and zoom level) and each image should have the proper size and correctly calculated boundaries for the corresponding location and zoom. You can take a look at the UriImageProvider SDK example to see how the provider works.

Another approach is to use VisualizationLayer (which is the new and improved version of InformationLayer) and add visual elements that represents the heat regions in the layer's Items collection. For example, you can use PointData objects to draw the regions.

I hope this helps.

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Map
Asked by
Benoit-Charles
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or