ios - Swift 中的自定义 map

标签 ios swift mapkit

我目前正在开发一个使用定位的 iOS 应用程序。 但我想要一个自定义 map 来显示用户的位置,而不是 MapKit 提供的默认 map 。

例如这样的 map :

Snapchat 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/

相关文章:

objective-c - 将项目从 NSArray 传输到 NSSet for NSManagedObject

html - 在 img 标签中,图像尺寸已动态更改

ios - 横向拖放图像不起作用

ios - 当我触摸 iPhone map 上的图钉时,与 'directions' 按钮一起向上滑动的窗口/ View 的技术名称是什么?

cocoa-touch - iPad 上的 MKMapView 渲染问题

ios - swift | UIButton 导致点击时崩溃

xcode - 使用 Cocoapods 导入 SwiftyJSON 时出错

ios - 在 viewDidDisappear 上删除 Firebase authState

json - 在 Swift 3.0 中陷入来自 Wordpress 站点的 JSON 数据

c# - RectForMapRect MonoTouch.UIKit.UIKitThreadAccessException