Skip to content
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

Orthogonal / isogonal angle drawing #3637

Closed
edpop opened this issue Dec 8, 2016 · 13 comments
Closed

Orthogonal / isogonal angle drawing #3637

edpop opened this issue Dec 8, 2016 · 13 comments
Labels
new-feature A new feature for iD

Comments

@edpop
Copy link
Contributor

edpop commented Dec 8, 2016

Hello.

I'll be glad to share some solution for #2699, #1957.
I made a feature in my iD for drawing angles multiple of 45°. It works for next segments of lines, next and last segments of areas.

default

If you need It, I'll try to make my code/architecture not so ugly that it is now and send PR then.

@bhousel
Copy link
Member

bhousel commented Dec 8, 2016

Cool, can you put a demo of it online? I'd love to take a look and try it..

@edpop
Copy link
Contributor Author

edpop commented Dec 8, 2016

I think it is possible, I'll notify.

@edpop
Copy link
Contributor Author

edpop commented Dec 8, 2016

This dirty hack will be able for some time → pretty-angles.

@bhousel bhousel changed the title Orthogonal feature Orthogonal / isogonal angle drawing Dec 8, 2016
@bhousel
Copy link
Member

bhousel commented Dec 8, 2016

Nice, I tried it out and it does feel intuitive to have angles snap when holding down shift..

I did notice that after drawing some ways with this, the graph got corrupted, and I saw lots of stuff in the console like graph.js:38 Uncaught Error: entity w-51 not found. But if you clean it up a bit, I'd be happy to merge it in..

@bhousel bhousel added the new-feature A new feature for iD label Dec 8, 2016
@edpop
Copy link
Contributor Author

edpop commented Dec 8, 2016

I tried to repeat this error in different browsers and places, but my console still clear, except some 404s of mapbox tiles. My cartoghaphers are using this tool for a 5 months, so it should be stable.
Can you tell me, how to reproduce this error, please?

@bhousel
Copy link
Member

bhousel commented Dec 9, 2016

Can you tell me, how to reproduce this error, please?

I tried some more and I did find the error, but it turns out to be unrelated to your code. It's in master too. Sorry about that! But at least trying out the drawing mode helped me find this other thing. I'll ticket now separately.

@edpop
Copy link
Contributor Author

edpop commented Jan 13, 2017

Do you have additional wishes to merge it? Maybe you have some thoughts about not to use this function twice?

@bhousel
Copy link
Member

bhousel commented Jan 13, 2017

Do you have additional wishes to merge it?

I think it's good and I do want to merge it, just working on other things right now. I'm making substantial changes to how draw_area/draw_way works, so I don't want to start merging the angles code until that other work is finished.

@edpop edpop closed this as completed Jul 24, 2017
@bhousel bhousel removed the wip Work in progress label Oct 18, 2017
@tordans
Copy link
Collaborator

tordans commented Aug 11, 2018

@bhousel @edpop did this code/idea make it into the live version?
I would love to see it there. It would make HOTOSM tasks soooo much easier.
If not, is there a change to revive it?

@bhousel
Copy link
Member

bhousel commented Aug 11, 2018

@bhousel @edpop did this code/idea make it into the live version?

It did not, sorry!

@tordans
Copy link
Collaborator

tordans commented Aug 12, 2018

Any chance to revive it?

I know about the plans at #2699 and #3123.

However both are big changes to the interaction in iD.
This feature would IMO not collide with the above.
But it would make it a lot easier to work on projects like the HOT OSM Task (outlining buildings).

@bhousel
Copy link
Member

bhousel commented Aug 12, 2018

This feature would IMO not collide with the above.
But it would make it a lot easier to work on projects like the HOT OSM Task (outlining buildings).

I tried this PR out and it really wasn't any better than just clicking and squaring. You still need to do all the clicking, the clicks just turn out more square as you're doing them.

@slhh
Copy link
Contributor

slhh commented Aug 12, 2018

@bhousel

I tried this PR out and it really wasn't any better than just clicking and squaring. You still need to do all the clicking, the clicks just turn out more square as you're doing them.

I wouldn't agree for the following reasons:

  • Closing the way orthogonally seems to save one click because 2 edges are added at the same time.
  • Each click to place another segment seem to become faster because the mouse positioning needs to be precise in one direction only.
  • Clicking and squaring might not work for buildings where at least one edge isn't orthogonal in reality. E.g. buildings with round structures.
  • Clicking and squaring can damage touching buildings.
  • Clicking and squaring results in angular misalignment between multiple buildings or building parts.
  • Clicking and squaring results in bad size or angular alignment where one corner can't be positioned well, eg. where a tree hides a corner of the building on imagery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A new feature for iD
Projects
None yet
Development

No branches or pull requests

4 participants