-
Notifications
You must be signed in to change notification settings - Fork 997
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
Touch Support for Drawing Tools #5
Conversation
…Rectangle still have to be fixed
…on design for handles and multitouch.
Awesome work @mphasize! This looks really good. Seeing this made my day :) I'll have a play with it tomorrow and accept the pull. |
(comment deleted) oh nevermind, I got it wrong :) |
@mphasize @jacobtoye guys, I see there's a lot of stuff in code that should be handled by Leaflet instead of having to do it manually - mousemove/touchmove tracking, coordinates conversion etc. Maybe it would be better if we could improve Leaflet's map events to cover all the cases? |
Hi @mourner. I'll look at seeing what we can move over to Leaflet in the next few weeks. Now that you mention it, it makes a lot of sense to bind to the map rather than directly to the container. |
Hej, sounds like a good idea to reuse existing funtionality in Leaflet. Although I did some poking around in the code, I have to admit I didn't even know the Marker.Drag stuff existed. Alas, my project on geovis is done for the moment and I have to move on to other stuff, so I just wanted to give something back and say thanks for being able to build on top of your work! Cheers! |
Hey Guy's, Just wondering what the progress of this situation is..... I am deploying a web app that has the draw plugin but I am wondering if i should hide the draw controls on any touch device due to it not working? Fantastic plugin btw :) |
I'd suggest hiding the controls of touch devices. I haven't had a chance to decide the best way to do touch support, or even if it is necessary (there hasn't been many requests). I'm keeping this pull open so I can check it out when I get around to implementing touch support. |
Hi, for what's it worth I just released an application that I could use touch support for so that it could work on tablets. |
My 2c: I'd like to use touch drawing. For my current project, mobile wen app and I need to release soon, I'll go with native maps then I guess. |
We'd love to see touch drawing. We run a mobile app (HTML5+PhoneGap+Leaflet) and a website that is mobile-friendly. |
The issue with touch is that the drawing and editing handlers will need to be designed with touch devices in mind. This would probably mean touch specific handlers. Some thoughts:
|
Hi Jacob - I'm one of the guys behind SilviaTerra. I think you raise valid concerns about the touch compatibility, but I also think that one of the great differentiating factors about Leaflet (and why we switched from OpenLayers) was its mobile-friendliness. Happy to think through some of these issues with you and even contribute some code. More and more of our users are going iPad-only, so having a fully-functional mobile solution is pretty important to us. What would be concrete next steps we could take? |
Hi guys. Unfortunately I need to concentrate one my employers work for quite a while and won't be able to dedicate enough time to Leaflet.draw to add touch support. If you guys want to fork the repo and start adding support I'd be happy to help with direction and any issues you face. |
Closing this pull as it is old and will no longer work with master. See #2 for touch support issue. |
Hi Jacob,
I had some time to do the rest of the touch support for Leaflet.Draw. I did some cleanup and improvements and while there's still more things to be considered, all drawing tools should work properly on multitouch browsers. (Well, actually I have only iOS devices for testing, but touch api should be similar on Android.)
So here's the details:
More ideas:
So far. I hope you like the work.
Cheers!
Marcus