这里映射偏移位置指示器中心
Here maps offset position indicator center
我正在使用 Here iOS SDK。我通过以下方式设置位置指示器:
let mapMarker = NMAMapMarker(geoCoordinates: NMAGeoCoordinates(), icon: nmaImage)
mapView.positionIndicator.set(displayObject: mapMarker, toLayer: NMAMapLayerType.foreground)
可行,但位置指示器出现在屏幕中央。我需要设置一些偏移量(或填充)以便在中心下方显示位置指示器(一些偏移量或填充),以便驾驶员可以看到更多前方道路。
同时查看相关的 SO 帖子
and (for Android in that case)
我正在使用 Here iOS SDK。我通过以下方式设置位置指示器:
let mapMarker = NMAMapMarker(geoCoordinates: NMAGeoCoordinates(), icon: nmaImage)
mapView.positionIndicator.set(displayObject: mapMarker, toLayer: NMAMapLayerType.foreground)
可行,但位置指示器出现在屏幕中央。我需要设置一些偏移量(或填充)以便在中心下方显示位置指示器(一些偏移量或填充),以便驾驶员可以看到更多前方道路。
同时查看相关的 SO 帖子