如何通过HereMap SDK在iOS中使用`extrudedBuildingsVisible`属性

问题描述

我正在使用iOS的here-SDK实现3d Map(建筑物视图),但是我找不到实现此目的的方法。我已经看到了Android的HERE Maps 3D建筑的工作,但不适用于iOS

我遵循了这个link

这是我的示例代码

getSorular { results in
    self.sorulararray.append(contentsOf: results)
    //Do whatever else you need to do with your sorulararray
}

问题:

如何在iOS中实现3d地图(建筑物视图)?

谢谢

解决方法

未指定倾斜度,地图必须看起来平坦。

这是我用下面的代码得到的

let geoCoordCenter = NMAGeoCoordinates(latitude: 49.260327,longitude: -123.115025)
self.mapView.set(geoCenter: geoCoordCenter,animation: .none)

self.mapView.positionIndicator.isAccuracyIndicatorVisible = true
self.mapView.positionIndicator.type = .current
self.mapView.positionIndicator.isVisible = true
self.mapView.extrudedBuildingsVisible = true
self.mapView.landmarksVisible = true
self.mapView.alpha = 1
self.mapView.autoresizingMask = [.flexibleWidth,.flexibleHeight]
self.mapView.translatesAutoresizingMaskIntoConstraints = false
self.mapView.padding = UIEdgeInsets.init(top: 15,left: 15,bottom: 15,right: 15)

self.mapView.zoomLevel = 19
self.mapView.tilt = self.mapView.maximumTilt(atZoomLevel: 19)

enter image description here

罗马:

Rome

巴黎:

Paris