ios - GMSMapView - 为什么我的折线被画在街道下面?
问题描述
我正在使用 GoogleMaps iOS SDK,并按照说明将折线添加到地图:
private func addRoute(to mapView: GMSMapView, history: ShipmentHistory) {
let path = GMSMutablePath()
path.add(history.currentState.location)
for alert in history.alerts {
path.add(alert.location)
}
let polyline = GMSPolyline(path: path)
polyline.strokeWidth = 5
polyline.strokeColor = UIColor(asset: Asset.ColorAssets.appTint)
polyline.zIndex = polylineBaseZIndex // value is 20
polyline.map = mapView
}
现在我想知道为什么它在街道线下面画这条线,如图所示:
解决方案
推荐阅读
- r - 列表上的 R data.table 运算符
- audio - WAV 文件:如何存储数据子块
- database - 如何在 PostgreSQL 8.0.2 中将列表转换为数组
- c# - 在统一 2d 中更新敌人健康栏
- c# - 在asp-route(参数)中使用javascript变量?
- c# - C# Ninject 不从 JSON 反序列化注入
- algorithm - 使用不等的相关概率进行无替换抽样
- python - 熊猫日期时间格式 VS 谷歌表格日期格式
- javascript - 我得到 TypeError is not a function in nodeJS
- python-3.x - 显示一个不会冻结应用程序的python倒数计时器