-
Notifications
You must be signed in to change notification settings - Fork 91
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
New gestures #249
New gestures #249
Conversation
Thanks! Will check it. |
The Android overlay gestures don't work now (e.g. Regarding the |
BTW since all those are core features we should preferably implement / integrate them step by step. For example separately:
|
This can not be done in steps as this is all about replacing Android gesture handler. I'll have a look at |
Well I guess first we need to discuss why we need to replace something.. we don't even have an open issue for a gesture bug? |
What exactly does not work in |
The overlays have gestures managed in Android by Now first one or two tapped markers work (changed icons) and then with the rest nothing. |
|
I have fixed all issues. The major problem is that events are reused. Both by Android framework and VTM. It leads to double copying of objects to make them available for reference in future. I do not like this approach at all. So if you wish not to merge this I will just implement everything I need in my application using native Android methods. |
Two cases here:
So here we need first to clarify what we want to fix or change or add and then go for it.
Finally VTM (like Mapsforge) is an open source library affecting many users. It's not meant to satisfy only some developers needs, but all who use it. And they use it in many platforms not just Android. It should progress in time and with good testing without haste. |
@andreynovikov really appreciating your contributions 🙂 best to integrate it as a 2nd |
I have a first draft of the two
|
Hmm, tried the PR on latest VTM and GTW complains (see Travis):
|
How can it be? It was introduced in Java 5: |
GWT includes a library that emulates a subset of the Java runtime library, e.g. see for java.util. |
It looks like VTM has some kind of cancelable tasks: |
Indeed, will you make changes? Edit: New gestures can be enabled with |
Ok |
There are also some |
Success: #260 |
Thanks! |
This PR fixes gesture handling like the problem with long press still firing on drag zoom, lets adding new gestures and introduces two new gestures: triple tap and two finger tap for zoom out (last one is commonly used in popular mapping applications).
I need help in checking it on other platforms. For instance I do not know what to do with this:
https://github.com/mapsforge/vtm/blob/master/vtm-gdx/src/org/oscim/gdx/LayerHandler.java
Looks like it can be removed the same way as for Android but I am not sure. Can someone look at this PR on iOS and Windows?