iOS7 Map Kit删除默认位置图标 [英] iOS7 Map Kit remove default location icons

查看:80
本文介绍了iOS7 Map Kit删除默认位置图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以删除地图套件中的所有默认图标。我做了很多研究,尝试了几种不同的方法。找不到任何办法。不知道是否有人可以帮助我们。

I am wondering if it's possible to remove all the default icons from the map kit. I did a lot of researches and tried a couple of different ways. Couldn't find any way to do this. Don't know if anybody can help us out.

推荐答案

它不会摆脱所有这些图标(我认为道路标记将保留)但你可以使用iOS 7 MKMapView property showsPointsOfInterest ,将其设置为以删除商店和其他图标。

It won't get rid of all those icons (I think the road markings will stay) but you can use the iOS 7 MKMapView property showsPointsOfInterest, setting it to NO to remove shops and other icons.

[myMapView setShowsPointsOfInterest:NO]

来自文档:


当此属性设置为YES时,地图会显示餐馆,学校的图标和标签和其他相关的兴趣点。此属性的默认值为YES。

When this property is set to YES, the map displays icons and labels for restaurants, schools, and other relevant points of interest. The default value of this property is YES.

这篇关于iOS7 Map Kit删除默认位置图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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