-
Notifications
You must be signed in to change notification settings - Fork 335
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
feature request: rotateable map #313
Comments
Thanks for your willingness to contribute, but please understand that rotation is extremely difficult. Now the user immediately rotates the map 25 degrees: What happens to the undefined space? You could explicitly scroll the map to the first point where there was not undefined space, but that'd be an extremely strange UX. If you really think you have the time and ability, by all means go ahead, and I'll be happy to take a look when done, but I personally don't foresee ever including that feature unless someone else can satisfactorily answer the questions I've outlined above. Thanks again. |
Thank you for your detailed message, i will spend some time on it to look if i can find a global solution which can be integrated to the modules you have stated above. |
👍 |
I did what i needed like this; i let the map to display background colour on undefined space during rotation. Other solution was re-setting the size of the view something like more than 3 times of the original and then after rotating the whole view with setRotation(int degrees) merhod. This makes every click event and functionality to work but with a performance cost. They are not very good solutions so i don't think it would be a part of this library, just letting people know about it. Thank you |
@Deliganli do you have the rotation code on any of the branches? if then i will try from my end. i too extremely need this feature |
@initiuminc1 i will push it on my fork when i have time |
@Deliganli thanks. Please let me know once you push. Thanks |
@initiuminc1 you can find it on my fork, which is not very informative maybe but i will put a sample code later on |
@Deliganli Thanks |
@Deliganli did you missed anything. i can't see any codes for setting the rotation degrees. Thanks |
Hi. I have added my PR for this problem. You can access my branch from https://github.com/dilara91/TileView/tree/feature/rotatable-map |
For anyone still looking for rotation, there is a fork of version 2 from @dilara91 that has it! https://github.com/dilara91/TileView/tree/feature/rotatable-map Thanks Dilara! Please consider that the only version that will support rotation; we've since upped 2 majors and will not support rotation in current or future versions. |
Hello all,
I will be spending some time with rotating complete map from a certain anchor point including all the map markers and so on. Would you direct me on how i should do this? So far i am rotating the map somehow but all the tiles on the viewport are not loaded correctly and also if you scroll to the borders it is not rotating anymore.
My way of rotating the canvas basically is from the TileView class like this
@Override protected void onDraw(Canvas canvas) { canvas.rotate(degrees, px, py); super.onDraw(canvas); }
Any help will be appreciated, i will make a pr as soon as i implement this.
Thanks
The text was updated successfully, but these errors were encountered: