简体   繁体   English

Google Maps SDK for iOS中的热图

[英]Heatmap in Google Maps SDK for iOS

Is there a way to add a heatmap layer with the Google Maps SDK for iOS ? 有没有办法使用Google Maps SDK for iOS添加热图图层?

Note: I am refering to the same feature that exists in the Javascript version of Google Maps . 注意:我指的是Javascript版Google地图中存在的相同功能。

Heatmaps don't appear to be supported by the iOS SDK. iOS SDK似乎不支持热图。 However, you could try something like LFHeatMap which allows you to generate a heatmap as a UIImage given a set of data points. 但是,您可以尝试使用LFHeatMap之类的东西 ,它允许您在给定一组数据点的情况下将热图生成为UIImage You should then be able to add this as a tile layer to your map. 然后,您应该可以将其作为图块层添加到地图中。

Google had updated their libraries, now they are providing support for iOS too. 谷歌已经更新了他们的库,现在他们也在为iOS提供支持。 Developers looking to integrate heat map make use of it. 希望集成热图的开发人员可以利用它。

  1. Please refer this link for further detail about heat map. 有关热图的更多详细信息,请参阅链接。

  2. Also check out the sample project provided by google on Github . 另请查看谷歌在Github上提供的示例项目。

  3. Install heat map by using following comand pod 'Google-Maps-iOS-Utils' 使用以下命令pod'Google pod 'Google-Maps-iOS-Utils'安装热图

Thanks. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM