Search code examples
gwtgoogle-maps-api-3gwt-visualization

Intensity map using GWT


Google has a library for GWT gwt-visualization (can be obtained HERE). I tried to find an example on how to draw intensity heat (IntensityMap) map but was not able to find anything. What I'm trying to achieve is to create a city map and the intensity circles over the cities. Similar to example image below.

Intensity map

So, my question is how do I make such a map using GWT using gwt-visualization library.


Solution

  • In your screenshot a GeoChart is used and not an IntensitiyMap. So if you use the IntensityMap from gwt-visualization it will look like this and not like the screenshot you posted. Unfortunately there is no ''GeoChart'' wrapper in the gwt-visualization (there is only one for the old GeoMap).

    It is really easy to implement a wrapper for an existing google chart (see here for more details). You can take an existing wrapper as an example and modify it.

    I created a wrapper for the ''GeoChart'' because I needed one for one of my projects. You can use it and also modify it as you like.