问题
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