Google Maps基于区域的群集 [英] Google Maps regional based clustering

查看:108
本文介绍了Google Maps基于区域的群集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有多个县和几千个标记。是否有可能检查哪个标记转到哪个多边形,然后使用群集?基于网格的聚类和基于距离的聚类不适合我的需求。



我还没有找到任何使用它的例子,我甚至不确定它是否可以做完了。任何建议赞赏。

解决方案

您需要使用指向多边形功能作为基础。
如果您循环使用标记数组并使用该函数在多边形中查找标记

let's say I have polygons of counties and several thousands of markers. Is it possible to check which marker goes to which polygon and then use clustering? Grid-based clustering and distance-based clustering don't fit my needs.

I haven't found any example of using this and I am not even sure whether it can be done. Any advice appreciated.

解决方案

You require to use point on polygon function as a basis. If you loop through your marker array and use the function to find markers in the polygon

这篇关于Google Maps基于区域的群集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆