-
Notifications
You must be signed in to change notification settings - Fork 1.4k
render addresses (housenumber/housename) #10970
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
Conversation
* points with a dedicated marker * text inside of areas
I am not sure this is an improvement. ==> I think we should look for a way to have this still look like a pin, even though the content of the pin is now longer (the ref/number) Making this new feature is less of a change IMO especially since the address pin never had a distinguished icon (pin content)
This looks like a rendering but to me TBH. One workaround could be to cut all of those new address pins after 4 chars and ellipse "…" them and on mouseover they show their full number, name, … |
actually, what I meant was when
Good idea to limit the maximum length with an ellipse. It looks like this now:
Not quite: aside from vertex-nodes, also nodes with a
The reason to deviate from the "POI" symbol for address nodes was to make them more space-efficient, as the pin shape is already quite spacious, and the rendering of the labels next to the pin does not help either. This is fine for regular points of interests (e.g. a shop, school, landmark, etc.), as it allows to show an icon in the pin and can handle potentially long labels.
I played around a little bit with some alternative shapes: making them more pin-shaped by adding a little triangle at the bottom makes them look a bit like thought bubbles, which is kinda cute. But it also adds quite a lot of visual noise for little benefit: addresses are typically not that "pin-pointable" in practice, as they by definition stand in place for a building or similar area.1
Footnotes
|
as the current graph has now the most recent version of the modified entities, each individual change only needs to take into account the delta of the mouse movement between the current position and the previous one (instead of the original mouse position when the operation was started)
consider some additional tags as "not interesting"/non-POI-like: * check_date/fixme/note/note:*/survey:* — mapping related tags * layer/level/level:ref — can be considered attributes of the address * ref:* – often used to indicate a source ID on imported data
|
No, mouseover did not work in my tests (probably due to how the mouse events are handled: there are separate "touch targets" that are independent from the labels). but as that would not be really much faster than clicking on the node to see the value, I think it's acceptable.
🤔 could be worth a try… |
|
@tyrasd I assumed this PR is the source for those rounded-square shapes in https://pr-1555--ideditor-presets-preview.netlify.app/id/dist/#locale=en&map=19.60/14.65605/121.06291&disable_features=boundaries&background=Bing&id=w98724280 ? I think those should not receive the new layout but stay undefined pins instead. |
fixes a regression in #10970: * transitionable actions use `history`'s `_overwrite` under the hood, which expects the supplied graph to be the one of the original state when the action was started. * the original approach in #10970 did change this method to instead supply the graph of the previous step of the transition or the previous call to `.overwrite`, such that objects get a new `v` version such that they are properly rerendered if necessary (e.g. in case a node changes from being an address node to a full POI node, or vice versa) * the fix was to restore the `overwrite` implementation (to make transitioned action behave correctly), and elsewhere use `history.replace` where applicable to get proper entity updates
fixes a regression in #10970: * transitionable actions use `history`'s `_overwrite` under the hood, which expects the supplied graph to be the one of the original state when the action was started. * the original approach in #10970 did change this method to instead supply the graph of the previous step of the transition or the previous call to `.overwrite`, such that objects get a new `v` version such that they are properly rerendered if necessary (e.g. in case a node changes from being an address node to a full POI node, or vice versa) * the fix was to restore the `overwrite` implementation (to make transitioned action behave correctly), and elsewhere use `history.replace` where applicable to get proper entity updates






Various improvements regarding addresses:
name(when there is noname)Remaining todos / open questions:
addr:housenumberandaddr:housename, also both be rendered?history.js: it should be fine (i.e. the intended way this was always supposed to work), but needs some double-checking for potential side-effectsoverwritemethodg.layer-touch > rect)Below are a few example screenshots for different situations of mapped addresses:
addr:housenametagged as nodes:addr:housenametagged on buildings:entrance)entrance