BingMap 在视图中获取多边形

发布于 2024-12-29 02:08:04 字数 165 浏览 7 评论 0原文

我的地图上有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海拔太高太耀眼 2025-01-05 02:08:04

如果你有复杂或大量的多边形,但可以工作(假设 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文