此处映射偏移位置指示器中心

时间:2019-11-27 13:44:43

标签: ios here-api

我正在使用Here iOS SDK。我通过以下方式设置位置指示器:

let mapMarker = NMAMapMarker(geoCoordinates: NMAGeoCoordinates(), icon: nmaImage)
mapView.positionIndicator.set(displayObject: mapMarker, toLayer: NMAMapLayerType.foreground)

可以,但是位置指示器位于屏幕中央。我需要设置一些偏移(或填充),以便在中心下方显示位置指示器的方式(一些偏移或填充),以便驾驶员可以看到更多的前方道路。