1ec5 left a comment (openstreetmap/openstreetmap-website#4183)

>  There's a problem. "Query nodes" gets the list by AJAX and in JSON, while 
> the way route gets its node list server-rendered in HTML. Also, the way route 
> (https://www.openstreetmap.org/way/*) doesn't have its own JavaScript file.

We probably can’t reuse the code for highlighting query results on the map, but 
the more relevant code is for highlighting the geometry of the element that the 
element page is about. We could reuse this code for highlighting individual 
members of the element. We’d need to somehow associate the list item with the 
portion of the overall element data at runtime. Maybe we can use the index of 
the list item to index into the list of coordinates that we used to render the 
way?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4183#issuecomment-3892136314
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/issues/4183/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to