如何在不使用 MapAnnotation pin 的情况下显示位置信息?

发布于 2024-09-11 06:03:59 字数 113 浏览 3 评论 0原文

我知道地图注释,通过单击该注释图钉,我可以获得有关该特定地点的信息,但我想在没有该注释图钉的情况下显示所有这些信息,所以这怎么可能?实际上,我在顶部有搜索栏,我将给出城市名称和我得到了该方框的详细信息来代替注释。

I know map annotation and by clicking on that annotation pin I get the information about that particular place but I want to display all that information without that annotation pin so how it is possible Actually I have searchbar on the top and I will give city name and I get the Detail information on that Square box in place of Annotation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

最美不过初阳 2024-09-18 06:03:59

您应该阅读 CLLocationManager 参考

您可以获得用户位置,然后您可以执行您想要的操作(使用反向地理编码、在自定义地图中显示或您想要的操作..)

You should read the CLLocationManager reference

You can get the user position, then you can do what you want (use reverse geocoding, show in custom map or what you want..)

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