-
Notifications
You must be signed in to change notification settings - Fork 79
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
right-click replacement for mobile? #43
Comments
I ended up using this: http://hammerjs.github.io/recognizer-press/ small library (20 kB, 7 kB gzipped), works perfect, easy to integrate. |
disabled tooltips and contextMenu, and used it combination with this: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate good touch experience, intuitive and haptic feedback |
I am not sure if this tool will support Mobile at this time. In addition to the right-click event, the complication include the dragging and hovering special events substitution for mobile devices as well. Do you have a public accessible live demo that uses this library in combination with other touch libraries that solve your use case? I would love to see it in action. Thanks! |
I will upload a demo on the weekend. |
vibration works only after some user interaction. so move the map a bit, long press, measure, and long press again to get rid of it. |
I tried on iPhone6 and long press doesn’t bring up the measure tool. Any
tips?
On Wed, Jul 4, 2018 at 10:41 AM, railsGod ***@***.***> wrote:
here it is <https://throwawayy.lima-city.de/measure_on_mobile.html>
vibration works only after some user interaction. so move the map a bit,
long press, measure, and long press again to get rid of it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4VhiAY2kLowgG6rHRDytzM30ygVsNaks5uDNQ2gaJpZM4U3eUx>
.
--
Zhenyang Hua
|
I tested it only on Chrome (Android and Desktop) so far, hammer.js say iOS should work: https://hammerjs.github.io/browser-support/ But i just tested it on an iPad and it it's indeed not working. If i get to know why that is i will let you know. |
You can use the API and create some buttons with a simple logic; subscribing to measuring events and create a var that saves the status:
Then you can track the status and display accordingly the buttons API ref - https://github.com/zhenyanghua/MeasureTool-GoogleMaps-V3/blob/master/docs/REFERENCE.md |
Hey man, any chance you re-upload this? |
This library doesn't officially support touch screens. |
v1.0.0 now support browser touch events, you will be able to use API start the measure tool with your own implementation of the context menu. |
Hi, great tool -- thanks for sharing!
Unfortunately, on multi-touch devices you don't have a way to right-click. Maybe it would make sense to add some kind of substitute?
See https://stackoverflow.com/a/30895557 and https://api.jquerymobile.com/taphold/
The text was updated successfully, but these errors were encountered: