ios - MKOverlay 在建筑物下解散

标签 ios mkmapview mapkit mkoverlay

我目前正在 Apple MapKit 中使用 MKOverlays。 我尝试绘制建筑物内部的房间,当我将 map 置于 3D 模式时,房间会消失并显示在 map 中的建筑物下方。

以下是我将它们添加到 map 的方法:

let overlays = ETS.Map.shapes(shapes, forFloor: floor)
self.mapView.addOverlays(overlays, level: .aboveLabels)

我还尝试了级别:.aboveRoads。

这是两张图片:

Shows the room on top of the building Shows the room hidden behind the building when map turns to 3D mode

最佳答案

在“3d”环境中使用 MKOverlays 时请考虑海平面。这个问题的答案中的技术说明: How do I show MKOverlay above MKAnnotations?

关于ios - MKOverlay 在建筑物下解散,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40991827/

相关文章:

ios - UITableView: willDisplayCell: forRowAtIndexPath: 方法 - 这个方法有什么作用?

ios - 移动 map View 后显示标注

swift - 更新用http加载的注释

ios - 注释未放置在 map 上

swift - 创建指向指定位置方向的自定义罗盘箭头

ios - Swift 中的预期模式错误?

ios - Google Drive在ios sdk中集成登录redirect_uri_mismatch错误

ios - 异步下载图像而不阻塞 UI

ios - 类型 'MKDirectionsRequest' 的值没有成员 'setSource'

swift - MapKit .PLIST DICTIONARY with INT and STRING-values = multiple annotations WITH Title & Subtitle from plist (根据 : MapKit Sample WWDC 2017 - 237)