BingMap 在视图中获取多边形
我的地图上有 30-50 个多边形。每个多边形中有大约 4000 个点,但它们在开始时是隐藏的。我只想在缩放 <= 6 时显示该点,但不是所有点,而是仅与当前显示的多边形相关的点。所以我需要获得视图中的多边形(此时显示在屏幕上)。
你知道如何让多边形进入视野吗? ps.我正在使用 javascript
I have map with 30-50 polygons on it. There are like 4000 points in every polygon but they are hidden at beginning. I want to disply the point only when zoom is <=6 but not all of the point but only ones related to the currently displayed polygon(s). So I need to get the polygons in view (displayed in this moment on the screen).
Do you know how to get the polys in view ?
ps.Im working with javascript
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你有复杂或大量的多边形,但可以工作(假设 v7 api),速度不会很快:
https://gist.github。 com/1704172
Wont be quick if you have complex or lots of polygons but works (assumes v7 api):
https://gist.github.com/1704172