# Need a solution for map density

Map
Top achievements
Rank 1
Ian asked on 23 Jan 2012, 08:07 AM
Hi everyone, i have a project which currently retrives around 30000 nodes on a world map and i want the user to be able to easily view this data quickly.

I want to create a grid system whereby on a world map it will show
1) Allow users to define the gridsize (for example 100 kms)
2) Only show a single node for that density level , but have its colour different depending on number of nodes for that area

So for example, australia might have 10000 nodes,depending on my grid level (lets say default 100kms), i want to easily identify what areas on the globe have high density, and then be able to zoom into that "grid" and then show all the nodes.

I have seen examples whereby population density is shown, but from what i understand thats just loading a premade google earth kml file ?

Is there a way to do a sort of heat map of the bingmaps control and display different colours per region. Also be able to define what a region is (100 km/200km e.t.c)

Hopefully my question is clear enough.

## 3 Answers, 1 is accepted

0
Andrey
Telerik team
answered on 25 Jan 2012, 05:42 PM
Hello Ian,

I'm not sure that I understood you. Could you elaborate a bit more on this?
What do you want to colour according density level (region, country or a single node in the square of grid)? Also what do you mean by the bingmaps control? The RadMap supports the Bing Map Provider to show the map. However the Bing Map Provider doesn't support different colours per region, country, etc.

Kind regards,
Andrey Murzov
the Telerik team

0
Ian
Top achievements
Rank 1
answered on 27 Jan 2012, 03:06 AM
Thanks for the response.

What i am essentially after is something similar in concept to kml regions.
i.e Overlay the bingmaps with a grid of squares with each square representing a 100k by 100km radios (for example)

Then depending on the number of nodes in each square, give the square/region a color value (Red for high density)

Then when a user clicks on a square, it would zoom to that "region" and display all the nodes within.

Is there a way todo any of this with the bingmapsprovider ?

I understand you can restrict what nodes get shown based on zoom levels, and that is kinda what i want. but i also want to give users immediate feedback on a world wide map about the density of nodes in each region (i.e each grid), wether it is based on color our some other means (i.e a display of number of nodes within), the user would then click on that region and the camera would zoom in (until the size of the region matches the zoom/screen size). Only then would you display each individual node all around the map)

Hope that makes it a little clearer

EDIT: Just found this example, its basically exactly what i want, only i dont have an ESRI shapefile (only have a collection of nodes from a database)

http://localhost:6519/Default.aspx#Map/DrillDown

Is there a way to simulate this behaviour for the bingmapview worldmap (i.e each country would be clickable,and drill down into the nodes for that country.

0
Andrey
Telerik team
answered on 31 Jan 2012, 11:54 AM
Hi Ian,

Unfortunately the map providers like Bing Maps provide the map tiles only. You can't use them for changing of colour for regions (country, state etc.).
If you want to show nodes on the map control relatively to the zoom level, then you can use the dynamic layer. It allows to divide the map space in regions on different zoom levels. And it requests objects according to zoom level and visible regions.
For more information please take a look at the Dynamic Layer topic of our documentation and the Items Virtualization example.
http://demos.telerik.com/silverlight/#Map/DynamicLayer

Greetings,
Andrey Murzov
the Telerik team

Tags
Map