Google Maps SDK iOS - prevent map from changing location on zoom

后端 未结 3 1566
你的背包
你的背包 2021-01-15 09:40

I have a problem that I can\'t solve for some time.

I have a GMSMapView with imageView in front of it in the center. In result - I can drag map and always have cente

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 10:07

    Google fixed this issue with google maps sdk 1.10.0.

    The solution is to simply add this line when configuring GMSMapview:

    _mapView.settings.allowScrollGesturesDuringRotateOrZoom = NO;
    

提交回复
热议问题