Method and device for adjusting map display
The method and apparatus facilitate simultaneous scaling and rotation of 3D map displays on mobile devices by analyzing user gesture data, addressing the cumbersome nature of current interaction methods and improving user experience through simplified multi-angle adjustments.
Patent Information
- Application Number
- JP2024539284
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-31
- Filing Date
- 2022-07-13
- Publication Date
- 2024-12-26
- Estimated Expiration
- 2042-07-13
AI Technical Summary
Existing 3D map display controls on mobile devices require frequent switching between interaction methods, such as scaling and rotation, due to two-finger interaction locking a single mode, making operations cumbersome.
A method and apparatus that acquires adjustment gesture data from a user's touch display, analyzing it to obtain an adjustment index, allowing simultaneous scaling and rotation of the map display between different viewing angles using a single operation, eliminating the need for frequent switching.
Enables multi-angle map display adjustments with a single operation, simplifying the interaction process and enhancing user experience by allowing simultaneous scaling and rotation without requiring multiple operation steps.
Smart Images

Figure 2024547147000001_ABST
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to Chinese Patent Application No. 202111678189.6, filed on December 31, 2021, the entire contents of which are incorporated herein by reference as part of this application.
[0002] The present disclosure relates to the technical field of data processing, and in particular to a method and apparatus for adjusting a map display. [Background technology]
[0003] With the increasing functionality of mobile terminals, intelligent terminal devices are indispensable in daily life. Users can use mobile terminals to do office work, shopping, housework, etc. Map applications are also one of the applications in high demand in mobile terminals. Map applications can provide accurate map data and plan travel routes according to users' needs. Users can use map applications to search for destinations and perform route navigation, and when a 3D map is displayed on a touchable screen, users can also use gestures to adjust the display content of the map, for example, zoom in and out.
[0004] Currently, in the realization method for human-computer interaction of 3D maps, one finger is usually used to control the movement of the map display viewpoint, for example, one finger is used to adjust the map to move horizontally / vertically on the screen of a mobile terminal, and two fingers are used to control the zoom in / out and rotation of the map display viewpoint, for example, two fingers can be pinched in to narrow the map display viewpoint, and two fingers can be rotated based on the horizontal and vertical directions. However, in the general 3D map display control, after two fingers interaction locks one type of interaction, other viewpoint changes cannot be performed at the same time, for example, only zoom in / out and / or horizontal rotation, zoom in / out and / or vertical rotation, etc. can be performed, and when it is necessary to switch to another interaction method, it is necessary to operate again after two fingers are removed from the screen, which makes the map display interaction operation complicated.
[0005] Please note that the information disclosed in the Background section above is intended merely to provide a deeper understanding of the background of this disclosure and may therefore contain information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] In view of this, the present disclosure provides a method and apparatus for adjusting a map display.
[0007] According to one aspect of the present disclosure, there is provided a method for adjusting a map display, the method comprising: acquiring adjustment gesture data when an adjustment command for a map display page is received, the adjustment command being transmitted by a user operating a touch display on the map display page, the adjustment gesture data including at least an adjustment start finger position and an adjustment end finger position; analyzing the adjustment gesture data to obtain an adjustment indicator, the adjustment indicator being for identifying a position change of the adjustment gesture in the process of adjusting a current map display; and a step of scaling the map display page according to the adjustment indicator and rotating it between a first viewing angle and a second viewing angle, the first viewing angle being a viewing angle in a parallel plane of the map and the second viewing angle being a viewing angle in a cut plane of the map.
[0008] According to another aspect of the present disclosure, there is provided an apparatus for adjusting a map display, the apparatus comprising: an acquisition module configured to acquire adjustment gesture data when receiving an adjustment command of a map display page, the adjustment command being transmitted by a user operating a touch display on the map display page, and the adjustment gesture data including at least an adjustment start finger position and an adjustment end finger position; an analysis module configured to analyze the adjustment gesture data to obtain an adjustment indicator, the adjustment indicator being for identifying a position change of the adjustment gesture in the process of adjusting a current map display; a scaling module configured to scale the map display page according to the adjustment metric; and a rotation module configured to rotate the map display page between a first viewing angle and a second viewing angle according to the adjustment indicator.
[0009] According to yet another aspect of the present disclosure, there is provided a storage medium having stored thereon at least one executable instruction, the executable instruction causing a processor to perform operations corresponding to the method of adjusting a map display described above.
[0010] According to yet another aspect of the present disclosure, there is provided a terminal including a processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface communicating with each other via the communication bus; The memory is configured to store at least one executable instruction, the executable instruction causing the processor to perform operations corresponding to the method of adjusting a map display described above.
[0011] The above description is only an outline of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, which can be implemented in accordance with the content of the specification, and to more clearly understand the above and other objectives, features and advantages of the present disclosure, specific embodiments of the present disclosure are described below.
[0012] Various advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are used only for the purpose of illustrating the preferred embodiments and are not to be understood as limiting the present disclosure. The same reference numerals refer to the same elements throughout the accompanying drawings. [Brief description of the drawings]
[0013] [Figure 1] 1 is a flowchart illustrating a method for adjusting a map display provided by an embodiment of the present disclosure. [Diagram 2] 1 is a flowchart illustrating another map display adjustment method provided by an embodiment of the present disclosure. [Diagram 3] FIG. 1 is a block diagram showing a configuration of a map display adjustment device provided by an embodiment of the present disclosure. [Figure 4] FIG. 1 is a block diagram showing a configuration of another map display adjustment device provided by an embodiment of the present disclosure. [Diagram 5] FIG. 1 is a schematic diagram showing the structure of a terminal provided by an embodiment of the present disclosure; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although the accompanying drawings show exemplary embodiments of the present disclosure, the present disclosure can be implemented in various forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to enable a deeper understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0015] In general 3D map display control, after two-finger interaction locks one type of interaction, other viewpoint changes cannot be performed at the same time, for example, only zooming in and out and / or horizontal rotation, zooming in and / or vertical rotation, etc. can be performed, and when it is necessary to switch to another interaction method, it is necessary to operate again after removing two fingers from the screen, which makes the map display interaction operation complicated. An embodiment of the present disclosure provides a map display adjustment method, and as shown in FIG. 1, the method includes the following steps:
[0016] In step 101, when a map display page adjustment command is received, adjustment gesture data is obtained.
[0017] Here, the adjustment command is transmitted by a user operating a touch display on the map display page, and the adjustment gesture data includes at least an adjustment start finger position and an adjustment end finger position. The touch display may be disposed on a mobile terminal device, a site guide device, a mobile robot, etc., and the adjustment finger position is determined according to a finger touch point in the coordinate system by establishing a coordinate system in the plane of the touch display, specifically, the adjustment finger position may be obtained by invoking a preset interface or a preset algorithm when a finger touches the touch display, and is not particularly limited in the embodiment of the present application.
[0018] In the embodiment of the present application, the map display page adjustment command may be sent when the user's finger presses the touch display for a short time. For example, when the user's finger stays on the mobile phone screen for 0.2 seconds and then moves, it can be determined that the current user operation indicates that the map display page is to be adjusted, and the sending of the map display page adjustment command to the server side is triggered so that the server adjusts the map display page according to the user's operation.
[0019] In addition, the terminal device can download a corresponding map application program via the Internet in advance, load map data and store it locally or in the cloud, and adjust and display the map display page according to user operations during use.
[0020] In step 102, the adjustment gesture data is analyzed to obtain an adjustment indicator.
[0021] Here, the adjustment indicator is for identifying the position change of the adjustment gesture in the process of adjusting the current map display. Specifically, the adjustment indicator may be the distance between fingers, the position change of a certain reference point, for example, the midpoint of the line connecting the positions of two fingers, the position change of fingers on a touch display, etc., and is not particularly limited in the embodiments of the present application.
[0022] In an embodiment of the present application, by analyzing the data generated when a user adjusts a map display page, data capable of identifying a position change of the adjustment gesture can be obtained. For example, based on the adjustment gesture data, if the adjustment gesture is identified as finger 1 moving from a1 to a2 and finger 2 moving from b1 to b2, the two sets of finger data may be used as the adjustment index in this step.
[0023] In step 103, the map display page is scaled according to the adjustment indicator and rotated between a first viewing angle and a second viewing angle.
[0024] Here, the first viewing angle (first viewpoint) is a viewing angle in a parallel plane of the map, and the second viewing angle (second viewpoint) is a viewing angle in a cut plane of the map. Specifically, this step determines an adjustment zoom ratio according to the adjustment index, for example, determines whether the two fingers of the user are pinched in or pinched out based on the position of the two fingers, and correspondingly zooms in and out the map display page according to the degree of pinching in or pinching out, and determines a rotation angle between the first viewing angle and the second viewing angle according to the adjustment index, for example, calculates the rotation angle at the two viewing angles based on the displacement of a reference point of the two fingers during the adjustment process.
[0025] The present disclosure provides a map display adjustment method and device, a storage medium, and a terminal. Compared with the related art, the embodiment of the present disclosure obtains adjustment gesture data when receiving an adjustment command for a map display page, the adjustment command is sent by a user operating a touch display on the map display page, the adjustment gesture data includes at least an adjustment start finger position and an adjustment end finger position, and analyzes the adjustment gesture data to obtain an adjustment indicator, the adjustment indicator is for identifying a position change of the adjustment gesture in the adjustment process of the current map display, and zooms in and out of the map display page and rotates it between a first viewing angle and a second viewing angle according to the adjustment indicator. The first viewing angle is a viewing angle within a parallel plane of the map, and the second viewing angle is a viewing angle within a cut plane of the map, so that an adjustment indicator capable of identifying a position change of an adjustment gesture is identified based on an adjustment finger position generated when a user adjusts a map display, and adjustments can be simultaneously performed on the map display page to rotate it at three viewing angles, i.e., zooming in / zooming out, rotating within the parallel plane of the map, and rotating within the cut plane of the map, according to the adjustment indicator. This allows a user to realize multi-viewpoint adjustment with a single operation, and eliminates the need for frequent switching operations to adjust map displays of different viewing angles, simplifying the adjustment operation of the map display page and improving the user experience.
[0026] As an improvement and extension of the specific embodiment of the above embodiment, in order to fully describe the specific implementation process of this embodiment, another map display adjustment method is provided, as shown in FIG. 2, the method includes the following steps:
[0027] In step 201, when a map display page adjustment command is received, adjustment gesture data is obtained.
[0028] Here, the adjustment command is sent by the user operating a touch display on the map display page, and the adjustment gesture data includes at least an adjustment start finger position and an adjustment end finger position. The concept interpretation and specific embodiment of this step can be referred to the corresponding description in step 101, and will not be repeated in the embodiments of this application.
[0029] In an embodiment of the present application, after step 201, the method may further include: determining whether the adjustment gesture is a two-finger gesture based on the adjustment gesture data; if the adjustment gesture is a one-finger gesture, calculating a drag displacement based on the adjustment start gesture position and the adjustment end gesture position, where the drag displacement is a corresponding displacement of a finger on the touch display during an adjustment process; and moving the map display page within a parallel plane of the map based on the drag displacement. If the adjustment gesture is a two-finger gesture, execute step 202.
[0030] In an embodiment of the present application, based on the acquired adjustment gesture data, it is determined whether the gesture is a one-finger gesture or a two-finger gesture. If it is determined to be a one-finger gesture, a map translation adjustment (map pan adjustment) is performed. If it is determined to be a two-finger gesture, the gesture data is further analyzed to obtain an adjustment indicator contained in the gesture data, thereby avoiding the problem of resource waste caused by directly analyzing the data and ensuring the accuracy of the adjustment of the map display page.
[0031] In step 202, a first center point and a second center point are calculated based on the adjusted start gesture position and the adjusted end gesture position respectively.
[0032] Here, the first center point is the midpoint of a line connecting the positions of the two fingers at the start of adjustment, and the second center point is the midpoint of a line connecting the positions of the two fingers at the end of adjustment.
[0033] In the embodiment of the present application, the center point between two fingers is used as a reference point, and the adjustment direction and adjustment amount in the adjustment process are determined according to the change in position of the reference point. However, of course, other points may be selected as reference points and used as the judgment criteria, and the embodiment of the present application is not particularly limited.
[0034] Specifically, the implementation manner of this step may be to obtain the position coordinates of two fingers during the user's operation process, and calculate the center point coordinate between the two fingers based on the position coordinates. The coordinate value of the finger position may be calculated according to a calculation method in the related art, and is not particularly limited in the embodiments of the present application.
[0035] For example, in the process of a user performing an adjustment of a map display page, the adjustment start gesture position is [(x1, y1), (x2, y2)], that is, the coordinates of the two fingers at the start of adjustment are x1, y1 and x2, y2 respectively, the adjustment end gesture position is [(x'1, y'1), (x'2, y'2)], and the calculated first center point position and second center point position are ((x1+x2) / 2, (y1+y2) / 2) and ((x'1+x'2) / 2, (y'1+y'2) / 2) respectively.
[0036] In step 203, a relative displacement between the first center point and the second center point on the touch display is calculated.
[0037] Since the coordinates of the two center points are calculated in the above step, in this step, the relative displacement can be calculated based on the coordinates of the two points.
[0038] In an embodiment of the present application, in the process of adjusting the map display page, the center point of the finger is used as a reference point, and the center point between the two fingers at the adjustment start position and the center point between the two fingers at the adjustment end position are calculated, respectively, whereby the corresponding displacement of the reference point in the process of adjusting the screen display can be identified, and further, rotation control is performed on the map display page according to the displacement.
[0039] In step 204, an adjustment ratio is calculated based on the adjustment start finger position and the adjustment end finger position.
[0040] Here, the adjustment ratio is the ratio of the distance between the two fingers at the end of the adjustment to the distance between the two fingers at the start of the adjustment.
[0041] Based on the content described in step 202 above, the acquired adjustment gesture data includes the positions of the two fingers at the start time and the end time of the adjustment process, so that the distance between the two fingers at the start time and the distance between the two fingers at the end time can be calculated, and the ratio of the two distances can be calculated to obtain the adjustment ratio during this step.
[0042] It should be noted that in the embodiment of the present application, the order of execution of step 204 and step 202 is not limited, that is, step 204 and step 202 may be executed in parallel, or each may be executed independently.
[0043] In step 205, the relative displacement and the adjustment ratio are identified as the adjustment index.
[0044] In the embodiment of the present application, the adjustment ratio and the relative displacement are calculated respectively, and the adjustment ratio and the relative displacement are identified as adjustment indexes. The zooming in and out of the map display page and the rotation of the map display page at different angles are controlled respectively according to these two adjustment indexes, thereby realizing multi-angle display adjustment of the map display page and ensuring the accuracy of the adjustment of the map display page.
[0045] In step 206, the map display page is scaled and rotated between a first viewing angle and a second viewing angle according to the adjustment indicator.
[0046] Here, the first viewing angle is a viewing angle in a parallel plane of the map, and the second viewing angle is a viewing angle in a cut plane of the map.
[0047] Specifically, this step may include the steps of respectively calculating a first displacement and a second displacement corresponding to the adjustment displacement, calculating a first angle and a second angle corresponding to the first displacement and the second displacement according to a preset algorithm, and rotating the map display page at the first visual angle according to the first angle and at the second visual angle according to the second angle, where the first displacement is a component of the adjustment displacement in the horizontal direction of the touch display, and the second displacement is a component of the adjustment displacement in the vertical direction of the touch display. The preset algorithm may be one or more of a matrix, a function, or a mapping relationship between a preset adjustment displacement and an adjustment angle, and a method of controlling the rotation of the map display page according to the rotation angle after determining the rotation angle may be an implementation in the related art, and is not particularly limited in the embodiments of the present application.
[0048] In one embodiment, this step may further include the steps of: enlarging the map display page according to the adjustment ratio if the adjustment ratio is greater than 1; and reducing the map display page according to the adjustment ratio if the adjustment ratio is less than 1.
[0049] When the adjustment ratio is greater than 1, the distance between the two fingers in the adjustment process becomes greater, that is, the user's finger state is a pinch out state, and it is determined that the viewpoint is enlarged, so the map display page is enlarged and displayed according to the adjustment ratio, and when the adjustment ratio is less than 1, the distance between the two fingers in the adjustment process becomes smaller, that is, the user's finger state is a pinch in state, and it is determined that the viewpoint is reduced, so the map display page is reduced and displayed according to the adjustment ratio. In actual application, the map enlargement / reduction ratio may be the same as the calculated adjustment ratio, or may be proportional to the adjustment ratio, that is, it may be enlarged at 1:1 according to the adjustment ratio, or may be enlarged / reduction according to a preset ratio relationship.
[0050] In an embodiment of the present application, the corresponding relative displacement of a reference point, for example, the center point of the line connecting the positions of the two fingers in the two-finger gesture in this embodiment, during the adjustment process is converted into an adjustment angle, and the adjustment angle is used to adjust the rotation of the map display page in two reference planes, respectively, and a zoom adjustment is performed on the map display page according to the change in the distance between the two fingers during the adjustment process. This allows the user to adjust the map display page at multiple angles by performing a single operation, and eliminates the need for the user to perform multiple operations to switch between map page displays with different perspectives. This simplifies the adjustment operation of the map page display and improves the user experience.
[0051] The present disclosure provides a method and apparatus for adjusting a map display. Compared with the related art, the embodiment of the present disclosure obtains adjustment gesture data when an adjustment command for a map display page is received, the adjustment command is sent by a user operating a touch display on the map display page, the adjustment gesture data includes at least an adjustment start finger position and an adjustment end finger position, analyzes the adjustment gesture data to obtain an adjustment indicator, the adjustment indicator is for identifying a position change of the adjustment gesture in a current map display adjustment process, and scales the map display page and rotates it between a first viewing angle and a second viewing angle according to the adjustment indicator, and One visual angle is a visual angle within a parallel plane of the map, and the second visual angle is a visual angle within a cut plane of the map. Thus, an adjustment indicator capable of identifying a position change of an adjustment gesture can be identified based on an adjustment finger position generated when a user adjusts a map display, and adjustments can be simultaneously performed on the map display page to rotate it at three visual angles, i.e., zooming in / zooming out, rotating within the parallel plane of the map, and rotating within the cut plane of the map, according to the adjustment indicator. Thus, a user can realize adjustment of multiple visual angles with a single operation, and there is no need for frequent switching operations to adjust map displays of different visual angles. This simplifies the adjustment operation of the map display page and improves the user's usage experience.
[0052] As an aspect of the method shown in FIG. 1 above, an embodiment of the present application provides a map display adjustment device, as shown in FIG. 3, the device includes an acquisition module 31, an analysis module 32, a zoom module 33, and a rotation module 34.
[0053] The acquisition module 31 is configured to acquire adjustment gesture data when receiving an adjustment command for a map display page, the adjustment command being transmitted by a user operating a touch display on the map display, and the adjustment gesture data including at least an adjustment start finger position and an adjustment end finger position.
[0054] The analysis module 32 is configured to analyze the adjustment gesture data to obtain an adjustment indicator, which is for identifying a position change of the adjustment gesture during the adjustment of the current map display.
[0055] A scaling module 33 is configured to scale the map display page according to the adjustment measure.
[0056] A rotation module 34 is configured to rotate the map display page between a first viewing angle and a second viewing angle according to the adjustment indicator.
[0057] In one embodiment, as shown in FIG. 4, the analysis module 32 includes a first calculation unit 321 and an identification unit 322; The first calculation unit 321 is configured to respectively calculate a first center point and a second center point according to the adjustment start gesture position and the adjustment end gesture position, the first center point being a midpoint position of a line connecting the positions of the two fingers at the start of adjustment, and the second center point being a midpoint position of a line connecting the positions of the two fingers at the end of adjustment; The first calculation unit 321 is further configured to calculate a relative displacement between the first center point and the second center point on the touch display; The first calculation unit 321 is further configured to calculate an adjustment ratio according to the adjustment start finger position and the adjustment end finger position, the adjustment ratio being a ratio between the distance between the two fingers at the end of adjustment and the distance between the two fingers at the start of adjustment; The determining unit 322 is configured to determine the relative displacement and the adjustment ratio as the adjustment index.
[0058] In one embodiment, the rotation module 34 includes a second calculation unit 341 and a rotation unit 342; The second calculation unit 341 is configured to respectively calculate a first displacement and a second displacement corresponding to the adjustment displacement, where the first displacement is a component of the adjustment displacement in a horizontal direction of the touch display, and the second displacement is a component of the adjustment displacement in a vertical direction of the touch display; The second calculation unit 341 is further configured to calculate a first angle and a second angle corresponding to the first displacement and the second displacement, respectively, according to a preset algorithm; The rotation unit 342 is configured to rotate the map display page at the first viewing angle according to the first angle and at the second viewing angle according to the second angle.
[0059] In one embodiment, the scaling module 33 comprises: a magnifying unit 331 configured to magnify the map display page according to the adjustment ratio if the adjustment ratio is greater than 1; and a reducing unit 332 configured to reduce the map display page according to the adjustment ratio if the adjustment ratio is less than 1.
[0060] In one embodiment, the apparatus comprises: The adjustment gesture further includes a determining module 35 configured to determine whether the adjustment gesture is a two-finger gesture based on the adjustment gesture data.
[0061] In one embodiment, the analysis module 32 is specifically configured to analyze the adjustment gesture data to obtain an adjustment indicator when the determination module determines that the adjustment gesture is a two-finger gesture.
[0062] In one embodiment, the apparatus comprises: a calculation module 36 configured to calculate a drag displacement according to the adjustment start gesture position and the adjustment end gesture position when the judgment module determines that the adjustment gesture is a one-finger gesture, the drag displacement being a corresponding displacement of a finger on the touch display during the adjustment process; and a translation module 37 configured to translate the map display page within a parallel plane of the map based on the drag displacement.
[0063] The present application provides a method and apparatus for adjusting a map display. Compared with the related art, the embodiment of the present disclosure obtains adjustment gesture data when an adjustment command for a map display page is received, and the adjustment command is sent by a user operating a touch display on the map display page, and the adjustment gesture data includes at least an adjustment start finger position and an adjustment end finger position; analyzes the adjustment gesture data to obtain an adjustment indicator, which is for identifying a position change of the adjustment gesture during the adjustment process of the current map display; and scales the map display page and rotates it between a first viewing angle and a second viewing angle according to the adjustment indicator. The first viewing angle is a viewing angle within a parallel plane of the map, and the second viewing angle is a viewing angle within a cut plane of the map, thereby identifying an adjustment indicator capable of identifying a position change of an adjustment gesture based on an adjustment finger position generated when a user adjusts a map display, and simultaneously adjusting the map display page to rotate at three viewing angles, i.e., zooming in / zooming out, rotating within the parallel plane of the map, and rotating within the cut plane of the map, according to the adjustment indicator, thereby enabling a user to realize adjustment of multiple viewing angles with a single operation, eliminating the need for frequent switching operations to adjust map displays of different viewing angles, simplifying the adjustment operation of the map display page, and improving the user experience.
[0064] One embodiment of the present disclosure provides a storage medium having at least one executable instruction stored thereon, the computer-executable instruction, when executed, implementing the method of adjusting a map display of any of the method embodiments described above.
[0065] FIG. 5 is a structural schematic diagram of a terminal provided by an embodiment of the present disclosure, and the specific embodiment of the present disclosure does not limit the specific aspect of the terminal.
[0066] As shown in FIG. 5, the terminal may include a processor 402, a Communications Interface 404, a memory 406, and a communications bus 408.
[0067] Here, the processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .
[0068] The communication interface 404 is configured to communicate with network elements of other devices, such as clients or other servers.
[0069] The processor 402 is configured to execute the program 410, and in particular, can execute the associated steps in the embodiment of the method for adjusting the map display described above.
[0070] In particular, the program 410 may include program code, which includes computer operation instructions.
[0071] The processor 402 may be a central processing unit CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits of the embodiments of the present disclosure. A terminal may include one or more processors, which may be the same type of processor, e.g., one or more CPUs, or different types of processors, e.g., one or more CPUs and one or more ASICs.
[0072] The memory 406 is configured to store a program 410. The memory 406 may include a high-speed RAM memory, or may include a non-volatile memory, such as at least one magnetic disk memory.
[0073] Specifically, the program 410 is configured to cause the processor 402 to perform the following operations: When receiving an adjustment command for a map display page, adjustment gesture data is obtained, and the adjustment command is transmitted by a user operating a touch display on the map display page, and the adjustment gesture data includes at least an adjustment start finger position and an adjustment end finger position; analyzing the adjustment gesture data to obtain an adjustment indicator, the adjustment indicator being for identifying a position change of the adjustment gesture during adjustment of the current map display; The map display page is scaled according to the adjustment indicator and rotated between a first viewing angle and a second viewing angle, the first viewing angle being a viewing angle within a parallel plane of the map and the second viewing angle being a viewing angle within a cut plane of the map.
[0074] Of course, those skilled in the art will appreciate that each module or step of the disclosure above may be implemented by a general-purpose computing device, may be integrated into a single computing device, or may be distributed across a network of multiple computing devices, and may alternatively be implemented by computing device executable program code, and thus may be stored in a storage device and executed by a computing device, and may in some cases execute steps shown or described in a different order than that shown here, or may be separate integrated circuit modules, or may be implemented by implementing multiple modules or steps therein in a single integrated circuit module. Thus, the disclosure is not limited to any particular combination of hardware and software.
[0075] The above is merely a preferred embodiment of the present disclosure, and is not intended to limit the present disclosure, and those skilled in the art may have various modifications and variations in the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present disclosure shall all be included within the protection scope of the present disclosure.
Claims
1. acquiring adjustment gesture data when an adjustment command for a map display page is received, the adjustment command being transmitted by a user operating a touch display on the map display page, the adjustment gesture data including at least an adjustment start finger position and an adjustment end finger position; analyzing the adjustment gesture data to obtain an adjustment indicator, the adjustment indicator being for identifying a position change of the adjustment gesture in the process of adjusting a current map display; and scaling the map display page according to the adjustment indicator and rotating it between a first viewing angle and a second viewing angle, the first viewing angle being a viewing angle in a parallel plane of the map and the second viewing angle being a viewing angle in a cut plane of the map.
13. A method for adjusting a map display comprising:
2. The step of analyzing the adjustment gesture data to obtain an adjustment indicator includes: calculating a first center point and a second center point based on an adjustment start gesture position and an adjustment end gesture position, respectively, the first center point being a midpoint of a line connecting the positions of the two fingers at the start of adjustment, and the second center point being a midpoint of a line connecting the positions of the two fingers at the end of adjustment; calculating a relative displacement between the first and second center points on the touch display; calculating an adjustment ratio based on the adjustment start finger position and the adjustment end finger position, the adjustment ratio being a ratio of a distance between the two fingers at the end of the adjustment to a distance between the two fingers at the start of the adjustment; and identifying the relative displacement and the adjustment ratio as the adjustment index.
2. The method of claim 1, wherein the map display is adjusted.
3. The step of rotating the map display page between a first viewing angle and a second viewing angle according to the adjustment indicator includes: calculating a first displacement and a second displacement corresponding to the adjustment displacement, respectively, the first displacement being a component of the adjustment displacement in a horizontal direction of the touch display, and the second displacement being a component of the adjustment displacement in a vertical direction of the touch display; calculating a first angle and a second angle corresponding to the first displacement and the second displacement, respectively, according to a preset algorithm; and rotating the map display page at the first viewing angle according to the first angle and at the second viewing angle according to the second angle.
3. The method of claim 2, wherein the map display is adjusted.
4. The step of scaling the map display page according to the adjustment index includes: if the scale ratio is greater than 1, enlarging the map display page according to the scale ratio; if the adjustment ratio is less than 1, scaling down the map display page according to the adjustment ratio; 3. The method of claim 2, wherein the map display is adjusted.
5. When receiving an adjustment command for a map display page, after obtaining the adjustment gesture data, the method includes: determining whether the adjustment gesture is a two-finger gesture based on the adjustment gesture data; The step of analyzing the adjustment gesture data to obtain an adjustment indicator includes: If the adjustment gesture is a two-finger gesture, analyzing the adjustment gesture data to obtain an adjustment indicator.
2. The method of claim 1, wherein the map display is adjusted.
6. The method comprises: If the adjustment gesture is a one-finger gesture, calculating a drag displacement according to an adjustment start gesture position and an adjustment end gesture position, where the drag displacement is a corresponding displacement of a finger on the touch display during an adjustment process; and moving the map display page within a parallel plane of the map based on the drag displacement.
6. The method of claim 5, wherein the map display is adjusted.
7. an acquisition module configured to acquire adjustment gesture data when receiving an adjustment command for a map display page, the adjustment command being transmitted by a user operating a touch display on the map display page, the adjustment gesture data including at least an adjustment start finger position and an adjustment end finger position; an analysis module configured to analyze the adjustment gesture data to obtain an adjustment indicator, the adjustment indicator being for identifying a position change of the adjustment gesture during the adjustment of a current map display; a scaling module configured to scale the map display page according to the adjustment metric; a rotation module configured to rotate the map display page between a first viewing angle and a second viewing angle according to the adjustment indicator. A map display adjustment device comprising:
8. The analysis module includes: a first calculation unit configured to calculate a first center point and a second center point according to an adjustment start gesture position and an adjustment end gesture position, respectively, the first center point being a midpoint position of a line connecting the positions of the two fingers at the start of adjustment, and the second center point being a midpoint position of a line connecting the positions of the two fingers at the end of adjustment; a second calculation unit configured to calculate a relative displacement between the first center point and the second center point on the touch display; a third calculation unit configured to calculate an adjustment ratio based on the adjustment start finger position and the adjustment end finger position, the adjustment ratio being a ratio of a distance between the two fingers at the end of adjustment to a distance between the two fingers at the start of adjustment; and an identification unit configured to identify the relative displacement and the adjustment ratio as the adjustment index.
8. The map display adjustment device according to claim 7.
9. at least one executable instruction is stored, the executable instruction causing a processor to perform operations corresponding to a method for adjusting a map display according to any one of claims 1 to 6; storage medium.
10. a processor, a memory, a communication interface, and a communication bus, the processor, the memory, and the communication interface communicating with each other via the communication bus; The memory is configured to store at least one executable instruction, the executable instruction causing the processor to perform operations corresponding to a method for adjusting a map display according to any one of claims 1 to 6. Terminal.
Citation Information
Patent Citations
Mobile terminal and screen displaying method thereof
EP2128748A2
Gestures for touch-sensitive input devices
JP2008508601A
Disambiguation of multi-touch gesture recognition in 3D interactions
JP2015526807A
Display device, display method
JP6399744B2
Apparatus and method for inputting multi-touch
KR1020100083432A
