spstreets / gtfs_manager

A GUI for viewing and editing GTFS data
MIT License
31 stars 3 forks source link

Map interactions #9

Open maxwell8888 opened 2 years ago

maxwell8888 commented 2 years ago

Hovering a trip should highlight it and bring up sufficient information to help identify it, clicking it "selects" that trip and should that trip in the list. It is much easier to just ask the user to click a trip to bring up it's info, and avoids the situation where multiple trips are being hovered simultaneously.

Selecting an agency/route/trip/stop_time/stop in the list will also select it on the map and cause the previous item to be deselected.

Currently if multiple trips are being hovered and the user clicks, the "first" arbitrary trip is the one selected. This makes it harder to select the desired trip, especially if it follows the same path as another trip which comes "first". Maybe better to select all trips, then let the user narrow down from the list?

Provide some controls for resizing/zooming the map around the selected route, but don't do this automatically. Maybe double clicking the route zooms to it?

Esc (and clicking outside the map?) delselects any selected route.

Interaction with the line drawn on the map will not differentiate between trips, since in most cases all trips have the exact same shape, therefore any functionality that tries to differentiate between different trips would ususally be redundant. In order to only display a specific trip on the map (which provides more info than the route display, ie direction of travel and only the stops for that trip) users select the route first, and then use controls to choose which trip they want to highlight (either from the route widget in the list which is auto-scrolled to, or the route info that is brought up on the map itself).

Hovering a list item should highlight it on the map.