About starting (not) expanded and vertical space:
The first obvious thing that I came up this is to use roughly the same logic
other `<detail>` elements are open/closed by default. Way nodes has this line
`<details <%= "open" if way.way_nodes.count < 10 %>>` which expands way nodes
if there are fewer than 10 of them. So I thought I'd expand node ways if
there's only one other way for a node. Collapsing just one way won't save much
space.
But then I checked some actual ways in osm and looks like their nodes in most
of the cases are members of one or two ways. Other cases are relatively rare.
If I do what I described in the previous paragraph, I wouldn't have to collapse
almost any `also part of` list. So collapsing 1-way lists doesn't save much
vertical space, and collapsing many-way lists also doesn't save much vertical
space. What does save it then?
I expect most of space wasted in this case:
- there's a long way with many nodes
- nodes mostly don't have any tags
- parts of the way share nodes with other ways, forming sequences of nodes with
the same type (where type is "nothing special", just show the generic node
icon), name (actually no name, just show the id) and set of shared ways
Here's an example that has two such sequences with one more special node in
between:
![image](https://github.com/user-attachments/assets/f2b30a2b-52fb-48b6-b1c1-02dd5545924c)
The idea is then to collect every such sequence into one list element, and
that's what #5355 does.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5317#issuecomment-2504180177
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5317/c2504180...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev