Constructing a hexagonal heat-map with custom colors in each cell in google map(android)

111 Views Asked by At

How to construct a hexogonal shape heat map in google map.

Normally heat map in google map in constructed by following code

val heatMapProvider = HeatmapTileProvider.Builder()
                    .weightedData(heatMapList)
                    .radius(50)
                    .build()
 mGoogleMap?.addTileOverlay(TileOverlayOptions().tileProvider(heatMapProvider))

Where heatmapList is Arraylist of WeightedLatLng

And the output is something like below image enter image description here

But my requirement is to create hexagon shape(honeycomb shape) heat map like below image

enter image description here

How to achieve hexagon shape heat map in google map.

0

There are 0 best solutions below