• The HB's functionality needs to separate out the lists of routes and systems from the actual browsing of a route's waypoints and connections.
The
functionality is already different, pretty separate. Do you mean separate tem out into separate PHP pages, the way CHM had selecthwys.php & hwymap.php?
• Some or all of the listing part probably can be replaced with the current region.php and system.php pages, either as-is or with some enhancements. Interested in opinions on this. I would not miss our current ugly lists.
Replaced? Unless I'm missing something, I don't like this -- region.php and system.php are for user stats, and should remain focused on that function. Searching & filtering routes to browse should be something distinct from that.
• For the actual viewing of routes on maps, I believe the new HB needs to be able to handle either r= to display a chopped route, or cr= to display an entire connected route, independently of how a user arrives at that page.
Agreed.
• The DB access will be replaced with AJAX calls to remove the dependency on waypoints.js.php.
Had a go at
waypoints.js.php for
Web#101, and found it pretty hard to understand.
• A page loaded with an r= to get a single chopped route should look much like the current HB maps. The info in the tables on the left should be similar. Marker popups should show similar information to what they do now.
• A page loaded with a cr= to get a connected route should have a similar look, but the info in the tables on the left needs to represent the entire connected route (maybe with some separators at region boundaries). Marker popups should show labels with route info, suitable to be pasted into a 6-field list entry. Markers at region boundaries should list the waypoint labels from both routes.
Agreed.
I wondered as I read, about how waypoints at boundaries would be handled in the table. Following along from the idea in the last sentence, we're acknowledging their "dual identity", so it makes sense to list one route's waypoint, the separator, then the other route's waypoint.
I'm not sure if there should be any visual indication on the map or in the tables about which parts are from which chopped routes (different colors?).
I don't like the idea of different colors. Better to not disrupt the clinched/unclinched color scheme we have already.
Maybe something like drawing a short perpendicular (dotted?) line at the boundaries.
Or using a different waypoint marker for the begin/end of the chopped routes.
How do we get that info from the DB?
Compare the
root values of adjacent
pointId values.
It's possible, I donlt really know how fast or efficient that might be.
Seconded. I prefer having a button for "copy to clipboard".
Yes.