using Android Google Maps API to display a Heat Map layer

人盡茶涼 提交于 2019-12-03 13:27:31

问题


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.



来源:https://stackoverflow.com/questions/9902688/using-android-google-maps-api-to-display-a-heat-map-layer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!