You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using touch devices it is really hard to move vertecies without deleting them. (works fine on chrome tools, need to be tested on actual touch device)
Possible solution: Add an option that allows you to specify how long you need to hold the vertex before it deletes, resets if the vertex is moved.
I have tried to do kind of the same approach leaflet does, using touchstart and touchend to set a timeout. But could not get it to work. (could not get touchstart and touchend event to do anything)
Leaflet currently does this:
// simulate long hold but setting a timeout
this._holdTimeout = setTimeout(Util.bind(function () {
if (this._isTapValid()) {
this._fireClick = false;
this._onUp();
this._simulateEvent('contextmenu', first);
}
}, this), 1000);
If someone has an idea how to go about this it would be greatly appriciated.
Note: It may be biased towards IOS devices. Tested with iphone and ipad on IOS 13 and 14 with safari and chrome where issue is the same on all of the cases. I dont have an android so I cant test that. Altough I am expecting same issue there.
The text was updated successfully, but these errors were encountered:
I will refactor preventMarkerRemoval for my own use;
removalMode: false
if removalMode is true, it will do the same as preventMarkerRemoval, with "click" instead of "contextmenu".
If this is wanted in geoman aswell as an option additionally to preventMarkerRemoval Im happy to make a PR.
Can then be controlled on or off in project code with removalMode variable on pm.enable().
Using touch devices it is really hard to move vertecies without deleting them. (works fine on chrome tools, need to be tested on actual touch device)
Possible solution: Add an option that allows you to specify how long you need to hold the vertex before it deletes, resets if the vertex is moved.
I have tried to do kind of the same approach leaflet does, using touchstart and touchend to set a timeout. But could not get it to work. (could not get touchstart and touchend event to do anything)
Leaflet currently does this:
If someone has an idea how to go about this it would be greatly appriciated.
Note: It may be biased towards IOS devices. Tested with iphone and ipad on IOS 13 and 14 with safari and chrome where issue is the same on all of the cases. I dont have an android so I cant test that. Altough I am expecting same issue there.
The text was updated successfully, but these errors were encountered: