remove borders in mapkit

流过昼夜 提交于 2019-12-11 14:11:48

问题


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" }
]
}
]

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


回答1:


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

Long answer:

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).

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.



来源:https://stackoverflow.com/questions/11756973/remove-borders-in-mapkit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!