GMSCoordinateBounds()未显示在IOS的GoogleMaps / GooglePlaces 3.5.0中

问题描述 投票:-1回答:1

产生以下错误:“使用未解决的标识符'GMSCoordinateBounds'”

我的目标是解决问题或使用其他方法来设置自动填充的搜索范围

此代码一直运行良好,直到对IOS的Google Maps 3.5.0版本进行次要更新:

let autoCompleteController = GMSAutocompleteViewController()
        autoCompleteController.delegate = self
        let maxLatLng = CLLocationCoordinate2D(latitude: 49.418069, longitude: -121.653829) //Northeast bound
        let minLatLng = CLLocationCoordinate2D(latitude: 48.999764, longitude: -123.369101) //Southwest bound
        autoCompleteController.autocompleteBounds = GMSCoordinateBounds(coordinate: maxLatLng, coordinate: minLatLng)
ios xcode google-maps search google-places-api
1个回答
0
投票

似乎此问题已在Google Maps Platform的公共问题跟踪器中找到一个条目:https://issuetracker.google.com/issues/140918047-[v3.5]错误:无法为未定义的类'GMSCoordinateBounds'定义类扩展”>

您可以在问题中发表评论并加注星标以接收更新。

© www.soinside.com 2019 - 2024. All rights reserved.