Search code examples
iosobjective-cmkmapviewmkannotationview

Don't resize annotation on MKMapView zoom-in/out


Here is my code: https://ghostbin.com/paste/mvhdx

When my view is zoomed-in/out, the annotations resize. Is there a way to disable this behavior and keep the annotations at the size that they were created at?

Another bonus question, how do you prohibit a MKAnnotationView from rotating as well?


Solution

  • If you want to create shapes that are fixed to geography, you may want to look at overlays instead of annotations.

    iOS7AnimatedMapOverlay shows how to add overlays to annotations.