我收到此错误:
This application has been blocked by the Google Maps API. This might be because of an incorrectly registered key.
当我尝试设置Google地图全景街景时。如果我显示常规地图视图,则它可以正常工作,因此好像密钥已正确注册。
我完全按照Google文档的指示进行了全景查看:
import UIKit
import GoogleMaps
class ViewController: UIViewController,GMSMapViewDelegate {
override func loadView() {
let panoView = GMSPanoramaView(frame: .zero)
self.view = panoView
panoView.moveNearCoordinate(CLLocationCoordinate2D(latitude: -33.732,longitude: 150.312))
}
}
有什么想法吗?