是否可以在 Mapkit 的信息窗格中添加自定义图像?
我试图在用户单击标记后为谷歌地图中的信息窗格添加自定义图像。我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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