Can I disable panning of maps when selecting annotations

I recently started using the SKMap library on IOS.

One of the actions of the function didSelectAnnotation

(from the protocol SKMapViewDelegate

) is that whenever a selected annotation is selected, the center of the visible area of ​​the map will move to the location of that annotation.

Is there a way to turn this off?

+3


source to share


1 answer


It is not actually a function of a function didSelectAnnotation

, but a function showCalloutForAnnotation

. Just set the parameter animated

in the NO function.



+5


source







All Articles