我目前正在开发一个使用定位的 iOS 应用程序。 但我想要一个自定义 map 来显示用户的位置,而不是 MapKit 提供的默认 map 。
例如这样的 map :
是否有可能在 Swift 4.0 中实现类似的功能?
非常感谢
最佳答案
您需要使用 MKTileOverlay
- 文档为 here ...
正如它所说:
You use tile overlay objects to represent your own tile-based content and to coordinate the display of that content in a map view. Your tiles can supplement the underlying map content or replace it completely.
(我的重点)
关于ios - Swift 中的自定义 map ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47250012/