0

I'm trying to apply a transform in order to rotate a view that I've added as a MGLAnnotationView's subview. It worked well for MKAnnotationView but it doesn't for the new annotation view class.

What should the correct approach be for this?

Fran Sevillano
  • 8,103
  • 4
  • 31
  • 45

1 Answers1

2

This particular issue will be fixed as of the next beta of the Mapbox iOS SDK. (You’ll need to operate on the view’s existing transform rather than starting from the identity transform.) While you’re waiting for the fix, you can create a sublayer (or subview) and apply the transform to the sublayer.

Minh Nguyễn
  • 861
  • 7
  • 18