在 Xcode 上使用 Mapkit 时如何删除城市标签
我想删除所有标签,例如当我在 xcode 上使用 Mapkit 时默认附带的城市名称,即我将加载带有大陆的普通 MapView,但没有有关城市/国家名称的信息。我有什么办法可以做到吗?
谢谢
I would like to remove all the labels such as the city names that comes with default when I use the Mapkit on xcode i.e I would be loading a plain MapView with the continents but no information about the cities/countries name. Is there any way I could do it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您需要修改地图,请查看一些自定义地图 SDK,例如基于 OpenStreetMap 图块的 CloudMade:
http://cloudmade.com/
If you need to modify maps look into some of the custom mapping SDK's, like CloudMade based on OpenStreetMap tiles:
http://cloudmade.com/
不幸的是,来自 Google 的数据无法修改,而且我相信您在使用 MapKit 时同意的许可明确不允许修改地图。
Unfortunately the data coming from Google cannot be modified, and I believe that the license you agree to when using MapKit specifically disallows modifying the maps.
你也可以制作自己的覆盖层来掩盖谷歌数据,尽管据我所知,它仍然会在幕后获取。我正在尝试找出如何停止加载 Google 地图,如果可行的话我会通知您。
查看 Apple 的 TileMap 演示,了解如何显示叠加层的信息。
You could also make your own overlays that would obscure the Google data, though it would still be fetched behind the scenes as far as I can tell. I'm trying to find out how to stop loading Google's maps and will let you know if that's possible.
Look at the TileMap demo from Apple for info on how to display your overlays.