Limiting panning in Google Maps for iOS with Swift

南笙酒味 提交于 2019-12-08 14:33:24
Vixxd

I was finally able to solve this by following this implementation and changing it from Objective-C to Swift: How do I prevent 'GMSMapView' from Infinite horizontal scrolling?

The only issue is the currentPosition is focused on the centre of the map rather than the edges of the map, so I made my overlay image larger to account for this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!