CN-122018754-A - Map display method, electronic equipment and computer readable storage medium
Abstract
The application provides a map display method, electronic equipment and a computer readable storage medium. When the electronic device displays the map image, the electronic device can display a position icon, the position icon is used for indicating the geographic position of the electronic device, and after the geographic position of the electronic device changes, the display position of the position icon in the display screen also changes. The electronic device may determine whether to refresh the display map image based on whether the display position of the position icon satisfies the first condition. Under the condition that the display position of the position icon meets the first condition, the electronic device refreshes and displays the map image, under the condition that the display position of the position icon does not meet the first condition, the electronic device does not refresh and displays the map image, and the problem that the electronic device refreshes the map image in real time based on the change of the geographic position of the electronic device can be solved, so that the purpose of reducing the power consumption of the electronic device is achieved.
Inventors
- LIU WEIDAN
- HUANG HE
- CHEN TIANEN
- PENG LIANGLONG
- LI LIANG
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251030
Claims (20)
- 1. A map display method applied to an electronic device, the method comprising: Displaying a first map image comprising a first geographical range and a position icon in a first area of a display screen, wherein the position icon is used for indicating a first geographical position where the electronic equipment is currently located, the position icon is located in a first position of the display screen, and the first position is used for indicating the first geographical position; Moving the position icon from the first position to a second position of the display screen, the second position indicating a second geographic position of the electronic device different from the first geographic position, wherein the first map image is continuously displayed during the movement of the position icon from the first position to the second position of the display screen; And in response to the second position meeting a first condition, displaying a second map image comprising a second geographic range different from the first geographic range and the position icon in the first area, wherein the position icon is positioned at a third position of the display screen, the third position is different from the second position, and a third geographic position indicated by the third position is the same as the second geographic position.
- 2. The method of claim 1, wherein the first region comprises a second region, the second location satisfying a first condition, comprising: The second location is located within an edge region of the second region.
- 3. The method of claim 2, wherein the first location is located in the second region and not in an edge region of the second region.
- 4. A method according to any one of claims 1-3, wherein the method further comprises: when the position icon moves from the first position to a second position of the display screen, displaying a first moving track taking the first position as a starting point and the second position as an ending point in the display screen; In response to the second position meeting the first condition, displaying a second movement track taking a fourth position as a starting point and the third position as an ending point in the display screen; And the fourth geographic position indicated by the fourth position is the same as the second geographic position, and the shape of the first moving track is the same as that of the second moving track.
- 5. The method of any of claims 1-4, the second geographic area being determined based on a first scale, the first region comprising a range of pixels, the second geographic location, the first scale being a scale of the second map image.
- 6. A method according to claim 2 or 3, wherein the geographical extent of the map image in the second area is determined based on a first scale, the second area comprising a range of pixels, the second geographical location, the first scale being the scale of the map image in the second area.
- 7. The method of claim 5 or 6, wherein the first scale is determined based on a speed of movement of the electronic device, a first time period, wherein the first time period is a preset time period.
- 8. The method of claim 7, wherein the electronic device comprises a plurality of preset scales including the first scale, the method further comprising: Determining a real-time scale based on the moving speed of the electronic equipment and the first time length; and determining the first scale from the plurality of preset scales based on the real-time scale.
- 9. The method of any of claims 1-8, wherein after displaying the first map image and the location icon comprising the first geographic area in the first area of the display screen, the method further comprises: Saving the first map image; Continuously displaying the first map image in the process of moving the position icon from the first position to the second position of the display screen, wherein the method specifically comprises the following steps: The first map image is continuously displayed based on the saved first map image in the process of moving the position icon from the first position to the second position of the display screen.
- 10. The method according to any one of claims 1-8, further comprising: Displaying a second mark and/or a first navigation route in the first area of the display screen when the first map image and the position icon including the first geographical range are displayed in the first area of the display screen, wherein the second mark is used for indicating a second scale, the first geographical range is determined based on the second scale, the pixel range included in the first area and the first geographical position, and the second scale is the scale of the first map image; saving the second marker and/or the first navigation route; In moving the position icon from the first position to a second position of the display screen, the second marker is displayed based on the saved second marker and/or the first navigation route is displayed based on the saved first navigation route.
- 11. The method according to any one of claims 1-10, further comprising: acquiring a third map image comprising a third geographical range in the process of displaying the first map image in the first area of the display screen, wherein the third geographical range comprises the first geographical range and the second geographical range; The displaying, in response to the second location satisfying a first condition, a second map image including a second geographic range different from the first geographic range and the location icon in the first area, specifically includes: Displaying at least one transition map image based on the third map image in the first region in response to the second location satisfying the first condition; After displaying the at least one transition map image based on the third map image, displaying the second map image and the location icon including the second geographic range different from the first geographic range in the first area.
- 12. The method according to any one of claims 1-11, further comprising: acquiring a map resource for displaying the second map image in the process of displaying the first map image in the first area of the display screen; before displaying the second map image, the method further comprises: The second map image is determined based on the map resource for displaying the second map image.
- 13. The method according to any one of claims 1-12, wherein displaying a first map image and a location icon comprising a first geographical area in a first area of the display screen, in particular comprises: after the electronic device enters a first mode, displaying the first map image and the location icon including the first geographic range in the first area of the display screen.
- 14. The method of claim 13, wherein the first mode comprises any one of a quench display mode, a province point mode, a lock screen mode.
- 15. An electronic device for implementing map display, wherein the electronic device comprises a display screen and a first processor, and the first processor is configured to: displaying a first map image comprising a first geographical range and a position icon in a first area of the display screen, wherein the position icon is used for indicating a first geographical position where the electronic equipment is currently located, the position icon is located in a first position of the display screen, and the first position is used for indicating the first geographical position; Moving the position icon from the first position to a second position of the display screen, the second position indicating a second geographic position of the electronic device different from the first geographic position, wherein the first map image is continuously displayed during the movement of the position icon from the first position to the second position of the display screen; And in response to the second position meeting a first condition, displaying a second map image comprising a second geographic range different from the first geographic range and the position icon in the first area, wherein the position icon is positioned at a third position of the display screen, the third position is different from the second position, and a third geographic position indicated by the third position is the same as the second geographic position.
- 16. The electronic device of claim 15, wherein the first region comprises a second region, the second location satisfying a first condition, comprising: The second location is located within an edge region of the second region.
- 17. The electronic device of claim 16, wherein the first location is located in the second region and not in an edge region of the second region.
- 18. The electronic device of any one of claims 15-17, wherein the first processor is further configured to: when the position icon moves from the first position to a second position of the display screen, displaying a first moving track taking the first position as a starting point and the second position as an ending point in the display screen; In response to the second position meeting the first condition, displaying a second movement track taking a fourth position as a starting point and the third position as an ending point in the display screen; And the fourth geographic position indicated by the fourth position is the same as the second geographic position, and the shape of the first moving track is the same as that of the second moving track.
- 19. The electronic device of any of claims 15-18, wherein the second geographic range is determined based on a first scale, the first region comprising a range of pixels, the second geographic location, the first scale being a scale of the second map image.
- 20. The electronic device of claim 14 or 15, wherein the geographic extent of the map image in the second area is determined based on a first scale, the second area comprising a range of pixels, the second geographic location, the first scale being a scale of the map image in the second area.
Description
Map display method, electronic equipment and computer readable storage medium Technical Field The present application relates to the field of terminal technologies, and in particular, to a map display method, an electronic device, and a computer readable storage medium. Background With the rapid development of terminal technology, electronic devices have become an indispensable item in people's life. The present urban road construction is also more and more complex, and the map application running on the electronic device can provide navigation services for users, but the processor (such as the application processor (application processor, AP)) and the map application of the electronic device are required to be always in a running state to acquire and process data related to the navigation services, which undoubtedly increases the power consumption of the electronic device. How to reduce the power consumption of the electronic device while realizing the navigation map display is still to be studied. Disclosure of Invention The application provides a map display method, electronic equipment and a computer readable storage medium. When the electronic device displays the map image, the electronic device can display a position icon, the position icon is used for indicating the geographic position of the electronic device, and after the geographic position of the electronic device changes, the display position of the position icon in the display screen also changes. The electronic device may determine whether to refresh the display map image based on whether the display position of the position icon satisfies the first condition. Under the condition that the display position of the position icon meets the first condition, the electronic device refreshes and displays the map image, under the condition that the display position of the position icon does not meet the first condition, the electronic device does not refresh and displays the map image, and the problem that the electronic device refreshes the map image in real time based on the change of the geographic position of the electronic device can be solved, so that the purpose of reducing the power consumption of the electronic device is achieved. In a first aspect, the present application provides a map display method. The method is applied to the electronic equipment, and comprises the steps of displaying a first map image and a position icon which comprise a first geographic range in a first area of a display screen, wherein the position icon is used for indicating a first geographic position where the electronic equipment is located currently, the position icon is located at the first position of the display screen, the first position is used for indicating the first geographic position, moving the position icon from the first position to a second position of the display screen, the second geographic position of the electronic equipment indicated by the second position is different from the first geographic position, the first map image is continuously displayed in the process of moving the position icon from the first position to the second position of the display screen, the second map image and the position icon which comprise a second geographic range different from the first geographic range are displayed in the first area in response to the second position meeting a first condition, the position icon is located at a third position of the display screen, the third position is different from the second position, and the third geographic position indicated by the third position is identical to the second geographic position. Wherein the first geographical range and the second geographical range refer to a geographical area defined by a tangible or intangible boundary on the surface of the earth. When the map image is displayed by the electronic equipment, the electronic equipment can display the position icon which is used for indicating the geographic position of the electronic equipment, and after the geographic position of the electronic equipment is changed, the display position of the position icon in the display screen is also changed. The electronic device may determine whether to refresh the display map image based on whether the display position of the position icon satisfies the first condition. Under the condition that the display position of the position icon meets the first condition, the electronic device refreshes and displays the map image, under the condition that the display position of the position icon does not meet the first condition, the electronic device does not refresh and displays the map image, and the problem that the electronic device refreshes the map image in real time based on the change of the geographic position of the electronic device can be solved, so that the purpose of reducing the power consumption of the electronic device is achieved. The method can be applied to a main processor or a secondary processor. Illus