Map display method, electronic equipment and computer readable storage medium

By determining whether to refresh the map image based on the display position of the location icon in the map display method of electronic devices, and combining scale adjustment and pre-acquisition of map resources, the high power consumption problem in navigation map display is solved, thereby reducing power consumption and extending battery life.

CN122018754APending Publication Date: 2026-05-12HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-10-30
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Existing electronic devices consume a lot of power when displaying navigation maps, resulting in reduced device performance and battery life.

Method used

By displaying location icons on the screen, the decision to refresh the map image is based on whether the display location of the location icon meets the conditions, reducing unnecessary image refreshes. This is combined with scale adjustment and pre-acquiring map resources to reduce rendering requirements.

Benefits of technology

It effectively reduces the power consumption of electronic devices, extends device battery life, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122018754A_ABST
    Figure CN122018754A_ABST
Patent Text Reader

Abstract

The invention provides a map display method, electronic equipment and a computer readable storage medium. When the electronic equipment displays the map image, the electronic equipment can display the position icon, the position icon is used for indicating the geographic position of the electronic equipment, and after the geographic position of the electronic equipment changes, the display position of the position icon in the display screen also changes. The electronic device may determine whether to refresh the displayed map image based on whether the display position of the position icon satisfies a first condition. The electronic equipment refreshes and displays the map image under the condition that the display position of the position icon meets the first condition, and the electronic equipment does not refresh and displays the map image under the condition that the display position of the position icon does not meet the first condition. 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, and the purpose of reducing the power consumption of the electronic device is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a map display method, electronic device, and computer-readable storage medium. Background Technology

[0002] With the rapid development of terminal technology, electronic devices have become indispensable in people's lives. Modern urban road construction is becoming increasingly complex. Map applications running on electronic devices can provide navigation services, but this requires both the device's processor (e.g., application processor, AP) and the map application to be constantly running to acquire and process data related to navigation services. This undoubtedly increases the power consumption of electronic devices. How to reduce the power consumption of electronic devices while displaying navigation maps remains a subject of further research. Summary of the Invention

[0003] This application provides a map display method, an electronic device, and a computer-readable storage medium. When the electronic device displays a map image, it can display location icons indicating the device's geographical location. As the device's geographical location changes, the location icons' display position on the screen also changes. The electronic device can determine whether to refresh the map image based on whether the location icon's display position meets the first condition. If the location icon's display position meets the first condition, the electronic device refreshes the map image; if the location icon's display position does not meet the first condition, the electronic device does not refresh the map image. This solves the problem of the electronic device needing to refresh the map image in real time based on changes in the device's geographical location, thereby reducing the electronic device's power consumption.

[0004] In a first aspect, this application provides a map display method. The method is applied to an electronic device and includes: displaying a first map image including a first geographical area and a location icon in a first area of ​​a display screen, the location icon indicating the current first geographical location of the electronic device, the location icon being located at a first position on the display screen, the first position indicating the first geographical location; moving the location icon from the first position to a second position on the display screen, the second position indicating a second geographical location of the electronic device different from the first geographical location, wherein the first map image is continuously displayed during the movement of the location icon from the first position to the second position on the display screen; and, in response to the second position satisfying a first condition, displaying a second map image including a second geographical area different from the first geographical area and a location icon in the first area, the location icon being located at a third position on the display screen, the third position being different from the second position, and the third position indicating a third geographical location the same as the second geographical location.

[0005] The first and second geographical extents refer to the geographical areas defined by a tangible or intangible boundary on the Earth's surface.

[0006] This method allows an electronic device to display location icons when showing a map image. These icons indicate the device's geographical location, and their position on the screen changes as the device's location changes. The device can determine whether to refresh the map image based on whether the location icon's position meets a first condition. If the location icon's position meets the first condition, the device refreshes the map image; otherwise, it does not. This solves the problem of the device needing to refresh the map image in real-time based on changes in the device's location, thus reducing power consumption.

[0007] This method can be applied to both main processors and secondary processors.

[0008] For example, the first region could be Figure 7A The first map image can be the display area where the navigation map 5101 is shown. Figure 7A The navigation map 5101 shown can have the first location as... Figure 7A The location indicated is the display position of location identifier 5102. The second location could be... Figure 7C The location indicated is where location marker 5102 is displayed. The second map image can be... Figure 7D The navigation map shown is 6101. The third location could be... Figure 7D The location indicated is the display location of the location identifier 6102.

[0009] In conjunction with the first aspect, in one possible implementation, the first region includes a second region, and the second location satisfies the first condition, including: the second location is located within the edge region of the second region.

[0010] Optionally, the center of the first region and the center of the second region overlap, and the second region can be a rectangle or a circle.

[0011] Optionally, the size of the second region can be larger than the size of the first region, or the size of the second region can be smaller than the size of the first region.

[0012] Optionally, the edge region of the second region can refer to the edge line of the second region, or it can refer to a pixel region with a certain width (e.g., 1 mm) including the edge line of the second region.

[0013] Optionally, the electronic device can obtain the position coordinates of the second location and the position coordinates of the edge region of the second region. If the position coordinates of the second location and the position coordinates of the edge region of the second region coincide, the electronic device can determine that the second location is located within the edge region of the second region.

[0014] For example, the second region could be Figures 7A-7D The first pixel range shown (or rather) Figure 7A The area enclosed by the dashed line shown.

[0015] In conjunction with the first aspect, in one possible implementation, the first position is located in the second region but not within the edge region of the second region. The third position is located in the second region but not within the edge region of the second region.

[0016] In conjunction with the first aspect, in one possible implementation, the method further includes: when the location icon moves from a first location to a second location on the display screen, displaying a first movement trajectory on the display screen with the first location as the starting point and the second location as the ending point; in response to the second location satisfying a first condition, displaying a second movement trajectory on the display screen with a fourth location as the starting point and a third location as the ending point; wherein the fourth location indicates the same fourth geographical location as the second geographical location, and the shape of the first movement trajectory is the same as the shape of the second movement trajectory.

[0017] Optionally, in response to the second position satisfying the first condition, the electronic device stops displaying the first movement trajectory.

[0018] For example, the first movement trajectory could be Figure 7C The shown movement trajectory is 5190. The second movement trajectory can be... Figure 7D The movement trajectory shown is 5190.

[0019] In conjunction with the first aspect, in one possible implementation, the second geographic range is determined based on a first scale, the pixel range included in the first region, and the second geographic location, wherein the first scale is the scale of the second map image.

[0020] In conjunction with the first aspect, in one possible implementation, the geographical extent of the map image in the second region is determined based on a first scale, the pixel range included in the second region, and a second geographical location, wherein the first scale is the scale of the map image in the second region.

[0021] The first scale can be a preset scale, or it can be determined based on the moving speed of the electronic device and a first duration, wherein the first duration is a preset duration. The first duration can be a preset duration for the electronic device to move from the center of the second region to the edge region of the second region.

[0022] By implementing this method, if the moving speed of the electronic device increases, the scale of the electronic device can be increased; if the moving speed of the electronic device decreases, the scale of the electronic device can be decreased. This ensures that the electronic device can refresh and display the map image at fixed intervals, avoiding the problem of the electronic device refreshing and displaying the map image at too long or too short intervals.

[0023] In conjunction with the first aspect, in one possible implementation, the electronic device includes multiple preset scales, the multiple preset scales including a first scale; the method further includes: a first processor determining a real-time scale based on the moving speed of the electronic device and a first duration; the first processor determining the first scale from the multiple preset scales based on the real-time scale.

[0024] To avoid the situation where the auxiliary processor constantly adjusts the scale of the displayed map image due to the real-time changes in the speed of the electronic device, the electronic device can acquire multiple preset scales and determine one preset scale as the target scale based on the actual scale, and display the map image based on the target scale.

[0025] Optionally, the electronic device may switch the scale after the first condition is met at the second position. Alternatively, the electronic device may switch the scale before the first condition is met at the second position.

[0026] In conjunction with the first aspect, in one possible implementation, after displaying a first map image including a first geographical area and a location icon in a first area of ​​the display screen, the method further includes: saving the first map image; and continuously displaying the first map image while moving the location icon from the first location to a second location on the display screen, specifically including: continuously displaying the first map image based on the saved first map image while moving the location icon from the first location to the second location on the display screen.

[0027] By implementing this method, before the first condition is met at the second position, the electronic device can save the first map image without having to refresh the displayed map image. The first map image is then continuously displayed based on the saved first map image, eliminating the need for real-time rendering of the first map image based on its image resources, thus reducing the power consumption of the electronic device.

[0028] In conjunction with the first aspect, in one possible implementation, the method further includes: when a first map image including a first geographical range and a location icon are displayed in a first area of ​​the display screen, a second marker and / or a first navigation route are displayed in the first area of ​​the display screen, the second marker being used to indicate a second scale, the first geographical range being determined based on the second scale, the pixel range included in the first area, and the first geographical location, the second scale being the scale of the first map image; a first processor storing the second marker and / or the first navigation route; during the process of moving the location icon from the first location to a second location on the display screen, the second marker is displayed based on the stored second marker, and / or the first navigation route is displayed based on the stored first navigation route.

[0029] By implementing this method, before the second location meets the first condition, the electronic device can save the second marker and / or the first navigation route because there is no need to refresh the displayed map image, the display scale, or the navigation route. The second marker and / or the first navigation route can be continuously displayed based on the saved second marker and / or the first navigation route, without the need to render the second marker and / or the first navigation route in real time, which can reduce the power consumption of the electronic device.

[0030] In conjunction with the first aspect, in one possible implementation, the method further includes: during the display of a first map image in a first area of ​​the display screen, acquiring a third map image including a third geographical range, the third geographical range including the first geographical range and a second geographical range; in response to a second location satisfying a first condition, displaying a second map image and a location icon in the first area including a second geographical range different from the first geographical range, specifically including: in response to a second location satisfying the first condition, displaying at least one transition map image in the first area based on the third map image; after displaying at least one transition map image based on the third map image, displaying a second map image and a location icon in the first area including a second geographical range different from the first geographical range.

[0031] Optionally, the third map image can be determined based on the direction of movement of the electronic device and the size of the first area.

[0032] By implementing this method, the electronic device can display at least one transitional map image before switching to the second map image, thus avoiding abrupt changes in the content of the map image displayed by the electronic device and improving the user's visual experience.

[0033] For example, regarding how electronic devices determine third-party map images, one can refer to... Figure 12 The examples are described below.

[0034] In conjunction with the first aspect, in one possible implementation, the method further includes: during the process of displaying a first map image in a first area of ​​the display screen, acquiring map resources for displaying a second map image; before displaying the second map image, the method further includes: determining a second map image based on the map resources for displaying the second map image.

[0035] Optionally, the map resources for the second map image can be determined based on the movement direction of the electronic device.

[0036] By implementing this method, before refreshing and displaying the map image, the electronic device can first obtain the map resources of the second map image to be displayed and store them in the running memory of the electronic device. When the electronic device needs to display the second map image, it can directly obtain the map resources of the second map image from the running memory of the electronic device, without having to obtain the map resources of the second map image from the file system through I / O operations. This can speed up the speed at which the electronic device obtains the map resources of the second map image, and thus speed up the speed at which the electronic device displays the second map image.

[0037] For example, regarding how an electronic device determines the map resources of a second map image, one can refer to... Figure 11 The examples are described below.

[0038] In conjunction with the first aspect, in one possible implementation, displaying a first map image and location icon including a first geographical range in a first area of ​​the display screen specifically includes: after the electronic device enters a first mode, displaying a first map image and location icon including a first geographical range in a first area of ​​the display screen.

[0039] In one possible implementation, the first mode includes any of the following: always-on display mode, power-saving mode, and lock screen mode.

[0040] Secondly, this application provides an electronic device for implementing map display. The electronic device includes a display screen and a first processor, wherein the first processor is configured to: display a first map image including a first geographical range and a location icon in a first area of ​​the display screen, the location icon indicating the current first geographical location of the electronic device, the location icon being located at a first position on the display screen, the first position indicating the first geographical location; move the location icon from the first position to a second position on the display screen, the second position indicating a second geographical location of the electronic device different from the first geographical location, wherein the first map image is continuously displayed during the process of moving the location icon from the first position to the second position on the display screen; and, in response to the second position satisfying a first condition, display a second map image including a second geographical range different from the first geographical range and a location icon in the first area, the location icon being located at a third position on the display screen, the third position being different from the second position, and the third position indicating a third geographical location the same as the second geographical location.

[0041] Optionally, the first processor can be either the main processor or a secondary processor.

[0042] In conjunction with the second aspect, in one possible implementation, the first region includes the second region, and the second location satisfies the first condition, including: the second location is located within the edge region of the second region.

[0043] In conjunction with the second aspect, in one possible implementation, the first position is located in the second region but not in the edge region of the second region.

[0044] In conjunction with the second aspect, in one possible implementation, the method further includes: when the first processor moves the location icon from the first location to the second location on the display screen, the first processor controls the display screen to display a first movement trajectory starting from the first location and ending at the second location; in response to the second location satisfying the first condition, the first processor controls the display screen to display a second movement trajectory starting from the fourth location and ending at the third location; wherein the fourth location indicates the same fourth geographical location as the second geographical location, and the shape of the first movement trajectory is the same as the shape of the second movement trajectory.

[0045] In conjunction with the second aspect, in one possible implementation, the second geographic range is determined based on a first scale, the pixel range included in the first region, and the second geographic location, wherein the first scale is the scale of the second map image.

[0046] In conjunction with the second aspect, in one possible implementation, the geographical extent of the map image in the second region is determined based on a first scale, the pixel range included in the second region, and a second geographical location, wherein the first scale is the scale of the map image in the second region.

[0047] In conjunction with the second aspect, in one possible implementation, the first scale is determined based on the moving speed of the electronic device and a first duration, wherein the first duration is a preset duration.

[0048] In conjunction with the second aspect, in one possible implementation, the electronic device includes multiple preset scales, including a first scale; the first processor is further configured to: determine a real-time scale based on the moving speed of the electronic device and a first duration; and determine the first scale from the multiple preset scales based on the real-time scale.

[0049] In conjunction with the second aspect, in one possible implementation, the first processor is further configured to: save the first map image after the display screen shows a first map image including a first geographical range and a location icon in a first area; specifically, the first processor is configured to: continuously display the first map image based on the saved first map image during the process of moving the location icon from a first location to a second location on the display screen.

[0050] In conjunction with the second aspect, in one possible implementation, the first processor is further configured to: when a first map image including a first geographical range and a location icon are displayed in a first area of ​​the display screen, display a second marker and / or a first navigation route in the first area of ​​the display screen, the second marker being used to indicate a second scale, the first geographical range being determined based on the second scale, the pixel range included in the first area, and the first geographical location, the second scale being the scale of the first map image; save the second marker and / or the first navigation route; during the process of moving the location icon from the first location to a second location on the display screen, display the second marker based on the saved second marker, and / or, display the first navigation route based on the saved first navigation route.

[0051] In conjunction with the second aspect, in one possible implementation, the first processor is specifically configured to: display a first map image and location icons including a first geographical area in a first area of ​​the display screen after the electronic device enters a first mode.

[0052] In conjunction with the second aspect, in one possible implementation, the electronic device further includes a second processor, which is configured to: display a first navigation interface on a screen before the electronic device enters the first mode, the first navigation interface including location icons and a map image, wherein the position of the location icons in the first navigation interface remains unchanged on the screen, and the content of the map image in the first navigation interface changes as the position of the electronic device changes; and enter a sleep state or a power-off state after the electronic device enters the first mode.

[0053] For example, the first processor can be a secondary processor, and the second processor can be a primary processor.

[0054] In conjunction with the second aspect, in one possible implementation, the second processor is further configured to: store the first map resource in the first memory space before the second processor enters a sleep state or a power-off state; send the storage address of the first map resource in the first memory space to the first processor; the first processor is further configured to: after the second processor enters a sleep state, obtain map resources for displaying the first map image based on the first geographical location and the storage address of the first map resource in the first memory space; and determine the first map image based on the map resources for displaying the first map image.

[0055] By implementing this method, after the second processor enters a sleep state or a power-off state, the first processor can obtain the map resources of the map image based on the storage address of the first map resources sent by the second processor in the first memory space, thereby enabling the first processor to display the map image.

[0056] For example, you can refer to Figure 4B and Figure 6B The examples are described below.

[0057] In conjunction with the second aspect, in one possible implementation, the first processor is further configured to: record the driving route and / or marked position of the electronic device in the first mode after the electronic device enters the first mode; the second processor is further configured to: obtain the driving route and / or marked position from the first processor after the first processor wakes up the second processor.

[0058] By implementing this method, after waking up the second processor, the second processor can continue to display the driving route and / or marker positions based on the driving route and / or marker positions obtained from the first processor, making it convenient for users to view the complete driving trajectory.

[0059] For example, you can refer to Figure 6C The examples are described below.

[0060] In conjunction with the second aspect, in one possible implementation, the power consumption of the first processor is lower than that of the second processor.

[0061] In conjunction with the second aspect, in one possible implementation, the first mode includes any of the following: always-on display mode, power-saving mode, and lock screen mode.

[0062] In conjunction with the second aspect, in one possible implementation, the first processor is further configured to: acquire a third map image including a third geographical range during the display of a first map image on the screen, the third geographical range including the first geographical range and the second geographical range; specifically, the first processor is configured to: display at least one transitional map image in a first region based on the third map image in response to a second location satisfying a first condition; and after displaying at least one transitional map image based on the third map image, display a second map image and a location icon in the first region including a second geographical range different from the first geographical range.

[0063] In conjunction with the second aspect, in one possible implementation, the first processor is further configured to: acquire map resources for displaying a second map image during the process of displaying a first map image in a first area of ​​the display screen; and determine a second map image based on the map resources for displaying the second map image.

[0064] In conjunction with the second aspect, in one possible implementation, the first processor is an MCU.

[0065] In conjunction with the second aspect, in one possible implementation, the second processor is described as an AP.

[0066] Thirdly, this application provides an electronic device comprising: one or more processors and one or more memories, wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store a computer program, such that when the one or more processors execute the computer program, the electronic device performs the method of the first aspect.

[0067] Fourthly, this application provides a computer-readable storage medium including instructions that, when executed by a processor, implement the map display method provided in any possible implementation of the first aspect above.

[0068] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the map display method provided in any possible implementation of the first aspect above.

[0069] Sixthly, this application provides a chip system including one or more processors, the one or more processors including a first processor, the first processor being configured to execute code instructions to implement the map display method provided in any possible implementation of the first aspect above.

[0070] For a description of the beneficial effects of the second to sixth aspects, please refer to the description of the beneficial effects in the first aspect; this application will not repeat it here. Attached Figure Description

[0071] Figure 1 A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application; Figure 2 A schematic diagram of the software structure of an electronic device 100 provided in an embodiment of this application; Figures 3A-3B A UI diagram is shown of a set of electronic devices 100 displaying map images on a screen via a main processor; Figure 4A A schematic flowchart of a method for an electronic device 100 to display a map image on a display screen via a main processor is shown. Figure 4B This diagram illustrates the interaction between the software and hardware modules of an electronic device 100 that displays a map image on a screen via a main processor. Figures 5A-5G A UI diagram showing a set of electronic devices 100 displaying map images on a screen via a secondary processor is shown; Figure 6A A schematic flowchart of a method for an electronic device 100 to display a map image on a display screen via a secondary processor is shown. Figure 6B This diagram illustrates the interaction between the software and hardware modules of an electronic device 100 that displays a navigation interface via a secondary processor. Figure 6C A schematic diagram of the interaction of a software module in which a secondary processor sends the historical location of an electronic device 100 to the main processor is shown. Figures 7A-7D A UI diagram showing a set of auxiliary processors determines whether to refresh the map image based on whether the position of the electronic device 100 is within a stable outer perimeter; Figure 8A This diagram illustrates a method for a secondary processor to determine whether to refresh a map image based on whether the position of the electronic device 100 is within a stable outer region. Figure 8B This diagram illustrates a method for a secondary processor to determine whether to refresh a map image based on whether the location identifier of an electronic device 100 is located within the edge region of a second region. Figures 9A-9C A schematic diagram showing a set of auxiliary processors adjusting the scale of a map image is shown; Figure 10 A flowchart illustrating a method for an auxiliary processor to adjust the scale of a map image displayed by the auxiliary processor based on the speed of the electronic device 100 is shown. Figure 11 This diagram illustrates multiple tile data acquired by the main processor and the tile data traversed by the navigation route. Figure 12A schematic diagram is shown of a third map image acquired by a coprocessor and at least one transition map image; Figure 13 A flowchart illustrating a map display method is shown. Detailed Implementation

[0072] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0073] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0074] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information (C) and a form acceptable to the user. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of a wearable device.

[0075] First, the technical terms used in this application will be explained.

[0076] 1. Main processor and secondary processor.

[0077] The auxiliary processor can be a low-power processor. Generally, the main processor has stronger data processing capabilities than the auxiliary processor, while the auxiliary processor consumes less power than the main processor. The main processor and auxiliary processor can handle different tasks, and they can work in a time-sharing manner to reduce the power consumption of the electronic device. When the auxiliary processor is handling tasks, the electronic device 100 can control the main processor to enter a standby state. When the main processor is handling tasks, the electronic device 100 can control the auxiliary processor to enter a standby state.

[0078] For example, the main processor can be an application processor (AP), a central processing unit (CPU), or a system-on-a-chip (SoC). The main processor is used to run a rich operating system (Rich OS), such as HarmonyOS, Android™, or iOS mobile operating systems.

[0079] The auxiliary processor can be a microcontroller unit (MCU) or a smart sensor hub, etc. It is used to run a lightweight real-time operating system (RTOS), such as Lite OS or Free RTOS.

[0080] In some embodiments, the main processor and the secondary processor may reside in a single integrated circuit. In other embodiments, the main processor and the secondary processor may be separate and reside in different integrated circuits.

[0081] Optionally, an electronic device may include only a main processor, or only a secondary processor, or both a main processor and a secondary processor.

[0082] 2. Always-on Display (AOD) Always-on display (AOD) refers to "controlling the screen to light up only a portion of it without illuminating the entire screen of an electronic device," or "controlling the screen to be brightly lit in a portion while keeping the rest dimly lit," thereby displaying important information on the screen with low power consumption. The interface displayed on the screen in this state can be called an AOD interface. For example, an AOD interface continuously displays the time, incoming calls, messages, battery information, push notifications, etc., allowing users to intuitively see the information they need at any time. In this embodiment, the state of the electronic device 100 in AOD mode can be referred to as AOD mode or AOD state.

[0083] AOD (Always-On Display) can also be called always-on display or screen-off display. This application describes an example of always-on display.

[0084] In this embodiment, when the electronic device is in screen-off display mode, the main processor of the electronic device is in sleep mode, while the auxiliary processor is in non-sleep mode. In screen-off display mode, the interface displayed on the screen of the electronic device is handled by the auxiliary processor.

[0085] In this embodiment of the application, the functional operating system running on the main processor is equipped with a map application. The map application can download map resources from the map application's server and display map images based on the map resources.

[0086] Due to the low power consumption and small storage space of the coprocessor, it does not support displaying map images. The main reasons are as follows: 1. Lightweight systems running on secondary processors typically do not have various map applications installed. Secondary processors cannot obtain map resources through map applications, nor can they pre-store the map resources required to display map images. Since secondary processors cannot obtain map resources, they cannot display map images based on map resources.

[0087] 2. The coprocessor does not include a map engine, and it is also unable to render map resources, thus failing to generate map images.

[0088] To address the issue that the secondary processor does not support displaying map images, this application provides a map display method. In this method, the secondary processor is equipped with a map engine. The map engine is used to acquire map resources and the location of the electronic device 100. The map engine is also used to generate a map image based on the map resources and the location of the electronic device 100, thus enabling the secondary processor to also display map images.

[0089] For example, (1) when not in the first mode (e.g., AOD mode), the main processor runs a map application. The map application can download map resources from the map application's server and can also obtain GPS data from the GPS chip, thereby obtaining the location of the electronic device 100 based on the GPS data. The location of the electronic device 100 is different at different times. (2) when not in the first mode, the main processor generates a map image based on the location of the electronic device 100 and the map resources, and controls the display screen to display the map image. (3) at a specific time (e.g., when the electronic device 100 detects that the first condition for entering the first mode is met), the auxiliary processor can obtain map resources from the main processor. (4) when entering the first mode, the main processor enters a sleep state, and the auxiliary processor enters a running state. The auxiliary processor can obtain GPS data from the GPS chip and obtain the location of the electronic device 100 based on the GPS data. (5) when entering the first mode, the auxiliary processor can also generate a map image based on the map resources and the location of the electronic device 100 through the map engine. After generating the map image, the auxiliary processor can display the map image in the first mode interface.

[0090] By implementing this method, in the first mode, the electronic device 100 can process map image data through a secondary processor, generate map images, and display map images. Compared to the main processor, this significantly reduces the power consumption required for the electronic device 100 to display map images, effectively extending the battery life of the electronic device 100 and improving the display effect of the electronic device 100 in the first mode.

[0091] For example, the first mode can be an always-on display mode, and the interface of the first mode can be an AOD interface. It is not limited to an always-on display mode; the first mode can also be other display modes, such as a lock screen mode.

[0092] In some embodiments, when the auxiliary processor displays a map image on the screen, it can set a stable region, which can be determined based on the location of the electronic device 100. For example, the stable region may include a region with a preset geographical area centered on the location of the electronic device 100. When the electronic device 100 is within the stable region, the auxiliary processor may not refresh the map image. When the electronic device 100 moves outside the stable region, the auxiliary processor can refresh the map image and redetermine the stable region based on the location of the electronic device 100. By implementing this method, the electronic device 100 can operate based on a stable region without frequently refreshing the map image, thereby reducing the power consumption of the electronic device 100.

[0093] Optionally, the auxiliary processor can also display a location icon on the display screen. The location icon indicates the geographical location of the electronic device 100, and its position on the display screen changes as the geographical location of the electronic device 100 changes. The auxiliary processor can determine whether the location icon is located within the edge area of ​​the second region. If the auxiliary processor determines that the location icon is within the edge area of ​​the second region, the auxiliary processor can refresh the map image. If the auxiliary processor determines that the location icon is within the second region but not within the edge area of ​​the second region, the auxiliary processor may not refresh the map image. The area on the display screen where the map image is displayed is the first region, which includes the second region. The size of the second region can be the same as the size of the first region, or the size of the second region can be smaller than the size of the first region.

[0094] In some embodiments, when the auxiliary processor displays a map image on the display screen, the auxiliary processor can detect the speed of the electronic device 100 and dynamically adjust the scale of the map image displayed in the auxiliary processor according to the speed of the electronic device 100. For example, when the speed of the electronic device 100 increases, the auxiliary processor can increase the scaling ratio of the map image displayed in the auxiliary processor to expand the geographical area in the map image displayed in the auxiliary processor, avoiding the problem of the electronic device 100 exceeding the geographical area that the map image can display due to excessive speed. Conversely, when the speed of the electronic device 100 decreases, the auxiliary processor can decrease the scaling ratio of the map image displayed in the auxiliary processor to shrink the geographical area in the map image displayed in the auxiliary processor, in order to display more image details in the map image.

[0095] In some embodiments, when the auxiliary processor displays a map image on the screen, the auxiliary processor can pre-acquire a certain number of map resources in the direction of travel of the electronic device 100 and store these map resources in the auxiliary processor's RAM. When the conditions for refreshing the map image are detected, the auxiliary processor can directly obtain the map resources for refreshing the map image from its RAM, without needing to obtain them from the file system in real time, thus speeding up the map image refresh process.

[0096] See below. Figure 1 The structure of the electronic device to which the method provided in the embodiments of this application is applicable will be described.

[0097] like Figure 1As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a display screen 194, and a SIM card interface 195, etc.

[0098] The sensor module 180 may include a gyroscope sensor 180B, a magnetic sensor 180D, an accelerometer sensor 180E, a proximity sensor 180F, a touch sensor 180K, etc. The sensor module 180 may also include a temperature sensor, a pressure sensor, a proximity sensor, a fingerprint sensor, an ambient light sensor, a barometric pressure sensor, a bone conduction sensor, etc.

[0099] Understandable, Figure 1 The electronic device 100 shown is merely an example and does not constitute a limitation on the electronic device. The electronic device may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0100] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0101] The processor 110 may also include a memory for storing instructions and data.

[0102] The execution of the display method provided in this application embodiment can be controlled by the processor 110 or by calling other components. For example, it can call the processing program of this application embodiment stored in the internal memory 121, or call the processing program of this application embodiment stored in a third-party device through the external memory interface 120 to control the wireless communication module 160 to perform data communication with other devices, thereby improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 may include different devices. For example, when integrating a CPU and a GPU, the CPU and GPU can cooperate to execute the display method provided in this application embodiment. For example, some algorithms in the display method can be executed by the CPU, and other algorithms can be executed by the GPU to achieve faster processing efficiency.

[0103] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. Display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, display screen 194 can display various interfaces from the embodiments of this application.

[0104] In this embodiment of the application, the display screen 194 can be a single flexible display screen, or it can be a splicing display screen composed of two rigid screens and a flexible screen located between the two rigid screens.

[0105] The electronic device 100 may also include a camera (a front-facing camera or a rear-facing camera, or a camera that can function as both a front-facing and a rear-facing camera), which is used to capture still images or videos.

[0106] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121.

[0107] The internal memory 121 may also store one or more computer programs corresponding to the algorithm of this application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by one or more processors 110. The one or more computer programs include instructions that can be used to perform the various steps in the following embodiments.

[0108] Of course, the algorithm code of the embodiment of this application can also be stored in external memory. In this case, the processor 110 can run the algorithm code of the embodiment of this application stored in external memory through the external memory interface 120.

[0109] A touch sensor, also known as a "touch panel". The touch sensor can be set on the display screen 194, and the touch sensor and the display screen 194 together form a touch display screen, also known as a "touch screen".

[0110] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0111] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.

[0112] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.

[0113] In addition, the electronic device 100 can implement audio functions such as music playback and recording through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, and an application processor.

[0114] In some embodiments, the electronic device 100 may further include buttons, motors, indicators, etc. The electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 100. The electronic device 100 can utilize a motor to generate vibration alerts (such as vibration alerts for incoming calls). The indicators in the electronic device 100 may be indicator lights, which can be used to indicate charging status, battery level changes, messages, missed calls, notifications, etc.

[0115] The SIM card interface 195 in the electronic device 100 is used to connect a SIM card. The SIM card can be inserted into or removed from the electronic device 100 to achieve contact and separation with the electronic device 100.

[0116] It should be understood that, in practical applications, electronic device 100 may include more than Figure 1 The number of more or fewer components shown is not limited in the embodiments of this application. The illustrated electronic device 100 is merely an example, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0117] Please refer to Figure 2 , Figure 2 An exemplary software structure block diagram of an electronic device 100 is shown.

[0118] The electronic device 100 provided in this application embodiment can run an operating system (OS). This operating system can be various operating systems used in industry, such as operating systems developed based on OpenHarmony, like HarmonyOS; or other operating systems such as Android™, iOS mobile operating systems; it can also be various open-source operating systems or their derivatives, such as Linux OS, Lite OS, and other embedded operating systems; or it can be a future new operating system, such as an AI operating system based on artificial intelligence. An operating system is a set of interconnected system software programs that manage and control the operation of electronic devices, utilize and run hardware and software resources, and provide public services to organize user interaction. In electronic devices, the operating system connects downwards to the physical devices at the hardware layer and provides a runtime environment for application software upwards.

[0119] An operating system typically includes a kernel layer, a middleware layer, and an application layer. The application layer includes applications, which can include system applications and third-party applications. The middleware layer includes a suite of software providing various services to application developers, or frameworks providing services such as databases, multimedia, and graphics, or capabilities such as distributed scheduling and system scaling. For example, the middleware layer may include a framework layer and / or a system service layer. The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The system service layer includes the system's core capabilities, providing services to applications through the framework layer. The kernel layer is the layer between hardware and software. The kernel layer may include hardware drivers and the operating system kernel. In addition to providing hardware drivers, the kernel layer also supports functions such as memory management and system process management.

[0120] The electronic devices we use in our daily lives come in various types and forms, and are applied in a wide range of scenarios. Therefore, based on the different forms and functions of electronic devices, different application scenarios, and different user needs, the operating systems used in these devices may also differ. The basic functions implemented by the electronic device provided in this application can be achieved through a general-purpose operating system or a dedicated operating system.

[0121] See Figure 2 The following example illustrates the implementation of the embodiments of this application under specific operating systems, using the AP of electronic device 100 running Harmony OS and Sensorhub running Lite OS as examples. Those skilled in the art can deduce the implementation of the embodiments of this application under other specific operating systems, such as Android™.

[0122] like Figure 2 As shown, the operating system running on the main processor may include map applications, trajectory service modules, power management modules, AOD SA, etc.

[0123] The AOD SA (Autonomous Optimization Controller) is primarily used to transfer data from the main processor to the auxiliary processor. For example, the AOD SA can receive the storage address of map resources in the first memory space from the main processor, and then send that address to the auxiliary processor. The AOD SA can also obtain the storage address of the first navigation route data in the first memory space and send that address to the auxiliary processor. Furthermore, the AOD SA can obtain the resolution of the electronic device 100's display screen and send that resolution to the auxiliary processor.

[0124] When not in the first mode, the main processor can display map images through a map application.

[0125] For example, a map application can obtain map resources from its server, or it can obtain the location of electronic device 100 from a GPS module, and display map images based on the location of electronic device 100 and the map resources. The map application can also store the map resources in a first memory space.

[0126] In some embodiments, if the first condition for entering the first mode is detected, the auxiliary processor can continue to display the map image through the power management module, AOD SA, map application, trajectory service module, AOD APP, map engine, trajectory management module, data loading module, drawing engine, and trajectory caching module.

[0127] For example, upon detecting that the first condition for entering the first mode is met, the power management module can send instruction 1 to the AODSA, which in turn sends instruction 1 to the map application. In response to instruction 1, the map application can obtain the storage address of the map resources in the first memory space and send this address to the AODSA. The AODSA then sends the storage address of the map resources in the first memory space to the AOD APP. The AOD APP then sends the storage address of the map resources in the first memory space to the map engine. The map engine can obtain the location of the electronic device 100 from the GPS module through the trajectory caching module. The map engine can also obtain the map resources based on the storage address of the map resources in the first memory space through the data loading module. The map engine then sends the location of the electronic device 100 and the map resources to the rendering engine, which can generate a map image based on the location of the electronic device 100 and the map resources. The rendering engine then displays the map image on the display screen.

[0128] Optionally, the trajectory cache can periodically / irregularly retrieve GPS data from the GPS module and save the location of the electronic device 100, thus obtaining the historical location of the electronic device 100. The trajectory cache can also send the historical location of the electronic device 100 to a map application through the trajectory management module and the trajectory service module, allowing the map application to save the historical location of the electronic device 100. In this way, after the electronic device 100 exits the first mode, the map application can display the historical trajectory points of the electronic device 100, making it convenient for users to view the historical driving trajectory of the electronic device 100.

[0129] The following section provides a detailed explanation of a map display method provided in this application, using UI diagrams and software interaction diagrams.

[0130] Scenario 1: When not in the first mode, the electronic device 100 displays a map image on the screen through the main processor.

[0131] For example, the first mode could be the AOD mode.

[0132] When not in the first mode, the main processing unit of the electronic device 100 runs a map application. The electronic device 100 can display map images through the map application.

[0133] Figures 3A-3B A UI diagram is shown of a set of electronic devices 100 displaying map images on a screen via a main processor.

[0134] In some embodiments, the electronic device 100 can receive an operation from a user who inputs a destination and initiates navigation in a map application. In response to this operation, the map application can send the starting location and destination of the electronic device 100 to the map application's server. The map application's server can obtain a navigation route based on the starting location and destination of the electronic device 100. The navigation route indicates the travel path from the starting location of the electronic device 100 to the destination. After obtaining the navigation route, the map application's server sends the navigation route to the map application. The map application can also obtain map resources, generate map images based on the map resources, and display the map images and navigation routes.

[0135] The map resources can be acquired in real time or pre-installed in the electronic device 100. The starting position of the electronic device 100 can be determined by the electronic device 100 based on GPS data.

[0136] Figure 3A A schematic diagram of an electronic device 100 displaying a map image is shown.

[0137] like Figure 3A As shown, the electronic device 100 displays a navigation interface 340, which may include a map image 3405 and navigation instructions. The map image 3405 may include a map image of the geographical area where the electronic device 100's current location is located. The navigation instructions may include... Figure 3A The location marker 3401, historical driving route 3402, navigation route 3403, etc. of the electronic device 100 are shown.

[0138] In some embodiments, a location identifier may also be referred to as a location icon.

[0139] In some embodiments, the display area where the navigation interface 340 is located may be referred to as the first area.

[0140] The map image 3405 is updated as the location of the electronic device 100 changes. The location identifier 3401 indicates the most recently acquired location of the electronic device 100, and can also indicate the direction of movement of the electronic device 100. The historical travel route 3402 is used to indicate the historical trajectory of the electronic device 100. The navigation route 3403 is used to guide the travel direction of the electronic device 100, enabling it to proceed towards its destination.

[0141] Figure 3A It also displays other navigation information, such as cumulative distance traveled, cumulative driving time, and driving guidance information. The cumulative distance traveled and cumulative driving time increase over time. The cumulative distance traveled can be "2.1 kilometers," the cumulative driving time can be "30 minutes and 18 seconds," and the driving guidance information can be "Continue."

[0142] In other embodiments, the electronic device 100 may receive a user opening a map application, where the user does not need to input a destination, and the map application is limited to map images and does not display navigation routes.

[0143] Figure 3B A schematic diagram of another electronic device 100 displaying a map image on a screen via a main processor is shown.

[0144] like Figure 3B As shown, the electronic device 100 displays a navigation interface 340, which may include a map image 3405 and navigation instructions. The map image 3405 may include a map image of the geographical area where the electronic device 100's current location is located. The navigation instructions may include... Figure 3B The location identifier 3401 and historical trajectory points of the electronic device 100 are shown. The historical trajectory points can be determined by the electronic device 100 based on GPS data acquired periodically / irregularly.

[0145] Figure 4A A schematic flowchart of a method for an electronic device 100 to display a map image on a display screen via a main processor is shown.

[0146] like Figure 4A As shown in the flowchart, the method includes a server 200 and an electronic device 100. The electronic device 100 includes a main processor, memory, GPS chip, and display screen, etc.

[0147] Figure 4A The method flow shown may include, but is not limited to, the following steps: S401, the main processor obtains map resources from server 200.

[0148] S402, the main processor stores map resources in the first memory space.

[0149] In some embodiments, the operating system running on the main processor of the electronic device 100 has a map application installed. The electronic device 100 can communicate with the server 200 (the server of the map application) through a communication network, obtain map resources from the server 200, and store them in the first memory space.

[0150] In some embodiments, the map resource can be an offline map resource. The map APP of the electronic device 100 can obtain the offline map resource of the area (e.g., district, city, province) from the server 200 and store the offline map resource in the first memory space. In this way, when the electronic device 100 needs navigation, it can directly obtain the map resource from the first memory space for navigation without having to obtain the map resource from the server 200 in real time.

[0151] In some embodiments, the map application of the electronic device 100 can also obtain online map resources of the area (e.g., district, city, province) from the server 200 in real time.

[0152] Optionally, the first memory space can be shared memory between the main processor and the secondary processor, used to store data transferred from the main processor to the secondary processor. Optionally, the main processor can store map resources in the first memory space through a file system.

[0153] S403, The main processor obtains GPS data from the GPS chip, which is used to determine the initial position of the electronic device 100.

[0154] S404, the main processor obtains the data of the first navigation route from the server 200 based on the initial position and target position of the electronic device 100.

[0155] S405, the main processor stores the data of the first navigation route in the second memory space.

[0156] The main processor can acquire GPS data from the GPS chip, which is used to determine the initial position of the electronic device 100. After acquiring the initial position of the electronic device 100, the main processor can also acquire data for a first navigation route from the server 200 based on the initial position and target position of the electronic device 100.

[0157] For example, the main processor can send the initial position and target position of the electronic device 100 to the server 200. The server 200 can determine a first navigation route based on the initial position and target position of the electronic device 100. The first navigation route indicates the route information from the initial position of the electronic device 100 to the target position. After determining the first navigation route, the server 200 sends the data of the first navigation route to the main processor, and the main processor then stores the data of the first navigation route in a second memory space.

[0158] Optionally, the initial position of the electronic device 100 may not be obtained. The main processor can send GPS data to the server 200, and the server 200 can obtain the first navigation route based on the GPS data and the target position.

[0159] Optionally, the second memory space and the first memory space can be different. The second memory space can be the running memory of the map application. After obtaining the data of the first navigation route, the main processor can first store the navigation route data in the second memory space. If the first condition for entering the first mode is detected, the main processor will then store the first navigation route data in the first memory space.

[0160] Optionally, the second memory space and the first memory space can be the same. After obtaining the data of the first navigation route, the main processor can directly store the data of the first navigation route in the second memory space.

[0161] Optionally, S403-S405 can be executed before S401-S402, or S403-S405 can be executed simultaneously with S401-S402.

[0162] S406, The main processor acquires data of map resource 1 and navigation route 1 based on the initial position of electronic device 100.

[0163] S407, the main processor generates map image 1 and navigation route 1 based on the data of map resource 1 and navigation route 1.

[0164] After acquiring map resources and the data for the first navigation route, the main processor can, based on the initial position of the electronic device 100, obtain map resource 1 from the map resources and navigation route 1 from the data for the first navigation route. Map resource 1 can be a map resource covering a region with a preset geographical range centered on the initial position of the electronic device 100, and navigation route 1 can be a navigation route covering a region with a preset geographical range centered on the initial position of the electronic device 100.

[0165] Optionally, instead of obtaining the initial position of electronic device 100, the main processor can directly obtain the data of map resource 1 and navigation route 1 based on GPS data.

[0166] After acquiring data from map resource 1 and navigation route 1, the main processor can generate map image 1 and navigation route 1.

[0167] Optionally, the main processor may include an OpenGL component or a Vulkan component. The main processor can generate map image 1 and navigation route 1 based on the data of map resource 1 and navigation route 1 using the OpenGL component or Vulkan component.

[0168] S408, the main processor sends map image 1 and navigation route 1 to the display screen.

[0169] S409, The display screen shows map image 1 and navigation route 1.

[0170] After generating map image 1 and navigation route 1, the main processor can send map image 1 and navigation route 1 to the display screen, which can then display map image 1 and navigation route 1.

[0171] It should be noted that, Figure 4A The method flow shown is only for explaining this application, and this application is not intended to... Figure 4A The execution order of each step in the embodiment is not limited.

[0172] For example, map image 1 can be Figure 3A The map image 3405 shown, navigation route 1 can be... Figure 3A The navigation route shown is 3403.

[0173] Optionally, S404-S405 can be omitted, and the main processor can display only map image 1 without displaying navigation route 1. Optionally, the main processor can periodically / irregularly mark the historical trajectory points of electronic device 100 in the navigation interface.

[0174] For example, map image 1 can be Figure 3B The map image shown is 3405.

[0175] Figure 4B This diagram illustrates the interaction between software and hardware modules in an electronic device 100 that displays map images on a screen via a main processor.

[0176] like Figure 4B As shown, the electronic device 100 may include a main processor, and the hardware layer includes a GPS chip, a memory, and a storage device. A map application runs on the main processor.

[0177] 1. Map applications obtain map resources.

[0178] 2. Map applications store map resources in the first memory space of the storage device.

[0179] 3. The map application receives input of the target location.

[0180] 4. The map application obtains GPS data from the GPS chip and uses this GPS data to obtain the initial location.

[0181] 5. The map application obtains data for the first navigation route based on the initial and target positions of the electronic device 100.

[0182] 6. The map application stores the data of the first navigation route in the second memory space.

[0183] 7. The map application uses the initial location of the electronic device 100 to acquire data from map resource 1 and navigation route 1.

[0184] 8. The map application generates map image 1 and navigation route 1 based on the data of map resource 1 and navigation route 1.

[0185] 9. The map application sends map image 1 and navigation route 1 to the display screen, which then displays map image 1 and navigation route 1.

[0186] Scenario 2: After entering the first mode, the electronic device 100 displays a map image on the screen through the auxiliary processor.

[0187] Figures 5A-5G A UI diagram is shown of a set of electronic devices 100 displaying map images on a screen via a secondary processor.

[0188] In some embodiments, the electronic device 100 may provide the function of displaying a map image in a first mode. If the function of displaying a map image in the first mode is enabled, the electronic device 100 may continue to display a map image after entering the first mode. If the function of displaying a map image in the first mode is disabled, the electronic device 100 may not display a map image after entering the first mode.

[0189] For example, the first mode could be the AOD mode.

[0190] like Figures 5A-5D As shown, the electronic device 100 can receive and respond to input operations on icons for a map application, such as click operations. In response to the user's input operations, the electronic device 100 can display... Figure 5BThe map application's main interface is shown. The main interface includes personal settings options. The electronic device 100 can receive and respond to input operations related to these personal settings options, such as clicks. In response to the user's input, the electronic device 100 can display... Figure 5C The map application's personal settings interface shown includes settings options. The electronic device 100 can receive and respond to input operations related to these settings options, such as clicks. In response to the user's input, the electronic device 100 can display... Figure 5D The image shows the settings interface of the map application. The settings interface includes several settings options, such as an always-on display setting. When the always-on display setting is enabled, the electronic device 100 can display map images after entering AOD mode.

[0191] like Figure 5E and Figure 5F As shown, when the electronic device 100 is not in AOD mode, upon detecting user input to the power button, the electronic device 100 enters AOD mode. The main processor enters sleep mode, the auxiliary processor generates an AOD interface 510, and instructs the display screen to switch the navigation interface 340 to display the AOD interface 510. The AOD interface 510 is used to continuously display important information on the screen with low power consumption. In this embodiment, the electronic device 100 can be triggered to display the AOD interface by not operating the electronic device 100 for a long time or by a specific input operation; when the screen of the electronic device 100 is off, if the user touches or clicks the display screen, the electronic device 100 will be triggered to display the AOD interface. This embodiment does not specifically limit the method of triggering the display of the AOD interface.

[0192] like Figure 5F As shown, the AOD interface 510 may include time, date, and navigation map 5101. The navigation map 5101 may include one or more of the following: a map image of the geographical area where the current location of the electronic device 100 is located, the location marker of the electronic device 100 5102, isometric circles 5103, historical driving routes 5104, navigation routes 5105, scale bar icons 5106, GPS signal strength 5107, cumulative mileage from the initial location 5108, cumulative time from the initial location 5109, cumulative elevation gain from the initial location 5110, etc.

[0193] In some embodiments, the display area where the navigation map 5101 is located may be referred to as the first area.

[0194] The location identifier 5102 indicates the most recently acquired location of the electronic device 100 (or the current location of the electronic device 100), and the location identifier 5102 can also indicate the direction of movement of the electronic device 100. Optionally, the direction of movement of the electronic device 100 can be obtained by the electronic device 100 based on GPS data.

[0195] The equidistant circle 5103 is used to identify a preset geographical range centered on the location of the electronic device 100. For example, the equidistant circle 5103 can be used to indicate a geographical range of 100 meters centered on the location of the electronic device 100. When the electronic device 100 veers off course, the user can determine the distance by which the electronic device 100 deviates from the navigation route based on the equidistant circle 5103.

[0196] Historical driving route 5104 is used to indicate the historical trajectory of electronic device 100. Navigation route 5105 is used to guide the driving direction of electronic device 100, enabling electronic device 100 to travel towards its destination.

[0197] The scale icon 5106 is used to indicate the mapping relationship between pixel distance and actual geographic distance. Figure 5F The scale icon 5106 shown includes the number "200m" and the pixel distance represented by the horizontal line. Figure 5F The horizontal line shown represents a pixel distance of 10mm, meaning a pixel distance of 10mm can represent a real geographical distance of 200m. For example, Figure 5F The scale icon 5106 shown indicates that the auxiliary processor displays the map image at a second scale, which is 1cm:200m. This second scale means that a pixel distance of 1cm can represent an actual physical distance of 200m, or that a pixel distance of 1mm can represent an actual physical distance of 20000mm.

[0198] For example, such as Figure 5F As shown, the cumulative mileage 5108 from the initial position can be "4.21 kilometers", the cumulative time 5109 from the initial position can be "01:05 hours", and the cumulative elevation gain 5110 from the initial position can be "125 meters".

[0199] In some embodiments, the electronic device 100 may also periodically mark historical trajectory points of the electronic device 100 on the navigation map 5101. This application embodiment does not specifically limit the period for marking the historical trajectory points of the electronic device 100, for example, marking the location of the electronic device 100 once every ten minutes.

[0200] In other embodiments, the electronic device 100 can receive a user opening a map application. The user does not need to input a destination, and the auxiliary processor can only display the map interface in the AOD interface without displaying the navigation route.

[0201] like Figure 5G As shown, the electronic device 100 displays an AOD interface 520, which is similar to the AOD interface 510. The difference is that the AOD interface 520 does not include the historical driving route 5104 and the navigation route 5105. The AOD interface 520 also includes the historical trajectory points of the electronic device 100.

[0202] like Figure 6A As shown, the electronic device 100 includes a main processor, a secondary processor, a GPS chip, and a display screen. Figure 6A The method flow shown may include, but is not limited to, the following steps: S601, The main processor detects that the first condition for entering the first mode is met.

[0203] The first condition is used to trigger the electronic device 100 to enter the first mode, for example, the first mode can be AOD mode.

[0204] In one implementation, the first condition includes detecting an input operation to trigger the AOD mode. For example, the input operation could be a single press of the power button when the electronic device 100 is on, or a touch / click on the display screen when the electronic device 100 is off. This application embodiment does not specifically limit the input operation that triggers the AOD mode. In another implementation, the first condition may further include detecting that the user has not operated the electronic device 100 for a preset period of time. It is understood that when the user has not operated the electronic device 100 for a long period, the electronic device 100 can enter AOD mode to reduce device power consumption.

[0205] S602, The main processor determines whether the function of displaying map images in the first mode is enabled.

[0206] In some embodiments, the electronic device 100 provides the function of displaying a map image in a first mode. If the function of displaying a map image in the first mode is enabled, the electronic device 100 can continue to display a map image after entering the first mode. If the function of displaying a map image in the first mode is disabled, the electronic device 100 may not display a map image after entering the first mode.

[0207] If it is determined that the function of displaying map images in the first mode is enabled, the electronic device 100 can display map images in the first mode via the auxiliary processor. That is, S604-S610 are executed.

[0208] If it is determined that the function of displaying map images in the first mode is not enabled, the electronic device 100 may not display map images in the first mode. That is, S603 is executed.

[0209] S603, the secondary processor does not display map images in the first mode.

[0210] If it is determined that the function of displaying map images in the first mode is not enabled, the auxiliary processor may not display map images in the first mode after the electronic device 100 enters the first mode.

[0211] For example, if the first mode is AOD mode, after the electronic device 100 enters AOD mode, the auxiliary processor can only display the AOD interface and not display the map image in AOD.

[0212] Optionally, the judgment step S602 may be omitted. After detecting that the first condition for entering the first mode is met, the electronic device 100 can directly execute S604-S610.

[0213] S604, the main processor obtains the storage address of the map resources in the first memory space.

[0214] S605: The main processor sends the storage address of the map resources in the first memory space to the auxiliary processor.

[0215] based on Figure 4A As shown in the embodiment, after the main processor acquires the map resources, it stores the map resources in the first memory space. The main processor can obtain the storage address of the map resources in the first memory space and send the storage address to the auxiliary processor. The auxiliary processor can then acquire the map resources based on the storage address in the first memory space and continue displaying the map image. For details, please refer to the descriptions in S605-S610.

[0216] Optionally, the main processor is not limited to sending the storage address of the map resources in the first memory space to the auxiliary processor. The main processor can also send the resolution of the display screen of the electronic device 100 to the auxiliary processor. The auxiliary processor can display the map image based on the resolution of the display screen of the electronic device 100, so that the resolution of the map image displayed by the auxiliary processor is adapted to the resolution of the display screen of the electronic device 100.

[0217] After the main processor sends the storage address of the map resources in the first memory space to the auxiliary processor, the main processor can enter a sleep state to reduce the power consumption of the electronic device 100.

[0218] Optionally, while the main processor is still displaying the navigation route, it can also send the storage address of the first navigation route data in the first memory space to the auxiliary processor. The auxiliary processor can then retrieve the first navigation route data based on its storage address in the first memory space and continue displaying the navigation route.

[0219] Optionally, the storage addresses of map resources and the data of the first navigation route in the first memory space can be sent from the main processor to the auxiliary processor simultaneously, or they can be sent to the auxiliary processor in a time-sharing manner. This application does not limit this.

[0220] based on Figure 4A As can be seen from the embodiments, after the main processor obtains the data of the first navigation route, in one possible implementation, the main processor can store the data of the first navigation route in the second memory space. Upon detecting that the first condition for entering the first mode is met, the main processor then obtains the data of the first navigation route from the second memory space and stores it in the first memory space. The main processor can obtain the storage address of the data of the first navigation route in the first memory space. In other possible implementations, the main processor can directly store the data of the first navigation route in the first memory space, and the main processor can directly obtain the storage address of the data of the first navigation route in the first memory space.

[0221] S606, the auxiliary processor acquires GPS data, which is used to determine the location 1 of the electronic device 100.

[0222] The main processor can obtain GPS data from the GPS chip, which is used to determine the location 1 of the electronic device 100. The location 1 of the electronic device 100 can be the same as or different from the initial location of the electronic device 100.

[0223] S607, the auxiliary processor obtains the map resource 2 based on the location 1 of the electronic device 100 and the storage address of the map resource in the first memory space.

[0224] S608, the auxiliary processor, generates map image 2 based on map resource 2.

[0225] After obtaining the location 1 of the electronic device 100, the auxiliary processor can obtain map resource 2 from the first memory space based on the location 1 of the electronic device 100 and the storage address of the map resource in the first memory space. After obtaining map resource 2, the auxiliary processor can generate map image 2 based on map resource 2. Map resource 2 can be a map resource of a region with a preset geographical range centered on the location 1 of the electronic device 100.

[0226] Optionally, the location 1 of the electronic device 100 may not be obtained; the auxiliary processor can directly obtain map resources 2 from the first memory space based on GPS data.

[0227] Optionally, map resource 2 and map resource 1 can be the same or different.

[0228] Optionally, the auxiliary processor may include a rendering engine, which may be a 2D rendering engine or a 3D rendering engine. The auxiliary processor can generate map image 2 based on map resource 2 through the rendering engine.

[0229] In some embodiments, map image 2 may be referred to as a first map image. Map resource 2 may be referred to as a map resource of the first map image. The area of ​​a preset geographical range centered on the location 1 of the electronic device 100 may be referred to as the first geographical range.

[0230] Optionally, the auxiliary processor can also retrieve navigation route 2 data from the first memory space based on the location 1 of the electronic device 100 and the storage address of the first navigation route data in the first memory space. After retrieving the navigation route 2 data, the auxiliary processor can generate and display navigation route 2 based on the navigation route 2 data. Navigation route 2 can be a navigation route covering a preset geographical area centered on the location 1 of the electronic device 100.

[0231] Optionally, navigation route 2 and navigation route 1 can be the same or different.

[0232] For example, the coprocessor can display Figure 5F The map image and navigation route 5105 shown are shown.

[0233] Optionally, the auxiliary processor may not display the navigation route, but periodically / irregularly mark the historical trajectory points of the electronic device 100.

[0234] For example, the coprocessor can display Figure 5F The map image shown is a historical trajectory point of the electronic device 100.

[0235] S609, the auxiliary processor sends map image 2 to the display screen.

[0236] S610, The display screen shows map image 2.

[0237] After generating map image 2, the coprocessor can send map image 2 to the display screen, which can then display map image 2.

[0238] It should be noted that, Figure 6A The method flow shown is only for explaining this application, and this application is not intended to... Figure 4AThe execution order of each step in the embodiment is not limited.

[0239] Implementation Figure 6A The method shown allows the main processor to enter a sleep state after the electronic device 100 enters the first mode. The electronic device 100 can continue to display map images through the auxiliary processor, which not only reduces the power consumption of the electronic device 100, but also allows the user to continue to travel based on the map images displayed by the electronic device 100, thus improving the user experience.

[0240] Figure 6B This diagram illustrates the interaction between the software and hardware modules of an electronic device 100 that displays a navigation interface via a secondary processor.

[0241] like Figure 6B As shown, the electronic device 100 may include a main processor and a secondary processor. The hardware layer includes a GPS chip, a memory, and a storage device. The main processor runs a map application, a power management module, and an AOD SA. The secondary processor runs an AODAPP, a map engine, a rendering engine, a trajectory caching module, and a data loading module.

[0242] 1. Upon detecting that the first condition for entering the first mode is met, the power management module sends instruction 1 to the AOD SA.

[0243] 2. AOD SA sends instruction 1 to the map application.

[0244] 3. The map application sends the storage address of the map resources in the first memory space to AOD SA.

[0245] 4. AOD SA sends the storage address of the map resources in the first memory space to AOD APP.

[0246] 5. The trajectory caching module obtains the location 1 of electronic device 100 from GPS data.

[0247] 6. The trajectory caching module sends the location 1 of the electronic device 100 to the AOD APP.

[0248] Optionally, the track caching module can also send GPS data to the AOD APP, and the AOD APP can obtain the location 1 of the electronic device 100 based on the GPS data.

[0249] Optionally, the track caching module can also send GPS data to the AOD APP, which in turn sends the GPS data to the map engine. The map engine then sends the GPS data to the data loading module, which retrieves the map resource based on the GPS data, the map resource's storage address in the first memory space, and so on.

[0250] 7. The AOD APP sends the storage address of the map resources in the first memory space and the location 1 of the electronic device 100 to the map engine.

[0251] 8. The map engine sends the storage address of the map resources in the first memory space and the location 1 of the electronic device 100 to the data loading module.

[0252] Optionally, the storage address of the map resources in the first memory space and the location 1 of the electronic device 100 can be sent to the data loading module simultaneously or in a time-sharing manner.

[0253] 9. The data loading module retrieves map resource 2 from the memory.

[0254] 10. The data loading module sends map resource 2 to the map engine.

[0255] 11. The map engine sends map resource 2 to the rendering engine.

[0256] 12. The rendering engine sends map image 2 to the display screen.

[0257] After acquiring map resource 2, the rendering engine can generate map image 2 based on map resource 2. The rendering engine then sends map image 2 to the display screen, which can then display map image 2.

[0258] In some embodiments, the auxiliary processor can also cache the position of the electronic device 100 and periodically / irregularly send the historical position of the electronic device 100 to the main processor. Thus, when the electronic device 100 exits the first mode, the main processor can display the historical trajectory points of the electronic device 100 based on its historical position, allowing the user to view the complete driving trajectory.

[0259] Figure 6C This diagram illustrates the interaction of a software module in which a secondary processor sends the historical location of an electronic device 100 to the main processor.

[0260] like Figure 6C As shown, the electronic device 100 may include a main processor and a secondary processor. The main processor runs a map application and a trajectory module service. The secondary processor runs a trajectory management module and a trajectory caching module.

[0261] 1. The trajectory cache module stores the location of electronic device 100.

[0262] 2. If the second condition is met, the trajectory caching module will send the historical location of the electronic device 100 to the trajectory management module.

[0263] After receiving GPS data or the location of electronic device 100 sent by the trajectory caching module, the trajectory caching module can save the location of electronic device 100 and obtain the historical location of electronic device 100.

[0264] If the second condition is met, the trajectory caching module sends the historical location of the electronic device 100 to the trajectory management module.

[0265] The second condition is used to trigger the auxiliary processor to send the historical location of the electronic device 100 to the main processor.

[0266] Optionally, the second condition may include, but is not limited to, any one or more of the following: detecting an event that exits the first mode, or the amount of historical location data of the electronic device 100 stored in the trajectory cache module being greater than or equal to a preset amount of data.

[0267] 3. The trajectory management module sends the historical location of electronic device 100 to the trajectory module service.

[0268] 4. The trajectory module service sends the historical location of electronic device 100 to the map application.

[0269] Scenario 3: After entering the first mode, the auxiliary processor can set a stable zone. When the electronic device 100 is within the stable zone, the auxiliary processor does not need to refresh the map image. When the electronic device 100 moves outside the stable zone, the auxiliary processor refreshes the map image, thereby reducing the power consumption of the electronic device 100.

[0270] The position of electronic device 100 changes in real time as the user moves. To prevent the map image displayed by the auxiliary processor from changing with the position of electronic device 100, a stable zone can be set. When electronic device 100 is within the stable zone, the auxiliary processor does not need to refresh the map image. When electronic device 100 moves outside the stable zone, the auxiliary processor refreshes the map image, thereby reducing the power consumption of electronic device 100.

[0271] The actual geographic extent encompassed by the stable region can be determined based on a first scale and a first pixel extent. The first pixel extent is related to the shape of the first pixel extent and the shape and / or size of the display area used to display the map image.

[0272] In some embodiments, the first pixel range may also be referred to as the second region.

[0273] Optionally, the shape of the first pixel range can be a circle, a square, or other shapes, and the shape of the first pixel range can be set based on the developer's needs.

[0274] For example, when the shape of the first pixel range is circular and the shape of the display area for displaying the map image is rectangular, the center of the first pixel range can be the center of the display area for displaying the map image, and the radius of the first pixel range can be half the length of any side of the display area for displaying the map image. Optionally, the radius of the first pixel range can be half the length of the longest side or half the length of the shortest side of the display area for displaying the map image.

[0275] For example, when the longest side of the display area used to display a map image is 5cm, the radius of the first pixel range can be 2.5cm, the first pixel range can be a circular area of ​​2.5cm, and the center of the first pixel range can be the center of the display area used to display the map image. If the first scale is 1:20 (1mm pixel distance represents 20m actual physical distance), then the actual geographical range included in the stable area can be a circular geographical range with a radius of 500m.

[0276] For example, when the shape of the first pixel range is rectangular and the shape of the display area for displaying the map image is rectangular, the center of the first pixel range can be the center of the display area for displaying the map image, the long side of the first pixel range can be half of the long side of the display area for displaying the map image, and the short side of the first pixel range can be half of the short side of the display area for displaying the map image.

[0277] For example, when the long side of the display area used to display a map image is 5cm and the short side is 4cm, the long side of the first pixel range can be 2.5cm, the short side of the first pixel range can be 2cm, the first pixel range can be a rectangle with a length of 2.5cm and a width of 2cm, and the center of the first pixel range can be the center of the display area used to display the map image. If the first scale is 1:20 (1mm pixel distance represents 20m actual physical distance), then the actual geographical range included in the stable area can be a rectangular geographical range with a length of 500m and a width of 400m.

[0278] Figures 7A-7D A UI diagram is shown illustrating how a set of auxiliary processors determines whether to refresh a map image based on whether the position of the electronic device 100 is within a stable area.

[0279] like Figure 7A As shown, the electronic device 100 displays a navigation map 5101. For an introduction to the navigation map 5101, please refer to [link / reference needed]. Figure 5F The descriptions in the embodiments are not repeated here.

[0280] Using the above method, electronic device 100 can determine the actual geographical range encompassed by stable region 1.

[0281] For example, the range of the first pixel can be Figure 7A The pixel range within the dashed line shown, the center of the first pixel range can be the center of the display area used to display the navigation map 5101, and the actual geographical range included in the stable area 1 can be a rectangular geographical area with a length of 500m and a width of 500m centered on the location 1 of the electronic device 100.

[0282] It should be noted that, Figure 7A The first pixel range shown is not visible to the user. In other embodiments, the auxiliary processor may also display the first pixel range in the navigation map 5101 to allow the user to view the distance of the electronic device 100 from the edge of the first pixel range.

[0283] like Figure 7A and Figure 7B As shown, the electronic device 100 can travel along the navigation route 5105. When the electronic device 100 is within the stable region 1, the auxiliary processor does not need to repeatedly render the map image and can avoid refreshing the map image. Figure 7B The map image shown and Figure 7A The map images shown are the same.

[0284] Optionally, the navigation map 5101 includes not only map images, but also navigation routes 5105, scale icons 5106, etc. When the electronic device 100 is within the stable zone 1, the navigation routes and scale do not change, and the electronic device 100 does not need to repeatedly render the navigation routes and scale icons, but continues to display the navigation routes 5105 and scale icons 5106. Figure 7B The navigation route shown, the scale icon and Figure 7A The navigation routes and scale icons shown are the same.

[0285] Optionally, the navigation map 5101 also includes historical driving routes 5104, GPS signal strength 5107, cumulative mileage from the initial position 5108, cumulative duration from the initial position 5109, and cumulative elevation gain from the initial position 5110. Because the position of the electronic device 100 has changed, the historical driving routes, cumulative mileage from the initial position, cumulative duration from the initial position, and cumulative elevation gain from the initial position also change. The auxiliary processor needs to re-render the historical driving routes, cumulative mileage from the initial position, cumulative duration from the initial position, and cumulative elevation gain from the initial position, and refresh the display of these data.

[0286] For example, such as Figure 7BAs shown, the cumulative mileage 5108 from the initial position can be "4.36 kilometers", the cumulative time 5109 from the initial position can be "01:10 hours", and the cumulative elevation gain 5110 from the initial position can be "128 meters".

[0287] like Figure 7B and Figure 7C As shown, electronic device 100 can continue to travel along navigation route 5105. If electronic device 100 is still within stable zone 1, the auxiliary processor does not need to re-render the map image and does not need to refresh the map image. Figure 7C The map image shown and Figure 7B The map images shown are the same.

[0288] Same as above Figure 7B As described in the embodiment, the electronic device 100 does not need to repeatedly render the icons of the navigation route and scale, and continues to display the icons of the navigation route 5105 and scale 5106. Figure 7C The navigation route shown, the scale icon and Figure 7B The navigation routes and scale icons shown are the same.

[0289] Same as above Figure 7B As described in the embodiment, the electronic device 100 needs to re-render to obtain the historical driving route, the cumulative mileage from the initial position, the cumulative duration from the initial position, the cumulative elevation gain from the initial position, etc., and refresh the display of the historical driving route, the cumulative mileage from the initial position, the cumulative duration from the initial position, and the cumulative elevation gain from the initial position.

[0290] For example, such as Figure 7C As shown, the cumulative mileage 5108 from the initial position can be "4.46 kilometers", the cumulative time 5109 from the initial position can be "01:15 hours", and the cumulative elevation gain 5110 from the initial position can be "130 meters".

[0291] like Figure 7C and Figure 7D As shown, electronic device 100 can continue traveling along navigation route 5105. If electronic device 100 is outside the stable zone 1, the auxiliary processor can determine the position of electronic device 100 based on GPS data, for example, position 2 of electronic device 100. The auxiliary processor then retrieves map resource 3 and navigation route 3 data from the first memory space based on the position 2 of electronic device 100. After retrieving the map resource 3 and navigation route 3 data, the auxiliary processor can generate map image 3 and navigation route 3 based on the map resource 3 and navigation route 3 data, and display the map image 3 and navigation route 3 to refresh the displayed map image and navigation route.

[0292] In some embodiments, map image 3 may be referred to as a second map image. Map resource 3 may be referred to as a map resource of the second map image. The geographic extent of the second map image may be referred to as a second geographic extent.

[0293] like Figure 7D As shown, after generating map image 3 and navigation route 3, the electronic device 100 displays the AOD interface 610. The AOD interface 610 may include time, date, and navigation map 6101. The navigation map 6101 may include one or more of the following: a map image of the geographical area where the current location of the electronic device 100 is located, the location marker of the electronic device 100 6102, isometric circles 6203, historical driving routes 6104, navigation routes 6105, a scale icon 5106, GPS signal strength 5107, cumulative mileage from the initial location 5108, cumulative time from the initial location 5109, and cumulative elevation gain from the initial location 5110, etc.

[0294] For an introduction to navigation map 6101, please refer to the description of navigation map 5101; this application will not repeat it here.

[0295] After generating map image 3 and navigation route 3, the auxiliary processor can determine the actual geographical range contained in stable region 2 in the manner described above. The actual geographical range contained in stable region 2 is different from that contained in stable region 1.

[0296] For example, the actual geographical area included in the stable zone 2 can be a rectangular geographical area with a length of 500m and a width of 500m centered on the location 2 of the electronic device 100.

[0297] Optional, from Figure 7C and Figure 7D It can be seen that if the location identifier 5102 directly from Figure 7C The display position shown has been switched to Figure 7D The display position shown indicates that the display position of the location marker of the electronic device 100 will change. In some embodiments, the electronic device 100 can use frame interpolation to... Figure 7C The display position of the location identifier 5102 shown is... Figure 7D The position identifier of the display electronic device 100 is displayed in at least one position between the display positions of the position identifier 6102 shown, such that the position identifier 5102 is transitionally displayed. Figure 7D The location indicated is the display position of the location identifier 6102.

[0298] Figure 8AA flowchart illustrating a method for a secondary processor to determine whether to refresh a map image based on whether the position of the electronic device 100 is within a stable outer region is shown.

[0299] S8001A, the auxiliary processor displays map image 2, which is generated based on map resource 2.

[0300] For information on how the coprocessor generates map image 2, please refer to [link / reference]. Figure 6A The embodiments describe S606-S608.

[0301] For example, map image 2 can be Figure 7A The map image shown.

[0302] Optionally, the coprocessor can also generate and display navigation route 2.

[0303] For example, navigation route 2 could be Figure 7A The navigation route shown is 5105.

[0304] S8002A, secondary processor saves map images 2.

[0305] After generating map image 2, the auxiliary processor can save map image 2. In this way, when it is determined that there is no need to refresh the display of the map image, the auxiliary processor can directly obtain the saved map image 2 without performing the step of obtaining map resource 2 from the first memory space, or the step of rendering map resource 2 to obtain map image 2, which can reduce the power consumption of electronic device 100.

[0306] Optionally, if the secondary processor also displays navigation route 2, it can also save navigation route 2. In this way, when it is determined that there is no need to refresh the display of the navigation route, the secondary processor can directly obtain the saved navigation route 2 without performing the step of retrieving the data of navigation route 2 from the first memory space, or the step of rendering the data of navigation route 2 to obtain navigation route 2, which can reduce the power consumption of electronic device 100.

[0307] Optionally, when the secondary processor also displays a scale icon, it can also save the scale icon. This way, when it's determined that refreshing the scale icon display is unnecessary, the secondary processor can directly retrieve the saved scale icon, eliminating the need to perform the rendering step, thus reducing the power consumption of the electronic device by 100%.

[0308] S8003A, the auxiliary processor determines the first stable region, which is a region of a preset geographical range centered on the location 1 of the electronic device 100.

[0309] After generating map image 2, the auxiliary processor can determine a first stable region, which can be a region of a preset geographical range centered on the location 1 of electronic device 100.

[0310] For details on how the auxiliary processor determines the stable region based on the position of the electronic device 100, please refer to the description above; this application will not repeat it here.

[0311] The S8004A auxiliary processor periodically / irregularly acquires GPS data.

[0312] The S8005A auxiliary processor determines whether the location of the electronic device 100 is within the first stable zone based on GPS data.

[0313] After determining the first stable region, the auxiliary processor can periodically / irregularly acquire GPS data from the GPS chip and determine whether the electronic device 100 is located within the first stable region based on the GPS data.

[0314] If it is determined that the electronic device 100 has moved into the first stable zone, the auxiliary processor may continue to display map image 2 without refreshing the displayed map image, that is, execute S8006A.

[0315] If it is determined that the electronic device 100 has moved outside the first stable zone, the auxiliary processor needs to refresh the displayed map image, that is, execute S8007A-S8009A.

[0316] Optionally, the electronic device 100 moving into the first stable region can mean that the real-time geographical location of the electronic device 100 is located within the first stable region but not at the edge of the first stable region. The electronic device 100 moving out of the first stable region can mean that the real-time geographical location of the electronic device 100 is located within the first stable region but at the edge of the first stable region.

[0317] The edge region of the first stable zone can refer to the edge line of the first stable zone, or it can refer to a geographical area with a certain width (e.g., 1 meter) including the edge line of the first stable zone.

[0318] S8006A, the auxiliary processor continues to display map image 2.

[0319] If the electronic device 100 is determined to have moved into the first stable zone, the auxiliary processor may not refresh the displayed map image, but instead obtain the saved map image 2 and continue to display map image 2.

[0320] For example, map image 2 can be Figure 7B or Figure 7C The map image shown.

[0321] Optionally, if it is determined that the electronic device 100 has moved into the first stable zone, the auxiliary processor may also not refresh the displayed navigation route, but instead obtain the saved navigation route 2 and continue to display navigation route 2.

[0322] For example, navigation route 2 could be Figure 7B or Figure 7C The navigation route shown is 5105.

[0323] Optionally, if it is determined that the electronic device 100 has moved into the first stable zone, the auxiliary processor may also obtain and display the icon of the saved scale.

[0324] Since the position of electronic device 100 has changed, electronic device 100 needs to be re-rendered to obtain data such as the position icon and equidistant circle of electronic device 100. The re-rendered position icon and equidistant circle of electronic device 100 are displayed based on the current position of electronic device 100.

[0325] S8007A, the auxiliary processor acquires GPS data, and based on the GPS data, obtains the location 2 of the electronic device 100.

[0326] S8008A, the auxiliary processor obtains map resources 3 based on the location 2 of the electronic device 100.

[0327] The S8009A auxiliary processor generates and displays map image 3 based on map resource 3.

[0328] If it is determined that the electronic device 100 has moved outside the first stable zone, the auxiliary processor needs to refresh the displayed map image. After refreshing the map image, the position icon of the electronic device 100 is again displayed in the center of the first pixel range.

[0329] For example, the auxiliary processor can acquire GPS data, obtain the location 2 of the electronic device 100 based on the GPS data, and then obtain map resource 3 from the first memory space based on the location 2 of the electronic device 100. Map resource 3 is different from map resource 2.

[0330] After acquiring map resource 3, the auxiliary processor can generate and display map image 3 based on map resource 3.

[0331] For example, map image 3 can be Figure 7D The map image shown.

[0332] Optionally, if it is determined that the electronic device 100 has moved outside the first stable zone, the auxiliary processor also needs to refresh the displayed navigation route. The auxiliary processor can obtain the navigation route 3 data from the first memory space based on the position 2 of the electronic device 100. Navigation route 3 is different from navigation route 2.

[0333] After acquiring the data for navigation route 3, the auxiliary processor can generate and display navigation route 3 based on the data.

[0334] For example, navigation route 3 could be Figure 7D The navigation route shown.

[0335] Optionally, if it is determined that the electronic device 100 has moved outside the first stable zone, the auxiliary processor may also obtain and display the icon of the saved scale.

[0336] Since the position of electronic device 100 has changed, electronic device 100 needs to be re-rendered to obtain data such as the position icon and equidistant circle of electronic device 100. The re-rendered position icon and equidistant circle of electronic device 100 are displayed based on the position 3 of electronic device 100.

[0337] In some embodiments, map image 3 may be referred to as a second map image. Map resource 3 may be referred to as a map resource for displaying the second map image.

[0338] according to Figure 8A The method shown can reduce the amount of data rendered by the coprocessor by setting a stable region, thereby reducing the power consumption of the electronic device 100.

[0339] The above Figure 8A The embodiment uses a secondary processor to determine the geographical range of the first stable region based on the real-time geographic location of the electronic device 100. In some embodiments, the auxiliary processor may also determine whether the location icon of the electronic device 100 is located within the second region, thereby determining whether the electronic device 100 is located within the first stable region.

[0340] like Figure 7A As shown, the auxiliary processor displays a navigation map 5101 in the first area. The first area includes a second area, the size of which can be the same as or smaller than the first area. Figure 7A In this context, the size of the second region can also be smaller than the size of the first region; the second region can be... Figure 7A The area within the dashed line shown. The auxiliary processor displays a location identifier 5102 in the second area, which is used to indicate the first geographical location of the electronic device 100.

[0341] In some embodiments, such as Figure 7A and Figure 7B As shown, as the geographical location of electronic device 100 changes, the coprocessor can change the location identifier 5102 from... Figure 7A The indicated position (e.g., the first position) is moved to... Figure 7B The location is shown. The coprocessor will transfer the location identifier 5102 from... Figure 7A Move to the position shown Figure 7B During the process of positioning as shown, the auxiliary processor continuously displays navigation map 5101 in the first area.

[0342] In some embodiments, such as Figure 7A and Figure 7C As shown, as the geographical location of electronic device 100 changes, the coprocessor can change the location identifier 5102 from... Figure 7A The indicated position (e.g., the first position) is moved to... Figure 7C The location shown (e.g., the second location). The coprocessor will transfer the location identifier 5102 from... Figure 7A Move to the position shown Figure 7C During the process of positioning as shown, the auxiliary processor continuously displays navigation map 5101 in the first area.

[0343] In response to location identifier 5102 moving to Figure 7C As shown, the auxiliary processor determines that location identifier 5102 satisfies a first condition, for example, the first condition could be that location identifier 5102 is located within the edge region of the second region. After the auxiliary processor determines that location identifier 5102 satisfies the first condition, as... Figure 7D As shown, the auxiliary processor can display a navigation map 6101 and a location marker 5102 in the first area. The location marker 5102 is located in a third position on the display screen, which is different from the second position. The geographical range included in map image 3 is different from the geographical range included in map image 2. The geographical location of electronic device 100 indicated by the third position (e.g., the third geographical location) is the same as the geographical location of electronic device 100 indicated by the second position (e.g., the second geographical location).

[0344] Figure 8B A flowchart illustrating a method for a secondary processor to determine whether to refresh a map image based on whether the location identifier of an electronic device 100 is located within the edge region of a second region is shown.

[0345] S8001B, the auxiliary processor displays a map image 2 of a first geographical area and a location icon in a first area of ​​the display screen. The location icon is used to indicate the first geographical location of the electronic device and is located in the first position of the display screen.

[0346] For example, map image 2 can be Figure 7A The navigation map 5101 shown can have location icons that are... Figure 7A The location is marked 5102.

[0347] S8002B, Save map image 2.

[0348] For an introduction to S8002B, please refer to the description in S8002A; this application will not repeat it here.

[0349] S8003B: Move the location icon from the first location to the second location on the display screen, and continuously display the map image 2 based on the saved map image 2. The second location indicated by the second location is different from the first location.

[0350] As the geographical location of the electronic device 100 changes, the auxiliary processor can change the display position of the location icon on the screen.

[0351] When the geographic location of electronic device 100 changes from a first geographic location to a second geographic location, the auxiliary processor can move the location icon from the first location on the display screen to the second location. The second geographic location is different from the first geographic location, and the second location is different from the first location. In the second location, while the auxiliary processor is moving the location icon from the first location on the display screen to the second location, the auxiliary processor can continuously display map image 2 based on the saved map image 2.

[0352] After the coprocessor moves the location icon from the first position on the display to the second position, the coprocessor can determine whether the second position is located at the edge of the second region.

[0353] The first region includes a second region. The size of the second region can be the same as the size of the first region, or the size of the second region can be smaller than the size of the first region. This application embodiment uses the example of the second region having a smaller size than the first region for illustration.

[0354] The edge area of ​​the second region can refer to the edge line of the second region, or it can refer to a geographical area with a certain width (e.g., 1 millimeter) including the edge line of the second region.

[0355] If the second location is within the second region but not within the edge region of the second region, the auxiliary processor can continue to display map image 2.

[0356] When the second location is within the second region and is located at the edge of the second region, the auxiliary processor can refresh and display the map image.

[0357] Optionally, if the edge region of the second region includes the edge line of the second region, the second position is located in the edge region of the second region, and the position coordinates of the second position coincide with the position coordinates of the edge line of the second region.

[0358] For example, such as Figure 7CAs shown, a Cartesian coordinate system can be established with the upper edge of the second region pointing horizontally to the right as the positive X-axis and the left edge of the second region pointing vertically to the lower edge of the second region as the positive Y-axis. The auxiliary processor can obtain the position coordinates of the edge line of the second region in this Cartesian coordinate system, as well as the position coordinates of the second location in this Cartesian coordinate system.

[0359] S8004B, in response to the second location being located within the edge area of ​​the second region, the auxiliary processor displays a map image 3 of the second geographical range and a location icon in the first area of ​​the display screen. The location icon is used to indicate the third geographical location of the electronic device. The location icon is located in the third position of the display screen. The third geographical location is the same as the second geographical location, and the third position is different from the second position.

[0360] When the second location is located within the second region and within the edge region of the second region, the auxiliary processor can acquire a map image 3 of the second geographical range and display the map image 3 of the second geographical range and a location icon in the first region of the display screen. The location icon is used to indicate the third geographical location of the electronic device. The location icon is located in the third position of the display screen. The third geographical location is the same as the second geographical location, and the third position is different from the second position.

[0361] For example, map image 3 can be Figure 7D The navigation map 5101 shown can have location icons that are... Figure 7D The location shown is marked 6102.

[0362] Optionally, when the location icon moves from the first position to the second position on the display screen, the auxiliary processor displays a first movement trajectory on the display screen that starts from the first position and ends at the second position.

[0363] When the second position is located within the second region and at the edge of the second region, the auxiliary processor stops displaying the first movement trajectory and displays the second movement trajectory on the screen, starting from the fourth position and ending at the third position.

[0364] The fourth location identifier is the same as the second location identifier, and the shape of the first movement trajectory is the same as the shape of the second movement trajectory.

[0365] For example, the first movement trajectory could be Figure 7C The shown movement trajectory is 5190. The second movement trajectory can be... Figure 7D The movement trajectory shown is 5190.

[0366] Scenario 4: After entering the first mode, the auxiliary processor can switch the scale based on the speed of the electronic device.

[0367] Based on the above description, the actual geographical range encompassed by the stable region is determined based on the first scale and the first pixel range. When the first scale and the first pixel range are fixed, the actual geographical range encompassed by the stable region is also fixed.

[0368] When the actual geographical range encompassed by the stable zone is fixed, the time required for the electronic device 100 to move outside the stable zone is related to the speed of the electronic device 100.

[0369] In some embodiments, if the user is driving, the electronic device 100 operates at a relatively high speed and can move outside the stable zone in a short time. In this case, the secondary processor needs to frequently retrieve map resources from the first shared memory, render map resources and navigation route data, and refresh and display map images, which undoubtedly increases the power consumption of the electronic device 100.

[0370] In some embodiments, if the user is walking, the electronic device 100 moves slowly and takes a long time to move outside the stable zone. Consequently, the auxiliary processor needs a long interval to refresh and display the map image, and the user cannot obtain navigation information ahead in a timely manner.

[0371] To ensure that the auxiliary processor can refresh the map image at fixed intervals, the auxiliary processor can set a first interval, which can be the expected duration for the electronic device 100 to move outside the stable area. By implementing this method, regardless of the speed of the electronic device 100, the auxiliary processor can refresh the map image once at the first interval, thus avoiding situations where the interval between map image refreshes by the auxiliary processor is too long or too short.

[0372] In some embodiments, when the auxiliary processor displays a map image, it can detect the speed of the electronic device 100 and dynamically adjust the scale of the map image displayed by the auxiliary processor based on the speed of the electronic device 100 and a first duration. The first pixel range is fixed; the larger the scale of the map image, the larger the geographical area that the map image can display; the smaller the scale of the map image, the smaller the geographical area that the map image can display.

[0373] Figures 9A-9C A schematic diagram is shown of a set of auxiliary processors adjusting the scale of a map image.

[0374] For example, when a slowdown in the speed of electronic device 100 is detected, such as Figure 9A and Figure 9B As shown, the secondary processor can reduce the scale of the displayed map image to narrow the geographical area that the map image can display, thus avoiding the need for the secondary processor to refresh the displayed map image at long intervals. For example... Figure 9BAs shown, the auxiliary processor displays a map image 9101, a location marker 9102 for the electronic device 100, an isometric circle 9103, a historical track 9104, a navigation route 9105, a scale icon 9106, and a GPS signal indicator 9107. The scale icon 9106 indicates that the auxiliary processor is displaying the map image 9101, historical track 9104, and navigation route 9105 at a second scale. The second scale is 1cm:100m, meaning that a pixel distance of 1cm can represent an actual physical distance of 100m, or a pixel distance of 1mm can represent an actual physical distance of 10000mm.

[0375] Conversely, when the speed of the electronic device 100 is detected to increase, such as Figure 9A and Figure 9C As shown, the auxiliary processor can increase the scale of the map image to expand the geographical area that the map image can display, preventing the electronic device 100 from exceeding the geographical area that the map image can display due to excessive speed. For example... Figure 9C As shown, the auxiliary processor displays a map image 9201, a location marker 9203 for the electronic device 100, an isometric circle 9204, a historical trajectory 9205, a navigation route 9206, and a scale icon 9207. The scale icon 9207 indicates that the auxiliary processor is displaying the map image 9201, the historical trajectory 9205, and the navigation route 9206 at a third scale. The third scale is 1cm:300m, meaning that a pixel distance of 1cm can represent an actual physical distance of 300m, or a pixel distance of 1mm can represent an actual physical distance of 30,000mm.

[0376] Based on this, the following section describes how the auxiliary processor adjusts the scale of the map image displayed by the auxiliary processor based on the speed of the electronic device 100 and the first duration.

[0377] Figure 10 A schematic flowchart of a method for adjusting the scale of a map image displayed by an auxiliary processor based on the speed of an electronic device 100 is shown.

[0378] S1001, the auxiliary processor displays the map image at a first scale.

[0379] The first scale can be a preset scale. After the main processor goes to sleep, the auxiliary processor can obtain the first scale and display the map image based on it. This reduces the time it takes for the auxiliary processor to calculate the first scale for displaying the map image, thus speeding up the display of the map image on the screen.

[0380] Optionally, the auxiliary processor may also determine the first scale based on the speed of the electronic device 100, and then display the map image based on the first scale.

[0381] S1002, the auxiliary processor obtains the speed of electronic device 100.

[0382] For example, the auxiliary processor can determine the position of the electronic device 100 based on GPS data, and then determine the speed v of the electronic device 100 based on the change in the position of the electronic device 100 and the time difference corresponding to the change in the position of the electronic device 100.

[0383] Optionally, the auxiliary processor can use a moving average algorithm to smooth the speed of the electronic device 100, eliminate abnormal speed values, and avoid frequent changes in the scale calculated by the auxiliary processor due to sudden changes in the speed of the electronic device 100.

[0384] S1003, the auxiliary processor determines the actual scale based on the speed of electronic device 100 and the first duration.

[0385] For example, the auxiliary processor can multiply the speed v of the electronic device 100 by the first duration t to obtain the actual travel distance S. Then, the auxiliary processor calculates the ratio between the expected pixel distance P and the actual travel distance S to obtain the actual scale. Here, the expected pixel distance P can be the minimum pixel distance between the center point of the first pixel range and the edge of the first pixel range, or it can be the maximum pixel distance between the center point of the first pixel range and the edge of the first pixel range, or it can be the pixel distance between the center point of the first pixel range and any point on the edge of the first pixel range.

[0386] S1004, The auxiliary processor determines whether the actual scale is the same as the first scale.

[0387] After obtaining the actual scale, the auxiliary processor can determine whether the actual scale is the same as the first scale.

[0388] If the actual scale is determined to be the same as the first scale, the auxiliary processor can continue to display the map image at the first scale, i.e., execute S1005.

[0389] If the actual scale is determined to be different from the first scale, the auxiliary processor can display the map image at the actual scale, i.e., execute S1006.

[0390] S1005, the auxiliary processor continues to display the map image at the first scale.

[0391] If the actual scale is determined to be the same as the first scale, the auxiliary processor can continue to display the map image at the first scale.

[0392] S1006, the auxiliary processor displays the map image at the actual scale.

[0393] If the actual scale is determined to be different from the first scale, the auxiliary processor can display the map image at the actual scale.

[0394] Optionally, the actual scale can be larger than the first scale, or the actual scale can be smaller than the first scale.

[0395] For example, when the actual scale is larger than the first scale, the auxiliary processor can display... Figure 9C The map image shown.

[0396] For example, when the actual scale is smaller than the first scale, the auxiliary processor can display... Figure 9B The map image shown.

[0397] Implementation Figure 10 The method shown allows the auxiliary processor to dynamically switch the scale of the displayed map image based on the speed of the electronic device, which can avoid the situation where the interval between refreshing the displayed map image by the auxiliary processor is too long or too short.

[0398] In other embodiments, the speed of the electronic device 100 is not a fixed value, and the actual scale calculated by the coprocessor is not a fixed value. The coprocessor needs to constantly adjust the scale of the displayed map image, which also increases the power consumption of the electronic device 100.

[0399] To avoid the situation where the auxiliary processor constantly adjusts the scale of the displayed map image due to the real-time changes in the speed of the electronic device 100, the auxiliary processor can acquire multiple preset scales and determine one preset scale as the target scale based on the actual scale, and display the map image based on the target scale.

[0400] Next, we will explain how the auxiliary processor determines a preset scale as the target scale from multiple preset scales based on the actual scale.

[0401] For example, multiple preset scales may include scale 1 and scale 2, where scale 1 is smaller than scale 2. After obtaining the actual scale, the auxiliary processor can determine the size relationship between the actual scale and scale 1 and scale 2.

[0402] If the actual scale is less than or equal to scale 1, the auxiliary processor can use scale 1 as the target scale.

[0403] If the actual scale is greater than scale 1 but less than scale 2, the auxiliary processor can use scale 1 as the target scale, or the auxiliary processor can use scale 2 as the target scale, or the auxiliary processor can use the actual scale that is closer to either scale 1 or scale 2 as the target scale.

[0404] If the actual scale is greater than or equal to scale 2, the auxiliary processor can use scale 2 as the target scale.

[0405] In other embodiments, the auxiliary processor may also directly determine a preset scale as the target scale from a plurality of preset scales based on the speed of the electronic device 100.

[0406] For example, multiple preset scales may include scale 1 and scale 2, where scale 1 corresponds to speed 1, scale 2 corresponds to speed 2, scale 1 is smaller than scale 2, and speed 1 is smaller than speed 2.

[0407] After acquiring the speed of electronic device 100, the auxiliary processor can determine the relationship between the speed of electronic device 100 and scale 1 and scale 2.

[0408] If the speed of electronic device 100 is less than or equal to speed 1, the coprocessor can use scale 1 as the target scale.

[0409] If the speed of electronic device 100 is greater than speed 1 but less than speed 2, the auxiliary processor can use scale 1 as the target scale, or the auxiliary processor can use scale 2 as the target scale, or the auxiliary processor can use the scale corresponding to a preset speed of electronic device 100 that is closer to speed 1 or speed 2 as the target scale.

[0410] If the speed of electronic device 100 is greater than or equal to speed 2, the coprocessor can use scale 2 as the target scale.

[0411] It should be noted that the preset scales are not limited to scale 1 and scale 2; multiple preset scales may include other scales as well, and this application does not limit this.

[0412] Scenario 5: After entering the first mode, the coprocessor can cache map resources.

[0413] Based on the description of Scenario 2, after the main processor goes into sleep mode, it can send the address of the map resource in the first memory space to the auxiliary processor. When the auxiliary processor needs to refresh the displayed map image, it can obtain the map resource of a preset geographical area centered on the current location of the electronic device 100 based on the storage address of the map resource in the first memory space, and display the map image of the preset geographical area centered on the current location of the electronic device 100 based on the map resource.

[0414] Understandably, the secondary processor retrieves map resources from the primary memory space via the file system. This process takes a long time, which increases the latency of the secondary processor refreshing and displaying the map image.

[0415] To speed up the map image refresh and display speed of the secondary processor, a preset number of map resources can be loaded from the primary memory space into the secondary processor's runtime memory. This way, when the secondary processor needs to refresh the map image, it can directly retrieve map resources from its runtime memory, without needing to retrieve them from the primary memory space in real time. The speed at which the secondary processor retrieves map resources from its runtime memory is faster than from the primary memory space, thus accelerating the map resource retrieval process and reducing the latency of the secondary processor refreshing and displaying the map image.

[0416] Next, we will explain how the secondary processor loads a preset number of map resources into its running memory.

[0417] It is understood that the map resources stored in the first memory space can be multiple tile data, including multiple tile data belonging to the navigation route and multiple tile data not belonging to the navigation route. A preset number of map resources includes a first number of tile data and a second number of tile data, wherein the first number of tile data includes at least one tile data on the navigation route, and the second number of tile data includes at least one tile data adjacent to the first number of tile data.

[0418] Step 1: The auxiliary processor retrieves the first number of tile data from the first memory space.

[0419] The auxiliary processor can sequentially traverse multiple locations along the navigation route from the starting position, loading the first number of tile data traversed by the navigation route in turn.

[0420] For example, the first quantity can be 1. The secondary processor can load one tile of data belonging to the navigation route into the secondary processor's runtime memory at a time.

[0421] Figure 11 This diagram illustrates multiple tile data acquired by the main processor and the tile data traversed by the navigation route.

[0422] from Figure 11 As can be seen, the navigation route passes through tile data 2, tile data 3, tile data 7, tile data 11, and tile data 12.

[0423] Next, we will explain how the coprocessor loads tile data 2 into the coprocessor's running memory.

[0424] For example, the auxiliary processor can obtain the latitude and longitude of position a in the navigation route and convert the latitude and longitude of position a into coordinates (x1, y1) in the Spherical Mercator projection coordinate system. The origin of the Spherical Mercator projection coordinate system is the intersection of the Prime Meridian and the equator. The X-axis of the Spherical Mercator projection coordinate system is parallel to the equator and the positive direction of the X-axis points eastward. The Y-axis of the Spherical Mercator projection coordinate system is parallel to the meridian and the positive direction of the Y-axis points northward.

[0425] The auxiliary processor can determine the tile data number where position a is located based on formulas (1) and (2).

[0426] tile_x1 = floor(x1 / (2πR / 2^z)) (Formula 1) tile_y1 = floor(y1 / (2πR / 2^z)) (Formula 2) In formulas (1) and (2), the floor function represents the floor function, 2πR / 2^z represents the width of a tile data, R represents the Earth's radius, and z represents the scale of the map image currently displayed by the coprocessor. X1 represents the abscissa of location a in the Mercator projection coordinate system, and y1 represents the ordinate of location a in the Mercator projection coordinate system. The units of x1 and y1 are meters. Based on formulas (1) and (2), the tile data where location a is located can be represented as (tile_x1, tile_y1).

[0427] After obtaining the tile number of position a, the auxiliary processor can save the tile number of position a.

[0428] Optionally, the auxiliary processor can store the tile number of the tile data at position a in a tile number list. The tile number list can be a hash table, which includes a key and a value. The key can be the tile number of the tile data at position a, and the value can be the storage address of the tile data at position a in the first memory space.

[0429] After obtaining the tile number of the location a, the auxiliary processor can continue to traverse the next location point adjacent to location a on the navigation route and obtain the tile number of the next location point adjacent to location a.

[0430] For example, the secondary processor can obtain the tile number of the tile data located at position b. After obtaining the tile number of the tile data located at position b, the secondary processor can determine whether the tile number of the tile data located at position b is the same as the tile number of the tile data located at position a. If it is determined that the tile number of the tile data located at position b is the same as the tile number of the tile data located at position a, it means that the tile data located at position b and the tile data located at position a are the same tile data. The secondary processor does not need to save the tile number of the tile data located at position b, thus avoiding the situation where the secondary processor repeatedly loads the same tile data into the secondary processor's running memory.

[0431] Similarly, the auxiliary processor can obtain the tile data numbers of multiple locations along the navigation route. For example, the tile data numbers of locations a, b, c, d, e, f, g, h, i, j, k, and l.

[0432] After obtaining the tile data numbers of multiple locations along the navigation route, the auxiliary processor can determine whether the tile data numbers of multiple locations along the route are the same, and only one copy of the tile data numbers is retained if they are the same.

[0433] For example, the auxiliary processor can determine that the tile data at position a, position b, and position c are the same; the tile data at position e, position f, and position g are the same; the tile data at position h, position i, and position k are the same; and the tile data at position l are the same. The auxiliary processor can also save the tile data at positions a, e, h, and j.

[0434] According to the above method, the tile number list includes the correspondence between the tile number of position a and the storage address of the tile data of position a in the first memory space, the correspondence between the tile number of position d and the storage address of the tile data of position d in the first memory space, the correspondence between the tile number of position e and the storage address of the tile data of position e in the first memory space, the correspondence between the tile number of position h and the storage address of the tile data of position h in the first memory space, and the correspondence between the tile number of position j and the storage address of the tile data of position j in the first memory space.

[0435] After obtaining the list of tile numbers, the auxiliary processor can load the first number of tile data from the list of tile numbers at a time.

[0436] For example, the first quantity can be 1, and the auxiliary processor can first load and store the tile data 2 into the auxiliary processor's running memory.

[0437] Step 2: The auxiliary processor then retrieves a second number of tile data from the first memory space. The second number of tile data includes at least one tile data adjacent to the first number of tile data.

[0438] The second quantity is related to the number of tile data that the display area used to display the map image can display.

[0439] Optionally, the second number of tile data may include four tile data adjacent to each tile data in the navigation route, in the top, bottom, left, and right.

[0440] For example, if the tile data on the navigation route is numbered (tile_x1, tile_y1), then the tile data adjacent to the left of the tile data on the navigation route could be numbered (tile_x1-1, tile_y1), the tile data adjacent to the right of the tile data on the navigation route could be numbered (tile_x1+1, tile_y1), the tile data adjacent above the tile data on the navigation route could be numbered (tile_x1, tile_y1+1), and the tile data adjacent below the tile data on the navigation route could be numbered (tile_x1, tile_y1-1). After obtaining the numbers of these four tile data, the auxiliary processor can obtain the storage address of these four tile data numbers in the first memory space based on the numbers of these 54 tile data, and load and store these four tile data into the auxiliary processor's running memory based on the storage address of these four tile data numbers in the first memory space.

[0441] Optionally, the secondary processor can determine whether any one or more of the four tile data sets have been loaded. If the secondary processor has loaded any one or more of the four tile data sets, it may not need to load them again. If the secondary processor has not loaded any one or more of the four tile data sets, it may load and store them in its own RAM. This avoids the secondary processor repeatedly loading the same tile data into its own RAM.

[0442] Optionally, after loading and storing the tile data into the coprocessor's running memory, the coprocessor can save the number of the loaded tile data in the loaded tile list to record the tile data that the coprocessor has loaded.

[0443] For example, following the method shown in steps 1 and 2, the coprocessor can first load tile data 2, and then load tile data 1, tile data 3, and tile data 6, and save the numbers of tile data 1, tile data 2, tile data 3, and tile data 6 in the loaded tile list.

[0444] Because the secondary processor has limited memory, it cannot load all tile data into its memory at once.

[0445] When the electronic device 100 moves to the edge of the already loaded tile data, the coprocessor can begin loading other tile data in accordance with the methods shown in steps 1 and 2.

[0446] For example, when the electronic device 100 moves to the edge of tile data 2, such as when the electronic device 100 moves to position c, the auxiliary processor can start loading tile data 3. When the auxiliary processor loads tile data 3, if it determines that tile data 3 and tile data 2 have already been loaded, the auxiliary processor can then load tile data 4 and tile data 7, and save the numbers of tile data 4 and tile data 7 in the list of loaded tiles.

[0447] For example, when electronic device 100 moves to the edge of tile data 3, such as when electronic device 100 moves to position d, the auxiliary processor can start loading tile data 7. When the auxiliary processor loads tile data 7, if it determines that tile data 6, tile data 7, and tile data 3 have already been loaded, the auxiliary processor can then load tile data 8 and tile data 11, and save the numbers of tile data 8 and tile data 11 in the list of loaded tiles.

[0448] Similarly, the auxiliary processor can preload a preset number of tile data, which can improve the speed at which the auxiliary processor refreshes the map image and also improve the utilization rate of the auxiliary processor's operating space.

[0449] Scenario 6: After the electronic device 100 moves outside the stable area, the auxiliary processor can first display at least one transitional map image, and then display the target map image (or the second map image). This can avoid the map image displayed by the auxiliary processor from changing abruptly, thereby improving the user's visual experience.

[0450] The following describes how the electronic device 100 determines at least one transition map image.

[0451] 1. The auxiliary processor obtains the first geographic range of the first map image to be displayed.

[0452] 2. The auxiliary processor obtains the movement direction of the map image.

[0453] In some embodiments, the direction of movement of the map image can be determined based on the direction of movement of the electronic device 100.

[0454] In other embodiments, the direction of movement of the map image can also be determined based on user operation. For example, a user can long-press and drag the map image displayed on the electronic device 100 along a preset direction to view map images of other geographical areas.

[0455] For example, the auxiliary processor can acquire multiple locations where a finger touches the display screen in chronological order to determine the direction of map movement.

[0456] For example, the coprocessor can obtain the starting position of the finger touching the display screen and at least one position point after the starting position to determine the direction of map movement.

[0457] 3. The auxiliary processor obtains a second map resource from the first map resource based on the movement direction of the map image and the first geographical range of the first map image. The second map resource may be a map resource that includes a region with a third geographical range.

[0458] Optionally, the third geographic extent can be three times the size of the first geographic extent.

[0459] For example, if the first geographical area is a rectangle with a length of 500 meters and a width of 500 meters, the third geographical area can be a rectangle with a length of 1000 meters and a width of 1000 meters.

[0460] For example, when the map image moves from right to left, from top to bottom, or from upper right to lower left, it is considered that the map image moves from upper right to lower left. When the map image moves from upper right to lower left, the auxiliary processor can acquire map resources for the first geographical area above the first map image, the first geographical area to the right of the first map image, and the first geographical area in the upper right corner of the first map image. The second map resources may include map resources for the first geographical area above the first map image, the first geographical area to the right of the first map image, and the first geographical area in the upper right corner of the first map image.

[0461] For example, when the map image moves from left to right, from bottom to top, or from lower left to upper right, it is considered that the map image moves from lower left to upper right. When the map image moves from lower left to upper right, the auxiliary processor can acquire map resources for the first geographical area on the right side of the first map image, the first geographical area below the first map image, and the first geographical area in the lower left corner of the first map image. The second map resources may include map resources for the first geographical area on the right side of the first map image, the first geographical area below the first map image, and the first geographical area in the lower left corner of the first map image.

[0462] In this way, if the direction of movement of the map image is determined based on the user's operation, the dragging distance of the finger on the map image will not exceed the display area of ​​the first map image. Therefore, when the second map resource is obtained in the manner shown in step 3, there will be no blank content displayed.

[0463] 4. The auxiliary processor renders the third map image based on the second map resource and the map resource used to display the first map image.

[0464] 5. The auxiliary processor displays at least one transition map image from the third map image in sequence, based on the direction of movement of the map image, the number of times the third map image is moved, and the distance of movement between two adjacent transition map images.

[0465] The number of times the third map image is moved is related to the number of at least one transition map image. For example, if the number of at least one transition map image is 10, then the number of times the third map image is moved is 10.

[0466] The auxiliary processor can determine the movement distance between two adjacent transitional map images based on the actual geographical distance between the center point of the first map image and the center point of the target map image, and the number of times the third map image has been moved. Then, based on the movement distance between the two adjacent transitional map images, the auxiliary processor moves the third map image in the direction of map image movement, and sequentially displays at least one transitional map image from the third map image. Finally, the auxiliary processor displays the target map image.

[0467] For example, if the actual geographical distance between the center point of the first map image and the center point of the target map image is 500 meters, and the third map image moves 10 times, then the moving distance between two adjacent transition map images is 50 meters. The auxiliary processor can move the third map image by 50 meters each time based on the direction of map image movement. After displaying 10 transition map images, the auxiliary processor displays the target map image.

[0468] Figure 12 A schematic diagram is shown of a third map image and at least one transition map image acquired by a coprocessor.

[0469] For example, such as Figure 12 As shown, the third map image obtained by the auxiliary processor may include map image a, map image b, map image c, and map image d in the third map image. Map image c in the third map image is the same as the first map image, and map image d in the third map image may be the target map image.

[0470] Figure 12 The arrows in the image can indicate the direction of movement of the map image. Figure 12 The dashed box in the diagram represents at least one transition map image, such as three transition map images. The coprocessor can display the three transition map images sequentially until map image c in the third map image is displayed.

[0471] By implementing this method, on the one hand, the auxiliary processor can pre-acquire map resources for the third geographical area to obtain a third map image. When it is necessary to move the map image, the auxiliary processor can display at least one transitional map image based on the third map image before displaying the target map image. This avoids abrupt changes in the map image displayed by the auxiliary processor, thus improving the user's visual experience. On the other hand, the third geographical area is larger than the first geographical area; for example, the third geographical area can be three times the size of the first geographical area. If the direction of map image movement is determined based on user operation, the dragging distance of the finger on the map image will not exceed the display area of ​​the second map image. Therefore, the geographical area of ​​the map image displayed by the auxiliary processor will not exceed the third geographical area, and there will be no blank content displayed.

[0472] Figure 13 A flowchart illustrating a map display method is shown.

[0473] S1301. The electronic device displays a first map image and a location icon, including a first geographical range, in a first area of ​​the display screen. The location icon is used to indicate the first geographical location of the electronic device. The location icon is located at a first position on the display screen, and the first position is used to indicate the first geographical location.

[0474] S1302, the electronic device moves a location icon from a first location to a second location, the second location indicating a second geographic location of the electronic device is different from the first geographic location, wherein the electronic device continuously displays a first map image during the process of moving the location icon from the first location to the second location.

[0475] S1303, in response to the second location satisfying the first condition, the electronic device displays a second map image and a location icon in the first area, which includes a second geographical range different from the first geographical range. The location icon is located in a third position on the display screen, which is different from the second position, and the third geographical location indicated by the third position is the same as the second geographical location.

[0476] The first geographical extent and the second geographical extent refer to the geographical area defined by a tangible or intangible boundary on the Earth's surface.

[0477] This method allows an electronic device to display location icons when showing a map image. These icons indicate the device's geographical location, and their position on the screen changes as the device's location changes. The device can determine whether to refresh the map image based on whether the location icon's position meets a first condition. If the location icon's position meets the first condition, the device refreshes the map image; otherwise, it does not. This solves the problem of the device needing to refresh the map image in real-time based on changes in the device's location, thus reducing power consumption.

[0478] This method can be applied to both main processors and secondary processors.

[0479] For example, the first region could be Figure 7A The first map image can be the display area where the navigation map 5101 is shown. Figure 7A The navigation map 5101 shown can have the first location as... Figure 7A The location indicated is the display position of location identifier 5102. The second location could be... Figure 7CThe location indicated is where location marker 5102 is displayed. The second map image can be... Figure 7D The navigation map shown is 6101. The third location could be... Figure 7D The location indicated is the display location of the location identifier 6102.

[0480] In one possible implementation, the first region includes the second region, and the second location satisfies the first condition, including: the second location is located within the edge region of the second region.

[0481] Optionally, the size of the second region can be larger than the size of the first region, or the size of the second region can be smaller than the size of the first region.

[0482] Optionally, the edge region of the second region can refer to the edge line of the second region, or it can refer to a pixel region with a certain width (e.g., 1 mm) including the edge line of the second region.

[0483] Optionally, the electronic device can obtain the position coordinates of the second location and the position coordinates of the edge region of the second region. If the position coordinates of the second location and the position coordinates of the edge region of the second region coincide, the electronic device can determine that the second location is located within the edge region of the second region.

[0484] For example, the second region could be Figures 7A-7D The first pixel range shown (or rather) Figure 7A The area enclosed by the dashed line shown.

[0485] In one possible implementation, the first position is located in the second region but not within the edge region of the second region. The third position is located in the second region but not within the edge region of the second region.

[0486] In conjunction with the first aspect, in one possible implementation, the method further includes: when the location icon moves from a first location to a second location on the display screen, displaying a first movement trajectory on the display screen with the first location as the starting point and the second location as the ending point; in response to the second location satisfying a first condition, displaying a second movement trajectory on the display screen with a fourth location as the starting point and a third location as the ending point; wherein the fourth location indicates the same fourth geographical location as the second geographical location, and the shape of the first movement trajectory is the same as the shape of the second movement trajectory.

[0487] Optionally, in response to the second position satisfying the first condition, the electronic device stops displaying the first movement trajectory.

[0488] For example, the first movement trajectory could be Figure 7C The shown movement trajectory is 5190. The second movement trajectory can be... Figure 7D The movement trajectory shown is 5190.

[0489] In one possible implementation, the second geographic extent is determined based on a first scale, the pixel range included in the first region, and the second geographic location, wherein the first scale is the scale of the second map image.

[0490] In one possible implementation, the geographical extent of the map image in the second region is determined based on a first scale, the pixel range included in the second region, and a second geographical location, wherein the first scale is the scale of the map image in the second region.

[0491] The first scale can be a preset scale, or it can be determined based on the moving speed of the electronic device and a first duration, wherein the first duration is a preset duration. The first duration can be a preset duration for the electronic device to move from the center of the second region to the edge region of the second region.

[0492] By implementing this method, if the moving speed of the electronic device increases, the scale of the electronic device can be increased; if the moving speed of the electronic device decreases, the scale of the electronic device can be decreased. This ensures that the electronic device can refresh and display the map image at fixed intervals, avoiding the problem of the electronic device refreshing and displaying the map image at too long or too short intervals.

[0493] In one possible implementation, the electronic device includes multiple preset scales, including a first scale; the method further includes: a first processor determining a real-time scale based on the moving speed of the electronic device and a first duration; and the first processor determining the first scale from the multiple preset scales based on the real-time scale.

[0494] To avoid the situation where the auxiliary processor constantly adjusts the scale of the displayed map image due to the real-time changes in the speed of the electronic device, the electronic device can acquire multiple preset scales and determine one preset scale as the target scale based on the actual scale, and display the map image based on the target scale.

[0495] Optionally, the electronic device may switch the scale after the first condition is met at the second position. Alternatively, the electronic device may switch the scale before the first condition is met at the second position.

[0496] In one possible implementation, after displaying a first map image including a first geographical area and a location icon in a first area of ​​the display screen, the method further includes: saving the first map image; and continuously displaying the first map image while moving the location icon from the first location to a second location on the display screen, specifically including: continuously displaying the first map image based on the saved first map image while moving the location icon from the first location to the second location on the display screen.

[0497] By implementing this method, before the first condition is met at the second position, the electronic device can save the first map image without having to refresh the displayed map image. The first map image is then continuously displayed based on the saved first map image, eliminating the need for real-time rendering of the first map image based on its image resources, thus reducing the power consumption of the electronic device.

[0498] In one possible implementation, the method further includes: when a first map image including a first geographical range and a location icon are displayed in a first area of ​​the display screen, a second marker and / or a first navigation route are displayed in the first area of ​​the display screen, the second marker being used to indicate a second scale, the first geographical range being determined based on the second scale, the pixel range included in the first area, and the first geographical location, the second scale being the scale of the first map image; a first processor storing the second marker and / or the first navigation route; during the process of moving the location icon from the first location to a second location on the display screen, the second marker is displayed based on the stored second marker, and / or the first navigation route is displayed based on the stored first navigation route.

[0499] By implementing this method, before the second location meets the first condition, the electronic device can save the second marker and / or the first navigation route because there is no need to refresh the displayed map image, the display scale, or the navigation route. The second marker and / or the first navigation route can be continuously displayed based on the saved second marker and / or the first navigation route, without the need to render the second marker and / or the first navigation route in real time, which can reduce the power consumption of the electronic device.

[0500] In one possible implementation, the method further includes: during the display of a first map image in a first area of ​​the display screen, acquiring a third map image including a third geographical range, the third geographical range including the first geographical range and a second geographical range; in response to a second location satisfying a first condition, displaying a second map image and a location icon in the first area including a second geographical range different from the first geographical range, specifically including: in response to a second location satisfying the first condition, displaying at least one transition map image in the first area based on the third map image; after displaying at least one transition map image based on the third map image, displaying a second map image and a location icon in the first area including a second geographical range different from the first geographical range.

[0501] Optionally, the third map image can be determined based on the direction of movement of the electronic device and the size of the first area.

[0502] By implementing this method, the electronic device can display at least one transitional map image before switching to the second map image, thus avoiding abrupt changes in the content of the map image displayed by the electronic device and improving the user's visual experience.

[0503] For example, regarding how electronic devices determine third-party map images, one can refer to... Figure 12 The examples are described below.

[0504] In one possible implementation, the method further includes: during the process of displaying a first map image in a first area of ​​the display screen, acquiring map resources for displaying a second map image; before displaying the second map image, the method further includes: determining a second map image based on the map resources for displaying the second map image.

[0505] Optionally, the map resources for the second map image can be determined based on the movement direction of the electronic device.

[0506] By implementing this method, before refreshing and displaying the map image, the electronic device can first obtain the map resources of the second map image to be displayed and store them in the running memory of the electronic device. When the electronic device needs to display the second map image, it can directly obtain the map resources of the second map image from the running memory of the electronic device, without having to obtain the map resources of the second map image from the file system through I / O operations. This can speed up the speed at which the electronic device obtains the map resources of the second map image, and thus speed up the speed at which the electronic device displays the second map image.

[0507] For example, regarding how an electronic device determines the map resources of a second map image, one can refer to... Figure 11 The examples are described below.

[0508] In one possible implementation, a first map image and location icon including a first geographical area are displayed in a first area of ​​the display screen, specifically including: after the electronic device enters a first mode, the first map image and location icon including a first geographical area are displayed in the first area of ​​the display screen.

[0509] In one possible implementation, the first mode includes any of the following: always-on display mode, power-saving mode, and lock screen mode.

[0510] In some embodiments, this application provides an electronic device for implementing map display. The electronic device includes a display screen and a first processor, wherein the first processor is configured to: display a first map image including a first geographical range and a location icon in a first area of ​​the display screen, the location icon indicating the current first geographical location of the electronic device, the location icon being located at a first position on the display screen, the first position indicating the first geographical location; move the location icon from the first position to a second position on the display screen, the second position indicating a second geographical location of the electronic device different from the first geographical location, wherein the first map image is continuously displayed during the process of moving the location icon from the first position to the second position on the display screen; and, in response to the second position satisfying a first condition, display a second map image including a second geographical range different from the first geographical range and a location icon in the first area, the location icon being located at a third position on the display screen, the third position being different from the second position, and the third position indicating a third geographical location the same as the second geographical location.

[0511] Optionally, the first processor can be either the main processor or a secondary processor.

[0512] Optionally, the electronic device may not include a display screen.

[0513] In one possible implementation, the first region includes the second region, and the second location satisfies the first condition, including: the second location is located within the edge region of the second region.

[0514] In one possible implementation, the first position is located in the second region but not in the edge region of the second region.

[0515] In one possible implementation, the method further includes: when the first processor moves the location icon from the first location to the second location on the display screen, the first processor controls the display screen to display a first movement trajectory starting from the first location and ending at the second location; in response to the second location satisfying a first condition, the first processor controls the display screen to display a second movement trajectory starting from the fourth location and ending at the third location; wherein the fourth location indicates the same fourth geographical location as the second geographical location, and the shape of the first movement trajectory is the same as the shape of the second movement trajectory.

[0516] In one possible implementation, the second geographic extent is determined based on a first scale, the pixel range included in the first region, and the second geographic location, wherein the first scale is the scale of the second map image.

[0517] In one possible implementation, the geographical extent of the map image in the second region is determined based on a first scale, the pixel range included in the second region, and a second geographical location, wherein the first scale is the scale of the map image in the second region.

[0518] In one possible implementation, the first scale is determined based on the moving speed of the electronic device and a first duration, wherein the first duration is a preset duration.

[0519] In one possible implementation, the electronic device includes multiple preset scales, including a first scale; the first processor is further configured to: determine a real-time scale based on the moving speed of the electronic device and a first duration; and determine the first scale from the multiple preset scales based on the real-time scale.

[0520] In one possible implementation, the first processor is further configured to: save the first map image after the display screen shows a first map image including a first geographical range and a location icon in a first area; specifically, the first processor is configured to: continuously display the first map image based on the saved first map image during the process of moving the location icon from a first location to a second location on the display screen.

[0521] In one possible implementation, the first processor is further configured to: when a first map image including a first geographical range and a location icon are displayed in a first area of ​​the display screen, display a second marker and / or a first navigation route in the first area of ​​the display screen, the second marker being used to indicate a second scale, the first geographical range being determined based on the second scale, the pixel range included in the first area, and the first geographical location, the second scale being the scale of the first map image; save the second marker and / or the first navigation route; during the process of moving the location icon from the first location to a second location on the display screen, display the second marker based on the saved second marker, and / or, display the first navigation route based on the saved first navigation route.

[0522] In one possible implementation, the first processor is specifically configured to: display a first map image and location icons including a first geographical area in a first area of ​​the display screen after the electronic device enters a first mode.

[0523] In one possible implementation, the electronic device further includes a second processor, which is configured to: display a first navigation interface on a screen before the electronic device enters the first mode, the first navigation interface including location icons and a map image, wherein the position of the location icons in the first navigation interface remains unchanged on the screen, and the content of the map image in the first navigation interface changes as the position of the electronic device changes; and enter a sleep state or a power-off state after the electronic device enters the first mode.

[0524] For example, the first processor can be a secondary processor, and the second processor can be a primary processor.

[0525] In one possible implementation, the second processor is further configured to: store the first map resource in the first memory space before the second processor enters a sleep state or a power-off state; send the storage address of the first map resource in the first memory space to the first processor; the first processor is further configured to: after the second processor enters a sleep state, obtain map resources for displaying the first map image based on the first geographical location and the storage address of the first map resource in the first memory space; and determine the first map image based on the map resources for displaying the first map image.

[0526] By implementing this method, after the second processor enters a sleep state or a power-off state, the first processor can obtain the map resources of the map image based on the storage address of the first map resources sent by the second processor in the first memory space, thereby enabling the first processor to display the map image.

[0527] For example, you can refer to Figure 4B and Figure 6B The examples are described below.

[0528] In one possible implementation, the first processor is further configured to: record the driving route and / or marked position of the electronic device in the first mode after the electronic device enters the first mode; the second processor is further configured to: obtain the driving route and / or marked position from the first processor after the first processor wakes up the second processor.

[0529] By implementing this method, after waking up the second processor, the second processor can continue to display the driving route and / or marker positions based on the driving route and / or marker positions obtained from the first processor, making it convenient for users to view the complete driving trajectory.

[0530] For example, you can refer to Figure 6C The examples are described below.

[0531] In one possible implementation, the power consumption of the first processor is lower than that of the second processor.

[0532] In one possible implementation, the first mode includes any of the following: always-on display mode, power-saving mode, and lock screen mode.

[0533] In one possible implementation, the first processor is further configured to: acquire a third map image including a third geographical range during the display of a first map image on the screen, the third geographical range including the first geographical range and the second geographical range; the first processor is specifically configured to: display at least one transitional map image in a first region based on the third map image in response to a second location satisfying a first condition; and after displaying at least one transitional map image based on the third map image, display a second map image and a location icon in the first region including a second geographical range different from the first geographical range.

[0534] In one possible implementation, the first processor is further configured to: acquire map resources for displaying a second map image during the process of displaying a first map image in a first area of ​​the display screen; and determine a second map image based on the map resources for displaying the second map image.

[0535] In one possible implementation, the first processor is an MCU.

[0536] In one possible implementation, the second processor is an AP.

[0537] This application provides an electronic device, which includes: one or more processors and one or more memories, wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, they perform the steps in the various method embodiments described above.

[0538] This application also provides a computer-readable storage medium including instructions that, when executed by a processor, can implement the steps in the various method embodiments described above.

[0539] This application also provides a computer program product, including a computing program, which, when executed by a processor, can implement the steps in the various method embodiments described above.

[0540] This application provides a chip system including one or more processors, wherein the one or more processors include a first processor, which is configured to execute code instructions to implement the steps of any method embodiment of this application. The chip system may be a single chip or a chip module composed of multiple chips.

[0541] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A map display method, the method being applied to an electronic device, characterized in that, The method includes: A first map image including a first geographical area and a location icon are displayed in a first area of ​​the display screen. The location icon is used to indicate the first geographical location of the electronic device. The location icon is located at a first position on the display screen, and the first position is used to indicate the first geographical location. The location icon is moved from the first location to a second location on the display screen, the second location indicating a second geographical location of the electronic device that is different from the first geographical location, wherein the first map image is continuously displayed during the process of moving the location icon from the first location to the second location on the display screen; In response to the second location satisfying the first condition, a second map image including a second geographical range different from the first geographical range and the location icon are displayed in the first area. The location icon is located in a third position on the display screen, which is different from the second position, and the third geographical location indicated by the third position is the same as the second geographical location.

2. The method according to claim 1, characterized in that, The first region includes the second region, and the second location satisfies the first condition, including: The second position is located within the edge region of the second region.

3. The method according to claim 2, characterized in that, The first location is located in the second region but not within the edge region of the second region.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: When the location icon moves from the first location to the second location on the display screen, a first movement trajectory starting from the first location and ending at the second location is displayed on the display screen. In response to the second position satisfying the first condition, a second movement trajectory starting from the fourth position and ending at the third position is displayed on the display screen; Wherein, the fourth location indicates the same fourth geographical location as the second geographical location, and the shape of the first movement trajectory is the same as the shape of the second movement trajectory.

5. The method according to any one of claims 1-4, wherein the second geographic range is determined based on a first scale, the pixel range included in the first region, and the second geographic location, wherein the first scale is the scale of the second map image.

6. The method according to claim 2 or 3, characterized in that, The geographical extent of the map image in the second region is determined based on a first scale, the pixel range included in the second region, and the second geographical location. The first scale is the scale of the map image in the second region.

7. The method according to claim 5 or 6, characterized in that, The first scale is determined based on the moving speed of the electronic device and a first duration, wherein the first duration is a preset duration.

8. The method according to claim 7, characterized in that, The electronic device includes multiple preset scales, the multiple preset scales including the first scale; the method further includes: Based on the moving speed of the electronic device and the first duration, a real-time scale is determined; Based on the real-time scale, the first scale is determined from the plurality of preset scales.

9. The method according to any one of claims 1-8, characterized in that, After displaying a first map image and location icons including a first geographical area in a first area of ​​the display screen, the method further includes: Save the first map image; The step of continuously displaying the first map image during the process of moving the location icon from the first location to the second location on the display screen specifically includes: During the process of moving the location icon from the first location to the second location on the display screen, the first map image is continuously displayed based on the saved first map image.

10. The method according to any one of claims 1-8, characterized in that, The method further includes: When the first map image including the first geographical range and the location icon are displayed in the first area of ​​the display screen, a second marker and / or a first navigation route are displayed in the first area of ​​the display screen. The second marker is used to indicate 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 location. The second scale is the scale of the first map image. Save the second marker and / or the first navigation route; During the process of moving the location icon from the first location to the second location on 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, characterized in that, The method further includes: During the process of displaying the first map image in the first area of ​​the display screen, a third map image including a third geographical range is acquired, wherein the third geographical range includes the first geographical range and the second geographical range; The response that the second location satisfies the first condition, displaying a second map image including a second geographical range different from the first geographical range and the location icon in the first area, specifically includes: In response to the second location satisfying the first condition, at least one transitional map image is displayed in the first area based on the third map image; After displaying the at least one transitional map image based on the third map image, a second map image including a second geographical range different from the first geographical range and the location icon are displayed in the first region.

12. The method according to any one of claims 1-11, characterized in that, The method further includes: During the process of displaying the first map image in the first area of ​​the display screen, map resources for displaying the second map image are acquired; Before displaying the second map image, the method further includes: The second map image is determined based on the map resources used to display the second map image.

13. The method according to any one of claims 1-12, characterized in that, The display of a first map image and location icons, including a first geographical area, in a first area of ​​the display screen specifically includes: After the electronic device enters the first mode, the first map image including the first geographical area and the location icon are displayed in the first area of ​​the display screen.

14. The method according to claim 13, characterized in that, The first mode includes any one of the following: always-on display mode, power-saving mode, and lock screen mode.

15. An electronic device for displaying maps, characterized in that, The electronic device includes a display screen and a first processor, wherein the first processor is used for: A first map image including a first geographical area and a location icon are displayed in a first area of ​​the display screen. The location icon is used to indicate the first geographical location of the electronic device. The location icon is located at a first position on the display screen, and the first position is used to indicate the first geographical location. The location icon is moved from the first location to a second location on the display screen, the second location indicating a second geographical location of the electronic device that is different from the first geographical location, wherein the first map image is continuously displayed during the process of moving the location icon from the first location to the second location on the display screen; In response to the second location satisfying the first condition, a second map image including a second geographical range different from the first geographical range and the location icon are displayed in the first area. The location icon is located in a third position on the display screen, which is different from the second position, and the third geographical location indicated by the third position is the same as the second geographical location.

16. The electronic device according to claim 15, characterized in that, The first region includes the second region, and the second location satisfies the first condition, including: The second position is located within the edge region of the second region.

17. The electronic device according to claim 16, characterized in that, The first location is located in the second region but not within the edge region of the second region.

18. The electronic device according to any one of claims 15-17, characterized in that, The first processor is also used for: When the location icon moves from the first location to the second location on the display screen, a first movement trajectory starting from the first location and ending at the second location is displayed on the display screen. In response to the second position satisfying the first condition, a second movement trajectory starting from the fourth position and ending at the third position is displayed on the display screen; Wherein, the fourth location indicates the same fourth geographical location as the second geographical location, and the shape of the first movement trajectory is the same as the shape of the second movement trajectory.

19. The electronic device according to any one of claims 15-18, characterized in that, The second geographical range is determined based on the first scale, the pixel range included in the first region, and the second geographical location, wherein the first scale is the scale of the second map image.

20. The electronic device according to claim 14 or 15, characterized in that, The geographical extent of the map image in the second region is determined based on a first scale, the pixel range included in the second region, and the second geographical location. The first scale is the scale of the map image in the second region.

21. The electronic device according to claim 19 or 20, characterized in that, The first scale is determined based on the moving speed of the electronic device and a first duration, wherein the first duration is a preset duration.

22. The electronic device according to claim 21, characterized in that, The electronic device includes multiple preset scales, and the multiple preset scales include the first scale. The first processor is also used for: Based on the moving speed of the electronic device and the first duration, a real-time scale is determined; Based on the real-time scale, the first scale is determined from the plurality of preset scales.

23. The electronic device according to any one of claims 15-22, characterized in that, The first processor is also used for: After the display screen shows a first map image and location icons covering a first geographical area in the first region, Save the first map image; The first processor is specifically used for: During the process of moving the location icon from the first location to the second location on the display screen, the first map image is continuously displayed based on the saved first map image.

24. The electronic device according to any one of claims 15-22, characterized in that, The first processor is further configured to: When the first map image including the first geographical range and the location icon are displayed in the first area of ​​the display screen, a second marker and / or a first navigation route are displayed in the first area of ​​the display screen. The second marker is used to indicate 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 location. The second scale is the scale of the first map image. Save the second marker and / or the first navigation route; During the process of moving the location icon from the first location to the second location on 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.

25. The electronic device according to any one of claims 15-24, characterized in that, The first processor is used for: After the electronic device enters the first mode, the first map image including the first geographical area and the location icon are displayed in the first area of ​​the display screen.

26. The electronic device according to claim 25, characterized in that, The electronic device further includes a second processor, the second processor being used for: Before the electronic device enters the first mode, a first navigation interface is displayed on the screen. The first navigation interface includes location icons and a map image. The position of the location icons in the first navigation interface remains unchanged on the screen, and the content of the map image in the first navigation interface changes as the position of the electronic device changes. After the electronic device enters the first mode, it enters a sleep state or a power-off state.

27. The electronic device according to claim 26, characterized in that, The second processor is also used for: Before the second processor enters a sleep state or a power-off state, the first map resources are stored in the first memory space; The storage address of the first map resource in the first memory space is sent to the first processor; The first processor is further configured to: After the second processor enters a sleep state, map resources for displaying the first map image are obtained based on the first geographical location and the storage address of the first map resources in the first memory space. The first map image is determined based on the map resources used to display the first map image.

28. The electronic device according to claim 26 or 27, characterized in that, The first processor is further configured to: after the electronic device enters the first mode, record the travel route and / or marked position of the electronic device in the first mode; The second processor is further configured to: obtain the driving route and / or marked location from the first processor after the first processor wakes up the second processor.

29. The electronic device according to any one of claims 26-28, characterized in that, The power consumption of the first processor is lower than that of the second processor.

30. The electronic device according to any one of claims 25-29, characterized in that, The first mode includes any one of the following: always-on display mode, power-saving mode, and lock screen mode.

31. The electronic device according to any one of claims 15-30, characterized in that, The first processor is further configured to: during the process of displaying the first map image on the display screen, acquire a third map image including a third geographical range, wherein the third geographical range includes the first geographical range and the second geographical range; The first processor is specifically used for: In response to the second location satisfying the first condition, at least one transitional map image is displayed in the first area based on the third map image; After displaying the at least one transitional map image based on the third map image, a second map image including a second geographical range different from the first geographical range and the location icon are displayed in the first region.

32. The electronic device according to any one of claims 15-31, characterized in that, The first processor is an MCU.

33. The electronic device according to any one of claims 26-32, characterized in that, The second processor is an AP.

34. A computer-readable storage medium, characterized in that, Includes instructions that, when executed by a processor, implement the map display method as described in any one of claims 1-14.

35. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the map display method as described in any one of claims 1-14.

36. A chip system, characterized in that, The system includes one or more processors, including a first processor, which is configured to execute the code instructions to implement the map display method as described in any one of claims 1-14.