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
Split/join lines #97
Comments
At this stage I'd like to keep the drawing and editing tools simple and as lightweight as possible. This requirement is quite specific. It would be good to see if many people have this requirement. Ideally Leaflet.draw would support adding extra buttons to the toolbar. This would allow devs to add custom functionality to the plugin. |
i too have a requirement to close the poylines. |
For closing polylines do you mean create a polygon? To create a point put the feature in edit mode then drag the midpoint. Midpoints are represented by a semi transparent marker between two vertices. You can delete a point by clicking on a vertex while in edit mode. |
Urs but I need to be able to close a poly line. In the world of cad this
|
So it doesn't need to specifically join at the starting vertex, rather anywhere along the polyline? |
No always at the starting vertex when your initially making it. You also need to be able to open it by simply deleting any one out more Or you can keep it together. This is my preferred way of interacting with a On 01/03/2013 6:25 PM, "Jacob Toye" notifications@github.com wrote:
|
Just to weigh in, but I too will need to be able to split polyline and perhaps join them back up again at some point. For my uses, closing a polyline is a low priority, as anytime I need to do that I am just using a polygon. I like the extra button / tool support idea for people to build their own custom tools / plugins, to keep the base functionality low. Perhaps the split could be a first example of this? |
main thing is that a plethora of plugins are possible. A choice of polyline plugins for different uses g On 5 March 2013 00:14, James Kelly notifications@github.com wrote:
Contact details: |
Right now a plethora is not a problem, there are 0. Once the number of plugins gets to the point where it is unmanageable in a map, then I'm sure they will be able to be grouped, but that's not worth thinking about this early on. |
I expect many plugins to take off because the plugin architecture is pretty And Leaflet is getting allot of media exposure now. g On 5 March 2013 00:35, James Kelly notifications@github.com wrote:
Contact details: |
I'm not saying the number won't expand, I'm saying it is not an issue now, so don't waste time trying to preempt something that may not happen. The whole idea of plugins is that they are loosely coupled to Leaflet.draw, so that if Leaflet.draw wants to change how it deals with plugins, then it is free to do so without affecting the plugins themselves. So if Leaflet.draw down the track has 500 plugin buttons and wants to group them, then it can do so, and expose this through it's API with (hopefully) no breaking changes to the plugins. |
ok i see now what you mean. sounds like a good architecture indeed. I am looking forward to getting Some i am thinking about:
If they stick the idea is that IF the objects in the map move, the Do you know if this is feasible with the current architecture ? On 5 March 2013 00:48, James Kelly notifications@github.com wrote:
Contact details: |
Any progress on this Issue? I, too, would dearly like to have the ability to split and join Polylines. Specifically, the ability to:
That would be a godsend. Alternately, if this is not something that will happen in the foreseeable future, can anyone comment on the difficulty of doing this for an entry-level but enthusiastic JS programmer? Many thanks. |
This is a rather old thread but anyhow: Splitting polygons is really important to me as well. I get tons of large polygons that need to be "cut in pieces" to make sense. |
Any progress on this issue? Any plugins able to do that right now? |
I need to do something like this. If anyone would like to provide some tips onto how to tackle this, it would be much appreciated. Any kind of help is appreciated. I tried to start off using |
Would be nice to have a tool that lets you split and/or join lines.
I have some very long GPS traces that need to be chopped into segments (I'm tracing ski trails).
Conversely, I have multiple GPS traces that sometimes need to be joined together into a single line.
The text was updated successfully, but these errors were encountered: