0

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.

  • Can I ask from what app did you see this hexagonal heatmap? I don't see this in the Maps SDK docs currently. – Yrll Aug 11 '23 at 00:08
  • @Yrll, Bolt driver application did this heat map to represent the number of rides happening on particular area in google map. If Map SDK cannot have this function means. Any other possible way to achieve this functionality? – Suman Radhakrishnan Aug 11 '23 at 04:18

0 Answers0