using Android Google Maps API to display a Heat Ma

2020-05-28 10:47发布

问题:

I am doing a project in Android, where I have given a list of Geography Points (lat, lng) and each point has an associated Altitude(height) value with it.

My task is to create a Heat Map of the given map with varying colors depending on the points altitude value.

Does someone know of any existing library for doing the same. Or, it would also be very helpful to me if anyone can give pointers on how it cam be implemented. My only constraint is that it should work in Android.

Thanks in advance.

回答1:

mapex, for example. Or this post.



回答2:

The question is old but Google launched recently the new Google Maps Android API Utility Library allowing to create easily heatmaps. Take a look the BlogPost and the Google Maps V2 documentation.

Also, the source code can be found on GitHub with some sample code available.