简体   繁体   English

Google Streetview:在给定半径内显示标记

[英]Google Streetview: Show markers within given radius

I have added custom markers to google maps streetview view without a problem. 我已经向Google地图街景视图添加了自定义标记,没有问题。 I am now wanting to show the markers I have added only when the user is within a few degrees of the markers coordinates and not visible when panning around street view from farther distances. 现在,我只想显示仅在用户位于标记坐标的几度之内并且在从更远的距离平移街景时不可见时才添加的标记。 I have seen a few forum posts about removing markers when in a given radius but not the reverse. 我看到了一些论坛上的帖子,内容涉及在给定半径内删除标记的情况,但并非相反。

Litte more background... I am trying to make a simple easter egg hunt game using the streetview api. 更多背景...我正在尝试使用街景api做一个简单的复活节彩蛋狩猎游戏。

Any thoughts are greatly appreciated! 任何想法都将不胜感激!

您说:“我已经看到了一些论坛文章,关于在给定半径范围内删除标记但没有反向标记”,请使用该机制并反转测试。

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

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