I need to turn the arrow on the map (customAnnotationView) so that the calloutView does not rotate (Example 1).
When I rotate only the image: The arrows are not set in the center and of different sizes (Example 2).
Example 1
Example 2
Example 1
annotationView?.transform = CGAffineTransform(rotationAngle: CGFloat((-180.0 * .pi / 180) - -customPointAnnotation.ang))
Example 2
annotationView?.image = UIImage(named: customPointAnnotation.pinCustomImageName)?.rotate(radians: CGFloat((90.0 * .pi / 180) - -customPointAnnotation.ang))