主权项 |
1. A non-transitory computer-readable storage medium having stored therein program instructions, that when executed by a computing device, cause the computing device to perform functions comprising:
displaying a map window on a display screen of the computing device, wherein the map window includes a visible region of the map, the map including a plotted route originating at a source location and ending at a destination location and wherein the displaying includes displaying, by one or more computer processors, the map window with a route orientation, wherein the route orientation locates a destination location direction at a top of the map window and a source location direction at a bottom of the map window; receiving one or more directional swipe gestures from a user within the map window; responsive to receiving the one or more directional swipe gestures from the user, performing one of: displaying a progress of the user on the visible region of the map along the plotted in the map window, or, scrolling the map window in a direction corresponding to the one or more directional swipe gestures, wherein the scrolling the map window includes scrolling the map window off the plotted route based on a scroll elasticity of the map window, the scroll elasticity of the map window capable of returning the map window to a fixed focus point along the plotted route upon release of the one or more directional swipe gestures; determining whether the one or more directional swipe gestures exceeds an escape velocity threshold, wherein the escape velocity threshold is a level of swipe intensity to overcome an elastic behavior of the map window and to allow the map window to remain in an area of the map off the plotted route; responsive to the determination that the one or more directional swipe gestures exceeds the level of swipe intensity to progress the map window into the area of the map off the plotted route, generating one or more custom pegs, wherein the one or more custom pegs include one or more compressed snapshots of corresponding one or more last positions on the visible region within the map window along the plotted route prior to exceeding the escape velocity threshold, wherein the generating the one or more custom pegs includes:
capturing the one or more compressed snapshots of the corresponding one or more last positions on the visible region within the map window along the plotted route on the map prior to exceeding the escape velocity threshold; andpreserving the one or more custom pegs as the one or more compressed snapshots, which are located at a border at an opposite corner of the plotted route in the map window; allowing the user to continue scrolling through areas off the plotted route in the map window until at least one of the one or more custom pegs is selected by the user; receiving the at least one custom peg selection, wherein the at least one custom peg selection includes a tapping action of the user indicating a selection of at least one of the one or more custom pegs located at the border at the opposite corner of the plotted route in the map window; and responsive to receiving the at least one custom peg selection, automatically returning the map window to the corresponding one or more last positions on the visible region within the map window along the plotted route on the map prior to exceeding the escape velocity threshold. |