Ticket #173 (closed feature: invalid)
path measuring tool
| Reported by: | jrf | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | Future |
| Component: | Control.MouseToolbar | Version: | |
| Keywords: | Cc: | ||
| State: |
Description (last modified by jrf) (diff)
Please create a path measuring tool for the general use case illustrated in the gmapPedometer. This is useful for assessing the distance between things and for assessing alternative routes.
Features:
- a modal tool button like the existing panning-hand and drag-rectangle buttons
- when in this mode, a single click in the map places the next vertex in the path.
- while moving the mouse in this mode, a line is displayed between the most recently placed vertex and the mouse, and when the mouse leaves the map pixel extent, the line freezes in place between the most recently placed vertex and the pixel closest to the exit point. When the mouse re-enters the map pixel extent, the line jumps to the new mouse pixel location.
- double-clicking ends the path
- click-holding and dragging a vertex repositions the vertex
- some action must insert a vertex between two existing vertex. Ideally, this would be double-clicking on the line segment itself. If this is not feasible, then find some other intuitive way to "break" a line segment by inserting a vertex that the user can reposition as needed, e.g. right click on a vertex and choose "add vertex to the right" or "add vertex to the left"
- a vertex can be deleted by right-clicking on it and choosing from a menu "delete this vertex"
- a path can be deleted by right-clicking on any vertex and choosing "delete entire path"
- each vertex should have a graphically polished little marker that includes the distance in kilometers and miles from the beginning of the path up to that point
- each line segment should have a graphically polished label aligned with the line that shows the length in kilometers and miles for that one line segment
- after place one path, the user can place additional paths on the same map
- the paths stay on the map across zooms, pans, and even window refreshes (perhaps by stuffing in a cookie?)
- the paths only go away when the user closes the window
Change History
Note: See
TracTickets for help on using
tickets.
