我可以在iOS的Google Map中扩展最大缩放级别吗?

时间:2018-06-22 09:49:46

标签: ios swift google-maps

我正在使用google map在我使用下面的代码的Map上实现楼层图像

    let camera = GMSCameraPosition.camera(withLatitude: 23.04, longitude: 72.53, zoom: 11.0)
    let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
    view = mapView

    let southWest = CLLocationCoordinate2D(latitude: 23.040254, longitude: 72.532212)


let northEast = CLLocationCoordinate2D(latitude: 23.039054, longitude:72.530254)

   let overlayBounds = GMSCoordinateBounds(coordinate: southWest, coordinate: northEast)

    let icon = UIImage(named: "IMG-01")

    let overlay = GMSGroundOverlay(bounds: overlayBounds, icon: icon)
    overlay.bearing = 0
    overlay.map = mapView

在这里,我可以将地图最大缩放为21。但是我想要更多的叠加图像特殊缩放。我还尝试了以下功能进行额外缩放,但没有成功

mapView.setMinZoom(11, maxZoom: 25)

那么有什么办法可以扩展最大缩放级别?

0 个答案:

没有答案