PDA

View Full Version : [iOS] How can I "fitBounds" with animation



thelock12
18.01.2016, 11:58
I've use method call "fitBounds" in order to fit the annotation within the bound. It work fine but, I want it to animate while region is changing(zoom and transition).

Adela_Silvia
20.01.2016, 13:04
Out of the box is not possible. You could try a workaround- to calculate the center of your bounding box and the use animateToLocation:duration: (See the doc: http://developer.skobbler.com/docs/ios/2.5.1/Classes/SKMapView.html#//api/name/animateToLocation:withDuration:)