Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slideToAndCenter randomly not works #59

Closed
LucasDeVil opened this issue Jul 10, 2013 · 3 comments
Closed

slideToAndCenter randomly not works #59

LucasDeVil opened this issue Jul 10, 2013 · 3 comments

Comments

@LucasDeVil
Copy link

In addition to #19 und #20 I'd like to re-open this issue.

I'm working with the MapView in a fragment. When starting the map fragment MapView should slideToAndCenter to a given position. This always works well.

In addition I have a 'center' button which can be touched. In the buttons onClick Listener I do another slideToAndCenter.

This randomly works or fails.
When the Map is rendered and I touch the button nothing happens.
When the Map is still rendering (i.e. touching the button shortly after swiping on the map when some tiles aren't rendered yet) the map slides to the position.

@moagrius
Copy link
Owner

I'm pretty sure it's scaling the point twice. It probably works fine when scale is 1, but that's it.

I'm fairly deep into TileView at the moment, but will try to find some time this week to commit a fix for this issue. Actually, I have an local version with several fixes that I haven't committed - this one might already be done.

@moagrius
Copy link
Owner

I've just committed an update that should patch this - it seems fine on my local build (using coordinates). This is not a solid rewrite, and the positioning scheme has become more complicated than it should be and it probably does need to be rewritten, but I'm concentrating on TileView now and this will likely be the last commit. Feel free to commit patches on forks and I'll continue to review and (possibly) accept merge requests in the future.

@moagrius
Copy link
Owner

moagrius commented Aug 5, 2013

This should be fixed in TileView (https://github.com/moagrius/TileView)

@moagrius moagrius closed this as completed Aug 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants