Google 地图 - 避免在没有聚类的情况下重叠图钉 - 编程策略?
我们的一些地图有 10 - 14 个图钉,使用 Google 地图图标在地图上呈现为图标叠加层。每个图标叠加层内部都有一个呈现的数字。因此,编号通常为 1 - 14。在许多情况下,在所需的缩放级别下,图标重叠会相互重叠,从而隐藏图钉中的数字。
图钉是使用 mapiconmaker API 创建的。这些地图是 Google Maps 2.0 API。
地图容器的物理像素宽度/高度无法更改,也无法重叠。较小的替代图像图标也不是解决方案,因为它们在许多情况下仍然会相互重叠。
是否有任何编程技术或第三方实用程序可以以防止图钉重叠的方式呈现图钉?即,也许在纬度/经度上画一条长线,另一端有图钉,或者其他一些注释方式,同时保持地图内分配给每个图钉的唯一编号?
编辑 最受欢迎 Google Maps API 2 或 3 解决方案!
谢谢
Some of our maps have 10 - 14 pushpins rendered as icon overlays on our maps using stock Google Maps icons. Each icon overlay has a number rendered inside of it. So the numbering typically goes from 1 - 14. In many cases at needed zoom levels, the icon overlays overlap one another, thereby hiding the numbers in the pushpins.
The pushpins are created with the mapiconmaker API. The maps are Google Maps 2.0 API.
The physical pixel width/height of the map container can't be changed, nor can overlapping be done. Smaller alternative image icons are not the solution either since they would still overlap one another in many scenarios.
Are there any programming techniques or third party utilities out there that can render pushpins in a way that prevents them from overlapping? I.e. perhaps drawing a long line to the lat/long, with the pushpin at the other end, or some other annotative fashion, all the while keeping unique numbering assigned within the maps to each pushpin?
Edit
Google Maps API 2 or 3 solutions most welcome!
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论