Posts

Post not yet marked as solved
5 Replies
Don't know if you ever found a solution to this. I was facing the same issue and the only way round it that I could find was to manipulate the map in some way... for example, in my case, I was using a UILongPressGestureRecognizer to add an annotation so I centered the map on the new annotation coordinate:@objc private func handleLongPressGesture(_ gesture: UILongPressGestureRecognizer) { if gesture.state == .began { let touch: CGPoint = gesture.location(in: self.map) let coordinate: CLLocationCoordinate2D = self.map.convert(touch, toCoordinateFrom: self.map) self.map.setCenter(coordinate, animated: true) } }But centering the map on it's current center coordinate also works:self.map.setCenter(self.map.centerCoordinate, animated: false)