简体   繁体   English

如何使用非Google地图在iPhone应用程序中绘制自定义“标注气泡”(地名透明灰色叠加层)?

[英]How do I draw custom “Callout Bubbles” (the place name transparent-gray overlay) in an iPhone application using non-google maps?

I'm building an iPhone application with a map inside (using route-me, not MapKit). 我正在构建一个带有地图的iPhone应用程序(使用route-me,而不是MapKit)。

I have some markers on the map, and I want to have an overlay - similarly to the google maps one - that appears once you click a marker: 我在地图上有一些标记,并且我想有一个叠加层-类似于google maps-单击一次标记后就会出现:
A black - a bit transparent - overlay, with a button inside, and a little triangle pointing to the marker the overlay is referencing. 黑色-有点透明-叠加层,内部有一个按钮,一个小三角形指向该叠加层所引用的标记。

Thank you. 谢谢。

Read the quartz2d docu from Apple. 阅读Apple的quartz2d文档。 They explain in detail how to create custom views. 他们详细说明了如何创建自定义视图。

It looks like these things are called 'callout bubbles'. 这些东西看起来像是“标注气泡”。 Apple has a MapCallouts sample that shows you how to customize them. Apple有一个MapCallouts示例,向您显示如何自定义它们。

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

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