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

Polygons beyond the edge of the screen cause confusing radial menu #542

Closed
iandees opened this issue Jan 28, 2013 · 57 comments · Fixed by #2170
Closed

Polygons beyond the edge of the screen cause confusing radial menu #542

iandees opened this issue Jan 28, 2013 · 57 comments · Fixed by #2170
Assignees
Labels
usability An issue with ease-of-use or design

Comments

@iandees
Copy link
Collaborator

iandees commented Jan 28, 2013

When I'm editing with iD I tend to click "off" (i.e. attempt to remove focus from the selected object) an object so the tag editor goes away and I get more editing space. In an area with big polygons (near my apartment has a landuse=residential behind a bunch of buildings in live mode) this attempt to deselect causes a radial menu to show up for the polygon. Since there's no indication that an object is selected (other than a green tint on the Bing imagery), I was really confused about what was going on.

This isn't really a bug as everything's acting as it should, but it certainly is confusing.

Screen Shot 2013-01-27 at 7 57 27 PM

@jfirebaugh
Copy link
Member

Yeah, this is definitely a problem. I think maybe we shouldn't even render fill for areas that cover the viewport.

@jfirebaugh
Copy link
Member

Related #426.

@tyrasd
Copy link
Member

tyrasd commented Aug 19, 2013

I'd propose the following: Render polygon fillings only if the object is (a) completely loaded and (b) at least some percentage of its outline is visible and (c) at least a certain percentage of its area is visible. The actual limits would have to be determined empirically. Maybe something in the order of 50% to 75% could work.

@jfirebaugh
Copy link
Member

Experimenting with non-fully-filled areas on the area-rendering branch:

image

@samanpwbb @ajashton, thoughts?

@pnorman
Copy link
Contributor

pnorman commented Sep 13, 2013

@gravitystorm
Copy link

Separate thread on https://lists.openstreetmap.org/pipermail/talk-gb/2013-September/015155.html , might help characterise the problem further.

@razor74
Copy link

razor74 commented Oct 11, 2013

Residential areas (landuse: residential) accidentaly changed with id editor after user tryied to draw or modify a buulding inside the poligon. The error already is annoing. Please , until you resolve this problem change the default editor back to potlatch 2.
brasov city
toplita

@tyrasd
Copy link
Member

tyrasd commented Oct 11, 2013

@razor74: This changeset was made with an older version of iD (1.1.6). In the meantime these problems have been addressed in a variety of issues, for example by solving a selection problem (#1693) and improvements on the orthogonalize tool (#1831).

@razor74
Copy link

razor74 commented Oct 13, 2013

On 12.10.2013 00:04, Martin Raifer wrote:

@razor74 https://github.com/razor74: This changeset
http://www.openstreetmap.org/browse/changeset/17988304 was made with
an older version of iD (1.1.6). In the meantime these problems have
been addressed in a variety of issues, for example by solving a
selection problem (#1693 #1693)
and improvements on the orthogonalize tool (#1831
#1831).


Reply to this email directly or view it on GitHub
#542 (comment).

The problem still persist.

http://www.openstreetmap.org/browse/way/84792537

Here , one day ago a coleague revert the same change made accidentaly to
Brasov landuse residential.

@ghost ghost assigned jfirebaugh Oct 16, 2013
@razor74
Copy link

razor74 commented Oct 19, 2013

On 13.10.2013 18:18, Razvan wrote:

On 12.10.2013 00:04, Martin Raifer wrote:

@razor74 https://github.com/razor74: This changeset
http://www.openstreetmap.org/browse/changeset/17988304 was made
with an older version of iD (1.1.6). In the meantime these problems
have been addressed in a variety of issues, for example by solving a
selection problem (#1693
#1693) and improvements on the
orthogonalize tool (#1831 #1831).


Reply to this email directly or view it on GitHub
#542 (comment).

The problem still persist.

http://www.openstreetmap.org/browse/way/84792537

Here , one day ago a coleague revert the same change made accidentaly
to Brasov landuse residential.

Hello

Again the same problem. You can see in this changeset that this user
after aded a school, ID editor vers. 1.21 changed landuse = residential
of Bucuresti city in building = yes.

http://www.openstreetmap.org/browse/changeset/18435905

@razor74
Copy link

razor74 commented Oct 19, 2013

http://www.openstreetmap.org/browse/changeset/18435905
With editor ID vers. 1.21
landuse = residential of Bucuresti city changed in building=yes

@SomeoneElseOSM
Copy link

It's still happening:

http://www.openstreetmap.org/browse/changeset/19099731
http://www.openstreetmap.org/browse/changeset/18960057

The most common issue seems to be "landuse" to "building" transitions. I can understand the unwillingness to implement "are you sure" dialogs all over the place, but in the case of large landuse to building changes, surely something should be flagged up? What's the largest building in the world - if someone creates a "building" in iD bigger than that perhaps something should be flagged up.

For info, I've just done it myself on the dev server with iD 1.3.3 - the fact that "landuse" pops up at the left isn't really a cue that you're changing an unexpected object since when adding things with iD your most recent searches turn up in the list at the left.

@boxed
Copy link

boxed commented Dec 3, 2013

I suggest not allowing turning something into a circle and similar operations that has zero nodes in the viewport.

@tyrasd
Copy link
Member

tyrasd commented Dec 3, 2013

@boxed: See #1702 for my thoughts on this.

@SomeoneElseOSM
Copy link

Still happening:

http://www.openstreetmap.org/changeset/19306253

(this time turning a residential area of a quite large town into a bicycle shop)

I'm not convinced that the suggestions on #1702 would have helped in this case - a new mapper just wants to add a bike shop, and if there's nothing in the UI to tell them to click "point" at the top and nothing that stops them from changing details of an unfeasibly large area, some new mappers will do exactly that.

@malenki
Copy link

malenki commented Jan 11, 2014

Still happens - just reverted http://www.osm.org/changeset/19918651.
A thread in the German part of the OSM forum named "iD deforming landuses" collecting this kind of issues is 9 months old and 11 pages long: http://forum.openstreetmap.org/viewtopic.php?id=21611

@razor74
Copy link

razor74 commented May 9, 2014

Hello,
Again the same and unresolved problem...
https://www.openstreetmap.org/way/84830291
A landuse residential poligon transformed in building = yes

@SomeoneElseOSM
Copy link

For info, still happening in the UK too (at least 3 examples in the last couple of days).

@razor74
Copy link

razor74 commented May 13, 2014

bucharest
Today the entire Romania capital - Bucharest was changed in building.
https://www.openstreetmap.org/relation/3474715

@jfirebaugh
Copy link
Member

I implemented a fix for this by replacing the fill for things like landuse=residential with a wide stroke clipped to the area, but it is affected by a showstopper Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=676001 😦

jfirebaugh added a commit that referenced this issue May 27, 2014
residential, retail, commercial and industrial landuse tags
typically cover large, dense areas with many overlapping
features. The large click targets of filled areas have proven
to be very good for usability in the general case, but are
a common source of accidental mistagging in this case.

We may add additional tags to this list, but these are the
obvious first step — especially landuse=residential.

Fixes #542.
@SomeoneElseOSM
Copy link

Re #542 (comment) above - we're seeing fewer "circularisations" than before, but still quite a lot of "residential area moves" (and just as many "make X into a building" of course).

"Large landuse moves" affect the individual nodes rather than the way itself and can be quite difficult to spot if they haven't also made it into a building.

In the same manner as #2170 would it be possible to disable way move operations if the way is not > 80% in the viewport?

@bhousel
Copy link
Member

bhousel commented Jul 11, 2014

@SomeoneElseOSM, I agree, I think it makes sense to also disable the Move and Rotate operations if the object is not at least 80% contained in the viewport..

bhousel added a commit that referenced this issue Jul 11, 2014
…wport

see #542.
Also included:
1. DRY up code for "% contained in" extent testing.
2. If action.disabled() returns a better reason, show that instead of the too_large one.
@bhousel
Copy link
Member

bhousel commented Jul 11, 2014

@jfirebaugh would it be better to attack this problem in iD.behavior.Select.click(), rather than in the area rendering code? We could just not select too-big polygons, right?

@jfirebaugh
Copy link
Member

That would make large polygons completely uneditable in iD, right? You couldn't edit the tags, and since vertices appear only on selected ways, you couldn't change the geometry either. That doesn't sound desirable.

@bhousel
Copy link
Member

bhousel commented Jul 13, 2014

My thinking is to intersection test the polygon edge with the viewport (context.map().trimmedExtent()), and only select the polygon if the user has a reasonable chance of seeing the selection halo.

In other words - allow select if an edge goes right through the middle of the viewport (or the polygon is completely enclosed), prevent select if the polygon is so big that the user sees no edges.

(We'd of course need to test the actual polygon edge, not just compare extents like I have been doing for these other workarounds).

@jfirebaugh
Copy link
Member

That could work. Though I'd rather have a solution where there's a UI indication of which clicks will register and which won't, so I'm tempted to wait for FF33 which fixes the stroke hit testing which 378ac45 relies on.

@23cpo
Copy link

23cpo commented Jul 28, 2014

iD 1.5.2: This residential area got mistakenly selected and was changed into natural=spring: https://www.openstreetmap.org/changeset/24318834
iD 1.4.0: here a whole country got selected and was changed into an building: https://www.openstreetmap.org/changeset/24006429

The thread about the selection bug in iD in the german subforum has now over 13 pages: http://forum.openstreetmap.org/viewtopic.php?id=21611&p=13 I alone had to fix about five cases this week where residential-areas were changed into buildings by different iD-users.

My proposed solution would be a double-click (like in JOSM) to select huge areas instead of the misleading one-click.

@Nakaner
Copy link

Nakaner commented Jul 29, 2014

Dear developers,

Me and how I think about this issue

I am one of the German forum members who care for quality assurance in Germany. I regularly (4–7 times a week) have a look at a couple of areas in Germany using WhoDidIt, rural areas (East Germany, Heilbronn area) and urban areas (parts of Karlsruhe).

As a summary of the last weeks, I can say that the problem of rectified or cicular polygons has decreased. But the other problem still exists. An iD user wants to add or modify a node-shaped POI. To do so, he tries to select the node but, instead of the node, the landuse area behind is being selected. That's the way villages and towns become banks, atms, fast food POIs etc. See the following link list of recent problems.

Not only newbies make POIs out of villages against their will. The same happens if a advanced JOSM user just wants to try "the quick and dirt editor" [1].

This has not been fixed for about 1 1/2 years. It makes me to have a detailed look at almost all edits using iD in the areas I observe using WhoDidIt's RSS feeds. I have been using WhoDidIt for quality assurance since the time iD was pre-alpha and not available at osm.org. I know the time before iD.

Potlatch 2 has also a not very good reputation in German forum, but the one iD has is times worse than Potlatch's reputation! The round-and-restaurant-iD-problem is the cause, why I always suggest every newbie, who receives a welcome message from me (containing information about the right use of name tags), to use JOSM. This messaging might refuse a lot of newbies editing any more but I do not want to repair a village or revert a changeset a day.

Solving this issue is easy, isn't it?

But I do not want to complain without a suggestion to solve this issue. I know that you refuse to add warnings. Why don't you disable selecting areas by clicking inside them? JOSM does not have this issue because you can select areas only via clicking on the outline of the area. [2]

What do you, dear developers of iD, think about this suggestion?

I am hating iD at the moment

As you might have read between the lines, I currently hate iD. I can change from hate to acceptance if issues like this are being resolved. I do not like to write how-to-JOSM in every newbie message.

Keeping quiet about iD

A few German mappers (not the ones from forum) and me will present OSM at the professional geodesy and geoinformation trade faire "Intergeo" in Berlin on 6th–9th October as the years before. Last year I kept quiet about the existence of an online editor when I was asked about how to edit OSM. (Most visitors have experience in using more or less ugly GIS GUIs) If iD becomes better, I will talk about iD, too.

Best regards

Michael
(Nakaner)

[1] quote from an message I received as an answer on my message "you have made a bank out of a village, I corrected it"
[2] In JOSM you can make a double-click to select an area.

EDIT: JohnDoe23 at German Forum

@jfirebaugh
Copy link
Member

Stroke hit testing seems to be better in Firefox 31, so I've deployed a change mentioned earlier in which landuse=* areas are no longer fully filled.

image

Since almost all the reports of mistaken edits have been for landuse=residential, I believe this will address the issue without sacrificing usability. If necessary we can expand this rendering to other tags.

@Nakaner
Copy link

Nakaner commented Jul 29, 2014

I am curious if we will notice a decline of mistaken edits. I myself would expand this stroke-rendering on all landuse and natural polygons. This would be easier than maintaining a tag list. If landuse polygons can only be selected at this small strip along the outline, I am satisfied.

Thank you for your quick response/commit.

@razor74
Copy link

razor74 commented Jul 29, 2014

Hi,
I sustain your idea with expanding stroke- rendering on all landuse and
natural polygons.

On 29.07.2014 21:07, Michael Reichert wrote:

I am curious if we will notice a decline of mistaken edits. I myself
would expand this stroke-rendering on all landuse and natural
polygons. This would be easier than maintaining a tag list. If landuse
polygons can only be selected at this small strip along the outline, I
am satisfied.

Thank you for your quick response/commit.


Reply to this email directly or view it on GitHub
#542 (comment).

@malenki
Copy link

malenki commented Jul 29, 2014

Michael Reichert schrieb
am Tue, 29 Jul 2014 11:07:24 -0700:

If landuse polygons can only be selected at this small strip along the
outline, I am satisfied.

How will this work when there are two landuses sharing the same nodes?

@Nakaner
Copy link

Nakaner commented Jul 29, 2014

2014-07-29 20:12 malenki wrote:

Michael Reichert wrote
Tue, 29 Jul 2014 11:07:24 -0700:

If landuse polygons can only be selected at this small strip along the
outline, I am satisfied.

How will this work when there are two landuses sharing the same nodes?

The selecting strip is inside the area. If two landuses are neighbours,
still click into the area. If the two (landuse) area cover the same
area, something might be mapped the wrong way. :)

@23cpo
Copy link

23cpo commented Jul 30, 2014

@malenki This is another issue, look here: #2225

@PeterPablo
Copy link

Part of a forest (http://www.openstreetmap.org/relation/1630678) was made a school (the issue was reported in the German OSM forum).

@SomeoneElseOSM
Copy link

@PeterPablo - that change was back on July 10th. Whilst the iD developers are I'm sure very ingenious, time travel I suspect still eludes them.

@PeterPablo
Copy link

@SomeoneElseOSM @jfirebaugh As far as I understand commit b4fa085 would not take care of this kind of issue due to different tag content of "landuse" (e.g. "meadow). @razor74 suggested to extend the behavior to all landuse and natural (multi-)polygons.

@SomeoneElseOSM
Copy link

It's been a while since I've seen any newbie iD created "huge buildings" - the fix definitely seems to be working! Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability An issue with ease-of-use or design
Projects
None yet
Development

Successfully merging a pull request may close this issue.