删除mapkit中的边框 [英] remove borders in mapkit

查看:96
本文介绍了删除mapkit中的边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Mapkit用于ios应用程序,并且我想删除国家之间的边界. 我找到了一个JavaScript代码,该代码允许使用Google Maps API进行本地编程:

I'm using Mapkit for an ios application, and i want to remove Borders between countries. I found a javascript code that allows to make it using natively the google maps api:

[
{
featureType: "administrative.country",
stylers: [
  { visibility: "off" }
]
}
]

要使用mapkit进行操作,请问有什么解决方案吗? 谢谢

To do it using mapkit, is there any solution please?? Thank you

推荐答案

简短的回答:不,不是真的(除非您将maptype设置为MKMapTypeSatellite).

Short answer: No, not really (except you set maptype to MKMapTypeSatellite).

长答案:

MapKit中没有公共API可以删除国家/地区边界.而且我想使用私有API也是不可能的,因为地图是从静态图像(平铺)构建的.

There is no public API in MapKit to remove country borders. And I guess It is also impossible with with private API because the map is build from static images (tiles).

在iOS 6中,Apple建立了自己的地图后端(没有google地图),而MapKit现在具有动态渲染功能.有一个专用框架(VectorKit),可在引擎盖下用于进行地图渲染.因此,也许有机会使用VectorKit中的私有API在iOS 6中隐藏边框.

In iOS 6 Apple has built their own map backend (without google maps) and MapKit has now dynamic rendering. There is a private framework (VectorKit) which is used under the hood to do the map rendering. So, maybe there is a chance using private API from VectorKit to hide the border lines in iOS 6.

这篇关于删除mapkit中的边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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