是否可以在 Mapkit 的信息窗格中添加自定义图像?

发布于 2024-09-04 00:12:02 字数 74 浏览 2 评论 0原文

我试图在用户单击标记后为谷歌地图中的信息窗格添加自定义图像。我在 MKAnnotation 类中找不到任何内容。 任何帮助将不胜感激。

I am trying to add a custom image for the info pane in google map once a user clicks on a marker. I can't find anything in the MKAnnotation class.
Any help would be appreciated.

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

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

发布评论

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

评论(1

信愁 2024-09-11 00:12:02

Apple 的 MapCallouts 代码示例演示了如何使用标注执行此操作,并且其天气地图示例演示了如何执行自定义注释视图。这些文档非常出色,并且这些示例都很有帮助。

http:// developer.apple.com/iphone/library/samplecode/MapCallouts/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009746

http://developer.apple.com/iphone/library/samplecode/WeatherMap/Introduction/Intro .html#//apple_ref/doc/uid/DTS40009491

Apple's MapCallouts code sample demonstrates how do do this with the callout and their Weather Map sample shows how to do custom annotation views. There documentation is really excellent and these samples are both helpful.

http://developer.apple.com/iphone/library/samplecode/MapCallouts/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009746

http://developer.apple.com/iphone/library/samplecode/WeatherMap/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009491

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