MapKit中的自定义地图样式 [英] Custom map style in MapKit
问题描述
我正在寻找一种在iOS 7中实现自定义地图样式的方法,就像您可以使用 rel = noreferrer> Google地图。我发现一些帖子说这对MapKit来说是不可能的,但是他们都已经发布了。为了澄清,我正在谈论自定义颜色,最好是字体。下面是自定义Google Map风格示例。
http://www.servendesign.com/wp-content/uploads/2011/12/zaarley-custom-google-maps.jpg
为了性能的原因,我真的更喜欢使用MapKit,但如果不支持,我也愿意使用其他框架。我看到的是MapBox和Cloudmade,当然还有Google Maps SDK。
有没有办法用MapKit做到这一点?如果没有,最好的方法是什么?
MKMapView
不公开您想要自定义的属性。 Google地图SDK支持标记的自定义颜色和图标,这可能足以满足您的需要。
I am looking for a way to implement a custom map style in iOS 7, just like you can do with Google Maps. I have found some posts saying that this is not possible with MapKit, but they are all posted a while back. To clarify, by style I am talking about custom colors and preferably also fonts. Example of custom Google Map style below.
http://www.servendesign.com/wp-content/uploads/2011/12/zaarley-custom-google-maps.jpg
I would really prefer using MapKit for performance reasons, but if it is not supported I am open to using other frameworks as well. The ones that I have seen are MapBox and Cloudmade, and of course the Google Maps SDK.
Is there a way of doing it with MapKit? If not, what is the best way to go?
MKMapView
does not expose the properties you're interested in customizing. The Google Maps SDK does support custom colors and icons for markers, which may be sufficient for your purposes.
Edit: Stay tuned for iOS 11, which may offer this level of customization.
这篇关于MapKit中的自定义地图样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!