MapKit中的自定义地图样式 [英] Custom map style in MapKit

查看:184
本文介绍了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支持标记的自定义颜色和图标,这可能足以满足您的需要。

编辑:请继续关注iOS 11,它可以提供此级别的定制。


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆