Outdooractive / route-me

Open source map library for iOS
Other
122 stars 400 forks source link

Choppy marker movement when zoomed in far enough. #122

Open specialunderwear opened 11 years ago

specialunderwear commented 11 years ago

When zoomed in on a map for something like 4 levels (4 taps) the markers on the map will nolonger scroll smooth but jump across the map. (Like they are snapping to a grid).

It appears to be caused by the precision of UIScrollView's zoomScale property. When zoomed in far enough, the precision just can not be used for positioning the markers over the zoomed UIScrollView.

A solution for this issue is described here: http://www.mlsite.net/blog/?p=1342

Maybe you don't agree and think it is caused by something else. I would love to hear a different view on the problem.

specialunderwear commented 11 years ago

So what I mean is, when zooming in far, the [contentOffset valueDidChange] methods are nolonger triggered as often when contentOffset changes, so the position of the markers are not updated as often, causing choppyness.

incanus commented 11 years ago

There is some work being done in more detail on this issue here at https://github.com/mapbox/mapbox-ios-sdk/issues/72

specialunderwear commented 11 years ago

I will add the link I posted to that ticket, because that describes a proper solution.