Map display method and device and computer program product

By using independent display methods of raster tile maps and point of interest information on electronic devices with limited resources, the problems of complex rendering of vector maps and high computing resources are solved, and fast rendering and a good user experience are achieved.

CN120196695APending Publication Date: 2025-06-24BEIJING AUTONAVI YUNMAP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510128153.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-27
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

On electronic devices with limited resources, the rendering of vector maps is more complex and consumes more computing resources, resulting in slow rendering speed and affecting the user experience.

Method used

By obtaining multiple raster tile maps within a preset range centered on the target position, a raster map layer is obtained, and the first raster map layer in the raster map layer is displayed based on the target position and the display screen size of the electronic device. At the same time, information about the points of interest is obtained and drawn on the first raster map layer to realize independent display of the raster map and the points of interest.

Benefits of technology

This method makes the display of raster maps and points of interest independent of each other, does not affect the display effect of points of interest, and does not require a large amount of computing resources. It has a fast rendering speed and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196695A_ABST
    Figure CN120196695A_ABST
Patent Text Reader

Abstract

The invention provides a map display method and device and a computer program product, and the method comprises the steps: obtaining a plurality of grid tile maps in a preset range with a target position as the center, and obtaining a grid map layer; acquiring information of a plurality of interest points in a preset range with the target position as the center, wherein the information of the interest points comprises display information and position information of the interest points; displaying a first target grid map layer in the grid map layers on the basis of the target position and the size of a display screen of the electronic equipment; and based on the position information of the interest points, drawing display information of the corresponding interest points on the first grid map layer. In this way, the display information of the grid map layer and the display information of the interest points can be mutually independent. And when the base map of the map is operated, the display effect of the interest points is not influenced. Moreover, the method does not involve a large amount of calculation, does not need to consume more calculation resources, is higher in rendering speed, and does not affect the use experience of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of map rendering, and particularly relates to a map display method, device, and computer program product. Background Art

[0002] With the development of technology, many software applications have the function of displaying maps. For example, navigation software can display maps to provide navigation functions to users; life service software can display maps for users to view locations of interest; food delivery software can display maps for users to view the locations of riders or merchants. It can be seen that there is a need for map display in many applications.

[0003] To improve the display effect, maps can be displayed in the form of vector graphics. A map displayed in vector graphics can also be referred to as a vector map. In a vector map, vector objects can be used to represent geographical features. Each vector object is associated with attribute information. Through vector objects and the attribute information of vector objects, vector maps can display complex geographical features. Moreover, by adjusting information such as the position of vector objects, dynamic display of map images can be achieved. Compared with traditional raster maps, vector maps have obvious advantages in terms of interactivity, dynamics, and zoom performance, and have a better display effect.

[0004] However, the inventors of this application found that although the display effect of vector maps is good, the rendering of vector maps is relatively complex. Specifically, when rendering a vector map, it is necessary to draw the geographical objects corresponding to each vector object according to the attribute information of each vector object. In this process, a large amount of calculation is involved, and more resources need to be consumed. Therefore, for some application scenarios with insufficient resources, such as the application scenario of displaying map images on devices such as smart watches, it may take a long time to complete the rendering of map images, affecting the user experience. Summary of the Invention

[0005] This application provides a map display method, device, and computer program product, aiming to achieve the display effect of vector maps with fewer resources. The technical solutions are as follows.

[0006] In a first aspect, this application provides a map display method, which is characterized in that it is applied to an electronic device and includes:

[0007] Obtain multiple raster tile maps within a preset range centered on a target location to obtain a raster map layer;

[0008] Obtain information of multiple points of interest within a preset range centered on the target location, where the information of the points of interest includes the display information and position information of the points of interest;

[0009] Based on the target position and the display screen size of the electronic device, display the first grid map layer in the grid map layers;

[0010] Based on the location information of the point of interest, draw the display information of the corresponding point of interest onto the first grid map layer.

[0011] In a second aspect, the present application provides a map display device, the device comprising:

[0012] An acquisition unit, configured to acquire multiple grid tile maps within a preset range centered on the target position, to obtain a grid map layer;

[0013] The acquisition unit is further configured to acquire information of multiple points of interest within a preset range centered on the target position, where the information of the point of interest includes the display information and the location information of the point of interest;

[0014] A display unit, configured to display the first grid map layer in the grid map layers based on the target position and the display screen size of the electronic device;

[0015] The display unit is further configured to draw the display information of the corresponding point of interest onto the first grid map layer based on the location information of the point of interest.

[0016] In a third aspect, the present application provides a device, the device comprising: a processor, the processor being coupled to a memory, and at least one computer program instruction being stored in the memory, the at least one computer program instruction being loaded and executed by the processor so that the device implements the method according to any one of the foregoing first aspects.

[0017] In a fourth aspect, the present application provides a computer-readable storage medium, where at least one instruction is stored in the storage medium, and when the instruction runs on a computer, the computer is caused to execute the method according to any one of the foregoing first aspects.

[0018] In a fifth aspect, the present application provides a computer program product, characterized in that the computer program product includes one or more computer program instructions, and when the computer program instructions are loaded and run by a computer, the computer is caused to execute the method according to any one of the foregoing first aspects.

[0019] Thus, the present application has the following beneficial effects:

[0020] By applying the map display method provided in the embodiments of the present application, multiple raster tile maps within a preset range centered on the target location can be obtained to form a raster map layer. Moreover, information on multiple points of interest within a preset range centered on the target location can be obtained. The information on the points of interest includes the display information and location information of the points of interest. Furthermore, based on the target location and the display screen size of the electronic device, the first raster map layer in the raster map layer can be displayed. Subsequently, based on the location information of the points of interest, the corresponding display information of the points of interest can be drawn onto the first raster map layer. In this way, the raster map layer and the display information of the points of interest can be made independent of each other. When operating on the map base (such as panning, rotating, and zooming), the display effect of the points of interest will not be affected. Moreover, this method does not involve a large amount of calculation, does not require much computing resources, has a fast rendering speed, and does not affect the user experience. Description of the Drawings

[0021] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0022] Figure 2 It is a schematic diagram of another application scenario provided by an embodiment of the present application;

[0023] Figure 3 It is a flowchart of the map display method provided by an embodiment of the present application;

[0024] Figure 4 It is a schematic diagram of a target area provided by an embodiment of the present application;

[0025] Figure 5 It is a flowchart of a method for synchronously adjusting the map layer and display information provided by an embodiment of the present application;

[0026] Figure 6a It is a schematic diagram of the positional change relationship of the display information in the raster map layer provided by an embodiment of the present application;

[0027] Figure 6b It is another schematic diagram of the positional change relationship of the display information in the raster map layer provided by an embodiment of the present application;

[0028] Figure 7 It is a schematic diagram of the structure of a map display device provided by an embodiment of the present application;

[0029] Figure 8 It is a schematic diagram of the structure of a device provided by an embodiment of the present application. Detailed Embodiments

[0030] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0031] Some term concepts related to the embodiments of the present application are explained below.

[0032] (1) Vector map.

[0033] A vector map describes various features of the Earth's surface through geometric objects such as points, lines, and polygons. These geometric objects can not only precisely define the position, shape, and size but also attach attribute information such as name, type, height, etc., making the vector map more flexible and efficient in expressing complex spatial relationships. However, when rendering a vector map, each vector object's corresponding geographical object needs to be drawn separately according to the attribute information of each vector object. A large amount of calculation is involved in this process, consuming relatively more resources.

[0034] (2) Point of Interest.

[0035] A Point of Interest (POI for short) usually refers to a place or location that can attract users' attention. For example, stores, restaurants, hospitals, schools, parks, lakes, railway stations, airports, etc. Each POI generally contains some basic information, such as name, address, coordinates (latitude and longitude), category labels, etc., but is not limited to this.

[0036] (3) Raster Map.

[0037] A raster map refers to a map displayed in the form of a bitmap or other non-vector graphics. Different from a vector map, displaying a raster map does not require determining the information of vector objects and requires less resources. However, the geographical information in a raster map is fixed in the image, with poor flexibility. If other content is further drawn on the raster map, the raster map can also be called a raster map layer.

[0038] (4) Tile MAP.

[0039] A tile map refers to a map divided from a complete raster map. The size of a tile map can be fixed. For example, the length and width of a tile map can both be 256 pixels. When a raster map needs to be displayed, multiple tile maps can be obtained and stitched together to form the raster map to be displayed.

[0040] In the process of implementing the present application, the inventors found that compared with traditional raster maps, vector maps have obvious advantages in terms of interactivity, dynamics, and zoom performance. For example, each geographical object in a vector map is a relatively independent vector object, enabling users to interact with a single geographical object (such as clicking on the geographical object). Another example is that the information of points of interest in a vector map exists in the form of attribute information of vector objects. If the user triggers a rotation operation on the vector map, the information of the points of interest in the vector map can be adaptively rotated in the reverse direction for the convenience of the user to view. Still another example is that since a vector map is rendered based on vector objects, it can remain clear even at a relatively large magnification factor and will not be affected by resolution as a raster map Figure 1 would be.

[0041] When displaying a vector map, it is necessary to draw the vector map according to the attribute information of each vector object in the vector map. However, the number of vector objects in a vector map is often large, resulting in a large amount of calculation required for drawing the vector map. Therefore, the display of a vector map consumes a relatively large amount of computing resources. For example, for devices such as personal computers (PCs) or mobile phones, the vector map can be drawn by a graphics processing unit (GPU). Or, in some other scenarios, the vector map can also be rendered by a central processing unit (CPU) or other processors.

[0042] However, for electronic devices with limited resources, it may not be suitable to display vector maps. For example, for wearable electronic devices such as smart watches, due to their limited volume, the amount of resources they can provide is small and cannot meet the requirements for rendering vector maps, or it takes a relatively long time to complete the rendering of vector maps. Therefore, a smart watch may not be able to display a vector map, or may not be able to refresh and display the vector map at a fast speed, affecting the user experience.

[0043] To solve the above technical problems, the inventors of the present application tried to continue using raster maps for the display of map images. However, in the process of implementing this solution, it was found that there are the following pain points in the display effect of raster maps:

[0044] See Figure 1 , which is a schematic diagram of a scenario of an application scenario provided by an embodiment of the present application. In the Figure 1 shown application scenario, there is a smart watch 10. The smart watch 10 can display a raster map 11 to the user. A road and a building are shown in the raster map 11. And, the raster map also includes the text "Road 111" for labeling the road and the text "House 112" for labeling the building. In Figure 1In the application scenario shown, the orientations of the text "Road 111" and the text "House 112" in the grid map 11 are vertically upward.

[0045] If a user using the smartwatch 10 triggers a rotation operation on the smartwatch 10 to control the map displayed on the smartwatch 10 to rotate 90° clockwise, the smartwatch can display the grid map 12 to the user. Since the grid map displays the map in a non-vector image manner and the positions of the various elements in the grid map are fixed, the positions between the geographical objects in the grid map and the text used to label the geographical objects are also fixed. Therefore, in the grid map 12, the orientations of the text "Road 111" used to label the road and the text "House 112" used to label the building will also change with the user's operation. In Figure 2 the application scenario shown, the orientations of the text "Road 111" and the text "House 112" are horizontally to the left. Obviously, the text horizontally to the left is not convenient for the user to read and affects the user experience.

[0046] To solve the above problems, the embodiments of the present application provide a map display method, device, and computer program product. Among them, the map display method can be applied to a map display device, and the map display device can run on devices with relatively limited resources such as smartwatches. For the convenience of introduction, in the embodiments of the present application, the map display device running on an electronic device is mainly used as an example for introduction. This electronic device can also be referred to as a target device. Among them, the target device can be, for example, a wearable device such as a smartwatch or a smart bracelet. The map display device can be, for example, a module in the navigation software of the smartwatch for rendering map images.

[0047] First, an exemplary application scenario will be introduced.

[0048] See Figure 2 , which is a schematic diagram of a scenario of the application scenario provided by the embodiments of the present application. In Figure 2 the implementation manner shown, it includes a target device 21, a server 22, and a server 23.

[0049] Among them, a map display application 211 runs on the target device 21. The server 22 is used to provide a grid tile map service, and the map display application 211 can interact with the server 22 through the wireless transmission module of the target device 21, so as to obtain the grid tile map through the server 22. The server 23 is used to provide a point of interest service, and the map display application 211 can interact with the server 23 through the wireless transmission module of the target device 21, so as to obtain the information of the point of interest through the server 23. According to the grid tile map and the information of the point of interest, the map display application 211 can render the map image and display the map image using the display screen of the target device 21.

[0050] In Figure 2 the corresponding implementation, the target device 21 can be a smart watch. The server 22 can be a software platform running on a server or a server cluster. The server 23 can be a software platform running on a server or a server cluster. The server 22 and the server 23 can be the same server. For example, a map service platform can provide two interfaces, respectively for providing raster tile map services and point-of-interest services. Correspondingly, these two interfaces can be regarded as Figure 2 the server 22 and the server 23 in the implementation shown.

[0051] The following will introduce in detail the map display method provided by the embodiments of the present application with reference to the accompanying drawings of the specification.

[0052] See Figure 3 , which is a schematic flowchart of a map display method provided by an embodiment of the present application. Exemplarily, this method can be applied to a watch. Specifically, Figure 3 the map display method shown specifically includes the following steps.

[0053] S301: Obtain multiple raster tile maps within a preset range centered on the target location to obtain a raster map layer.

[0054] It can be understood that the target location can be the current location of the watch or a location selected by the user on the target device, and of course, it is not limited thereto.

[0055] If it is necessary to display the map image of the target location, the map display application can first obtain the corresponding raster tile map according to the target location and obtain a raster map layer based on the raster tile map. Among them, the raster tile map matching the target location is the raster tile map within the preset range around the target location. The raster map layer is obtained by splicing multiple raster maps.

[0056] By splicing multiple raster tile maps, a raster map layer can be obtained, and the raster map layer is used to present the geographical features around the target location. That is to say, the map display application can center on the target location and obtain multiple raster tile maps within the preset range around the target location. Among them, the target location can be the location where the target device is currently located or the location selected by the user of the target device on the target device.

[0057] Optionally, the map display application can obtain a raster tile map from the server. Among them, the raster tile map can be pre-stored on the server, for example, it can be stored on a server or a server cluster. If it is necessary to display a map image on the target device, the map display application can send a raster tile map acquisition request to the server through the target device. The raster tile map acquisition request can include the target location. According to the raster tile map acquisition request, the server can obtain multiple raster tile maps centered on the target location from the database and send them to the target device. Optionally, the raster tile map acquisition request can also include relevant information for describing a preset range, so that the server can select multiple raster tile maps within the preset range centered on the target location.

[0058] In the embodiments of the present application, a raster tile map refers to a raster map that does not contain information with orientation requirements. Information with orientation requirements means information that needs to be displayed in a certain orientation. In the embodiments of the present application, on the one hand, information with orientation can be displayed in the form of a vector map to achieve the display effect of a vector map, and on the other hand, information without orientation can be displayed in a non-vector map manner to save rendering resources. Therefore, the part of the map image that needs to achieve the display effect of a vector map and the part that does not need to achieve the display effect of a vector map can be displayed through different layers. For example, the above-mentioned information with orientation can include the display information of points of interest, and the above-mentioned information without orientation can include the raster map layer.

[0059] Correspondingly, when setting the raster tile map, the "information with orientation" and the "information without orientation" can be split from the actual map image. The information without orientation is sorted into the information in the raster map, thereby obtaining the raster tile map. Since the information in the raster tile map has no orientation, no matter what operation the user triggers on the raster tile map, the direction and position of the raster tile map and the information displayed in the raster tile map will not affect the user's viewing.

[0060] To achieve this effect, the raster tile map can include information without orientation such as lines, shapes, and colors, and does not include information with orientation. Among them, information with orientation can include, for example, text information, traffic sign information, and other information. If the information with orientation is fixed on the raster tile map, the orientation of this information will rotate together with the map layer, which is not conducive to the user's viewing.

[0061] In the embodiments of the present application, the raster map layer in the map image is obtained by stitching multiple raster tile maps. To ensure the display effect of the map image, the raster tile maps to be obtained need to fully cover the display area corresponding to the map image after stitching. That is, the total area of the multiple raster tile maps obtained needs to be greater than the area of the map image displayed on the electronic device. And the area of the map image displayed on the electronic device is greater than the size of the display screen of the electronic device.

[0062] Specifically, the target number of raster tile maps to be obtained can be determined according to the area of a single raster tile map and a pre-configured target area. For example, assume that the size of each raster tile map is 256 pixels * 256 pixels, and a 1024 pixels * 1024 pixels area is divided on the display screen of the target device for displaying the map image. Then, when obtaining the raster tile maps, (1024 * 1024) / (256 * 256) = 16 raster tile maps can be obtained.

[0063] It can be understood that the target number can be calculated in real time according to actual needs or pre-calculated. Preferably, the target number can be pre-calculated. In this way, there is no need to repeatedly calculate how many raster tile maps need to be obtained, reducing the calculation amount and saving resources.

[0064] In some application scenarios, the user may operate on the displayed map image, such as triggering operations like panning and rotating the map image. During this process, the map display application may need to display parts of the map image for which the raster tile maps have not been obtained yet. Thus, to normally display the map image, the map display application can obtain the raster tile maps again and re-render the map image. However, obtaining the raster tile maps and re-rendering the image both consume time and affect the user experience.

[0065] To solve this problem, more raster tile maps can be obtained in advance. Correspondingly, the area of the obtained raster map layer can be greater than the area of the actually displayed map image. That is to say, before displaying the map image, a raster map layer with a larger area can be rendered and a part of the raster map layer (such as the following first raster map layer and second raster map layer) can be displayed. In this way, even if the user triggers operations like panning and rotating on the displayed map image, the corresponding parts can still be found and displayed from the already rendered raster map layer.

[0066] Specifically, before obtaining the raster tile map, the target quantity can be calculated first according to the target area and the area of a single raster tile map. Among them, the target area is the area of the raster map layer that is preset and needs to be rendered. And the target area is larger than the area of the display screen of the electronic device. The target quantity can be equal to the quotient of the target area divided by the area of a single raster tile map. When obtaining the raster tile map, the map display application can obtain the target quantity of raster tile maps according to the target position. Optionally, the target area can be rectangular, and the side length of the target area is not less than the length of the longest diagonal of the map image to be displayed. Specifically, the raster map layer can be square, and one side length of the raster map layer is not less than the longest diagonal of the display screen.

[0067] The map display application can obtain the target quantity before obtaining the raster tile map each time. Among them, obtaining the target quantity can refer to the map display application calculating the target quantity according to the target area and the area of a single raster tile map, or can refer to obtaining the pre-stored target quantity from the program.

[0068] This will be described with reference to the accompanying drawings of the specification. Refer to Figure 4 , which is a schematic diagram of the target area provided by an embodiment of the present application. In Figure 4 the application scenario shown, the target device displays a circular map image 410 with a radius of a and an area of πa 2 . Then, in order to completely cover the map image 410, the raster tile map can be obtained according to the square area 420 with a side length of 2a and an area of 4a 2 . However, if the raster tile map is obtained only according to the area 420, if the user triggers a panning operation in the up and down direction or the left and right direction, a new raster tile map needs to be obtained. For this reason, the raster tile map can be obtained according to the square area 430 with a side length of and an area of 8a 2 . Correspondingly, the above target area can be 8a 2 . Optionally, Figure 4 the units of each physical quantity in

[0069] After obtaining multiple raster tile maps, multiple raster tile maps can be spliced to obtain the raster map layer. Specifically, multiple raster tile maps can be spliced according to the positional relationship between the raster tile maps to obtain the raster map layer.

[0070] S302: Obtain information of multiple points of interest within a preset range centered on the target position.

[0071] Before drawing the display information of the point of interest, it is first necessary to obtain the information of multiple points of interest within a preset range centered on the target location. Among them, the point of interest can be a geographical object for which information needs to be dynamically displayed, such as a building, a lake, a river, etc.

[0072] In the embodiment of the present application, the information of the point of interest may include the display information of the point of interest and the location information of the point of interest. Among them, the display information of the point of interest refers to the information of the point of interest that needs to be displayed on the map image. For example, the display information of the point of interest may include information such as the name of the point of interest and the identifier of the point of interest. By viewing the display information of the point of interest, the user viewing the map image can know the relevant information of the point of interest. The location information of the point of interest represents the geographical coordinates of the point of interest and is used to determine the relative position of the display information of the point of interest in the raster map layer.

[0073] Optionally, the map display application can obtain the information of the point of interest through the server. Specifically, similar to the raster tile map, the information of the point of interest can be pre-stored in the server, for example, it can be stored in a server or a server cluster. If it is necessary to display the map image on the target device, the map display application can send a request for obtaining the information of the point of interest to the server through the target device. The request for obtaining the information of the point of interest may include the target location. According to the request for obtaining the information of the point of interest, the server can obtain the information of multiple points of interest that match the target location from the database and send it to the target device.

[0074] S303: Display the first raster map layer in the raster map layer based on the target location and the display screen size of the electronic device.

[0075] In an actual application scenario, the area of the raster map layer obtained by stitching raster tiles may be larger than the area of the display screen of the electronic device. For this reason, a part of the raster map layer can be displayed on the display screen of the electronic device. Specifically, the first raster map layer in the raster map layer can be displayed according to the target location and the display screen size of the electronic device.

[0076] Among them, the center of the first raster map layer can be the target location. The size of the first raster map layer matches the size of the display screen. Specifically, the area of the first raster map layer can match the size of the display screen. The geographical area corresponding to the first raster map layer, after being scaled according to the corresponding scale, has an area that matches the area of the display screen.

[0077] It should be noted that there may not be a clear sequence between the two steps of "step S302" and "step S303". Specifically, the map display application can first display the first raster map layer and then obtain the information of the point of interest, or first obtain the information of the point of interest and then display the first raster map layer, or can also obtain the information of the point of interest and display the first raster map layer synchronously. The embodiments of the present application do not limit this.

[0078] S304: Based on the location information of the point of interest, draw the display information of the corresponding point of interest on the first raster map layer.

[0079] In order to display the display information of the point of interest on the basis of the first raster map layer, the display information of the point of interest can be drawn on the first raster map layer. That is, based on the real geographical location information, the point of interest is drawn on the first raster map layer.

[0080] Specifically, in order to draw the location information of the point of interest on the first raster map layer, the drawing position of the display information of the point of interest can be determined first. The drawing position of the display information of the point of interest is the reflection of the position of the point of interest on the raster map layer. That is to say, the drawing position of the display information is the same as the position of the point of interest corresponding to the display information in the raster map layer. On the first raster map layer, the drawing position of the point of interest matches the real geographical location of the point of interest. Optionally, this drawing position can also be referred to as the anchor point position.

[0081] Next, the drawing direction of the display information of the point of interest can be determined.

[0082] Optionally, the drawing direction of the display information can be determined according to the electronic device. For example, the positive direction of the display screen of the electronic device can be determined, and the positive direction of the display screen can be used as the drawing direction of the display information. That is to say, the display information of the point of interest can be drawn on the drawing position of the first raster map layer in the same direction as the positive direction of the display screen. Among them, the positive direction of the display screen can refer to the positive direction when the user browses the display screen. In this way, the drawing direction of the display information matches the positive direction when the user browses the display screen, which is convenient for the user to browse the display information of the point of interest.

[0083] As introduced above, the electronic device can be used for navigation. In some possible implementation manners, it is necessary to adjust the direction of the map layer according to the direction of the navigation route to be displayed. For example, in some navigation scenarios, the electronic device displays the moving direction of the electronic device. To facilitate the user's viewing, it may be necessary to adaptively move the map layer so that the moving direction of the electronic device is the same as the positive direction of the display screen. For example. To facilitate the user's viewing, the direction in which the user browses the display screen can be taken as the positive direction. If the navigation route is in the left direction of the display screen when the user browses the display screen at this time, the navigation route and the grid map layer are rotated clockwise by 90 degrees at the same time to make the direction of the navigation route consistent with the direction in which the user browses the display screen.

[0084] That is to say, when navigating along the established navigation route, the electronic device can obtain a guiding instruction, which is used to adjust the direction of the navigation route to the positive direction of the display screen. Among them, the guiding instruction can be triggered before navigation or during navigation. For example, the user can trigger the guiding instruction during the process of using the electronic device for navigation, so as to rotate the grid map layer according to the current traveling direction.

[0085] During the navigation process, after obtaining the guiding instruction, the direction of the navigation route to be displayed can be obtained. And it is judged whether the direction of the navigation route is the same as the positive direction of the display screen. The direction of the navigation route can be the direction from the starting point of the navigation route to the end point of the navigation route, or the current moving direction of the electronic device during the navigation along the navigation route.

[0086] If the direction of the navigation route is the same as the positive direction of the electronic device, the route guiding element associated with the navigation route can be drawn on the first grid map layer. Among them, the route guiding element is vector data, and can include at least one of elements such as pinpoints, turning arrows, and route guiding surfaces, etc., which is used to guide the user of the electronic device to move.

[0087] If the direction of the navigation route is different from the positive direction, the rotation transformation matrix corresponding to rotating the direction of the navigation route to the positive direction of the display screen can be determined, and the grid map layer is rotated through the rotation transformation matrix. Then, based on the target position and the rotated grid map layer, the second grid map layer is determined. By displaying the second grid map layer, the grid map layer can be displayed in the positive direction of the display screen. And, the route guiding element can also be drawn on the second grid map layer according to the positive direction of the display screen, and the information of the point of interest can be drawn on the second grid map layer. For the detailed introduction of rotating the route guiding element, reference can be made to the following Figure 3 The process of adjusting the displayed information in the illustrated embodiment is not described in detail here.

[0088] Specifically, the center point of the second grid map layer can be determined, information of multiple points of interest within a preset range of the center point can be obtained, and then the display information of the points of interest is drawn on the second grid map layer according to the position information of the points of interest. Moreover, the drawing direction of the display information of the points of interest is the same as the positive direction of the display screen. In this way, the grid map layer can be adjusted according to the direction of the navigation route, and the direction of the display information of the points of interest can be adaptively adjusted.

[0089] Optionally, if there is an overlap between the above-mentioned second grid map layer and the first grid map layer, then there may be one or more points of interest existing in both the first grid map layer and the second grid map layer. In this implementation manner, the drawing position of the points of interest can be adjusted according to the rotation transformation matrix, and the display information of the points of interest can be rotated, without the need to re-obtain the information of the points of interest. In this way, obtaining duplicate information of the points of interest is avoided, and the efficiency of map rendering is improved.

[0090] In the above process, the display information of the points of interest is drawn according to the position information of the points of interest. It is equivalent to rendering the points of interest on the first grid map layer in the way of a vector map. In this way, even if the user triggers operations such as zooming and rotating, the display information of the points of interest can be adaptively adjusted in the way of a vector map, achieving the display effect of a vector map. Moreover, the information of the map itself comes from the map layer, and the map layer is obtained by splicing grid tile maps. Therefore, when displaying the map, it is not necessary to render each object in the grid map layer in the way of a vector map. In this way, the grid map layer and the display information of the points of interest can be independent of each other. When operating on the map base map (such as the first grid map), the display effect of the points of interest will not be affected. Moreover, this method does not involve a large amount of calculations, does not require a large amount of computing resources, has a fast rendering speed, and does not affect the user experience. In this way, the workload of map image rendering is reduced, and the dependence on resources is reduced.

[0091] In order to achieve the display effect of a vector map, if the user triggers a moving operation on the map image, the grid map layer and the display information of the points of interest can be synchronously adjusted. The above process will be introduced in detail below with reference to the accompanying drawings of the specification.

[0092] See Figure 5 , which is a schematic flowchart of a method for synchronously adjusting a map layer and display information provided by an embodiment of the present application. This method can be applied to a map display application program. It should be noted that Figure 5 The implementation manner shown is to translate, rotate or scale the display information of the points of interest in the way of a vector. In some other possible implementation manners, the display information of the points of interest can also be redrawn. Optionally, Figure 5The implementation shown determines the drawing position of the point of interest after movement and redraws the display information of the point of interest at the new drawing position.

[0093] Specifically, Figure 5 The method shown specifically includes the following steps.

[0094] S501: In response to the triggered map movement operation, determine the map movement parameters.

[0095] Before synchronously adjusting the raster map layer and the display information of the point of interest, the map display application can first determine the movement mode of the raster map layer. Specifically, after obtaining the map movement operation, the map display can determine the map movement parameters according to the map movement operation. Among them, the map movement operation can be an operation triggered by the user for moving the map displayed on the target device.

[0096] Optionally, the map movement operation can be actively triggered by the user. For example, if the user needs to view the map image of other locations, the user can move the map image on the target device by dragging, pulling, etc. to trigger the map movement operation. Another example is that if the user needs to rotate the map image, the user can rotate the map image on the target device by rotating two fingers, etc. to trigger the map movement operation. Another example is that if the user needs to zoom in to view the map image, the user can trigger the map movement operation on the target device by zooming in with two fingers, etc.

[0097] Or, the map movement operation can also be triggered by the user's behavior.

[0098] Another example is that the map image displayed on the target device needs to be adaptively adjusted as the movement direction changes. Specifically, assume that the traveling direction at time t1 is due north, and at time t2, the traveling direction becomes 15° east of north. Then the map display application rotates the map image counterclockwise by 15° so that the direction 15° east of north of the map displayed on the display screen coincides with the positive direction of the display screen.

[0099] After obtaining the map movement operation, the map movement parameters can be determined according to the map movement operation. The map movement parameters indicate what kind of movement needs to be performed on the map image. According to the map movement parameters, the map layer and the display information of the point of interest can be adaptively adjusted to achieve the operation of adaptively moving the map image according to the map movement operation.

[0100] For the convenience of processing the layer, in Figure 5 the corresponding embodiment, the map movement operation can be split into a translation operation, a rotation operation, and a scaling operation. Correspondingly, the map movement parameters can include translation parameters, rotation parameters, and scaling parameters.

[0101] Among them, the translation parameters are used to describe the translation operation in the map movement operation, and specifically may include the horizontal movement distance and the vertical movement distance. Optionally, the unit of the translation distance may be an image unit such as pixels, or a geographical unit such as meters. The rotation parameter is used to describe the rotation operation in the map movement operation, and specifically may include the rotation angle. The scaling parameter may be used to describe the misplacement movement operation in the map movement operation, indicating the difference between the map image scales before and after scaling, and specifically may include the scaling ratio.

[0102] As can be seen from the previous introduction, if the display mode of the target device is the "movement direction display mode", the map image can be adaptively rotated according to the movement direction of the target device. Specifically, the map display application can first determine the movement direction, and then determine the rotation parameter according to the included angle between the due north direction and the movement direction.

[0103] Specifically, the movement direction can be obtained according to the movement trajectory of the target device. For example, the current position information of the target device and the position information of the target device before a preset time period (such as the position information 1 second ago) can be obtained, and the direction of the position change of the target device within the preset time period can be used as the movement direction of the target device. After determining the movement direction, the angle from the movement direction to the due north direction can be calculated, and the rotation parameter can be determined based on this angle. For example, the angle required to rotate clockwise from the movement direction to the due north direction can be used as the rotation angle in the rotation parameter. Rotating the map image with the due north direction upward counterclockwise by this rotation angle can obtain the map image with the movement direction upward.

[0104] It should be noted that the order of triggering the map movement operation may affect the adaptive adjustment of the subsequent display information. For the convenience of introduction, the following takes the example of first triggering the translation movement operation, then triggering the rotation movement operation, and finally triggering the scaling movement operation. If the order of the map movement operations changes, other methods can be adaptively used to adjust the display information. For example, the values of each element in the transformation matrix and the order of the dot product operations between the transformation matrices can be adaptively adjusted. The specific details are not elaborated here.

[0105] S502: Move the raster map layer according to the map movement parameters, and draw the display information of the points of interest on the moved raster map layer.

[0106] After obtaining the map movement parameters, the display information of the raster map layer and the points of interest can be synchronously adjusted according to the map movement parameters. Specifically, if the map movement parameters include translation parameters, the raster map layer and the display information of the points of interest can be translated respectively according to the translation parameters. If the map movement parameters include rotation parameters, the raster map layer and the display information of the points of interest can be rotated respectively according to the rotation angle indicated by the rotation parameters.

[0107] It can be understood that during the process of moving the map layer, there may be areas not covered by the raster map layer. For example, if the translation distance is too large, the image to be displayed may include areas not covered by the raster map layer. Correspondingly, the map display application can obtain a new raster tile map and update the raster map layer to ensure that the raster map layer can cover the map image to be displayed. Similarly, during the process of moving the display information of the points of interest, there may also be points of interest that have not been obtained. The map display application can obtain new point-of-interest information and draw the display information of the new points of interest.

[0108] First, some implementation methods for moving the raster map layer are introduced.

[0109] If the map movement parameters include translation parameters, the raster map layer can be translated according to the translation indicated by the translation parameters; if the map movement parameters include rotation parameters, the raster map layer can be rotated according to the rotation angle indicated by the rotation parameters; if the map movement parameters include scaling parameters, the raster map layer can be scaled according to the scaling ratio indicated by the scaling parameters. To distinguish the maps displayed on the electronic device before and after the movement, in this embodiment, the raster map layer displayed on the display screen before the movement can be referred to as the first raster map layer, and the raster map layer displayed on the display screen after the movement can be referred to as the second raster map layer.

[0110] Next, the implementation method for moving the display information of the points of interest is introduced.

[0111] When moving the display information of the points of interest, the drawing position of the display information of the points of interest can be determined first, then the drawing direction of the display information of the points of interest can be determined, and finally the display information of the points of interest can be drawn on the second raster map layer according to the drawing position and the drawing direction.

[0112] In some other possible implementation methods, the drawing position of the display information can be described by means of vectors. Specifically, the map movement parameters can be described by a transformation matrix, and the drawing position of the display information can be calculated by multiplying the matrix and the vector.

[0113] Optionally, the drawing position of the display information can be described by a three-dimensional column vector. The three elements of the three-dimensional column vector respectively represent the abscissa, ordinate, and height coordinate of the drawing position. For the convenience of description, the three-dimensional column vector will be referred to as the drawing position vector hereinafter, and the abscissa, ordinate, and height coordinate of the display information will be represented by variables x, y, and z respectively. Optionally, in some implementation manners, the second grid map layer is a two-dimensional layer and there is no height information, and the value of variable z in the drawing position vector can be set to 1 all the time.

[0114] Optionally, if the map movement parameter includes a translation parameter, then the map display application can determine a translation transformation matrix according to the translation parameter; if the map movement parameter includes a rotation parameter, then the map display application can determine a rotation transformation matrix according to the rotation parameter; if the map movement parameter includes a scaling parameter, then the map display application can determine a scaling transformation matrix according to the scaling parameter.

[0115] Among them, the translation transformation matrix is determined according to the translation distance and the rotation distance. The rotation transformation matrix is determined according to the rotation angle, and the scaling transformation matrix is determined according to the ratio of the scales of the map images before and after scaling. The translation transformation matrix, the rotation transformation matrix, and the scaling transformation matrix can be 3*3 matrices. By left-multiplying the transformation matrix by the drawing position vector, the drawing position of the display information after movement can be determined.

[0116] Specifically, the translation transformation matrix, the rotation transformation matrix, and the scaling transformation matrix can be an affine transformation matrix (Affine Transformation Matrix). Optionally, the translation transformation matrix A, the rotation transformation matrix B, and the scaling transformation matrix C can be obtained through the following formula (1).

[0117] Formula (1):

[0118] Among them, Δx corresponds to the horizontal movement distance and represents the translation amount of the display information on the abscissa; Δy corresponds to the vertical movement distance and represents the translation amount of the display information on the ordinate; θ is the rotation angle included in the rotation parameter; k is the ratio of the scales of the map images before and after scaling. Among them, θ can be the angle of counterclockwise rotation.

[0119] For example, if the drawing position vector and the user triggers a translation movement operation, then the drawing position vector D corresponding to the display information after the translation movement operation can be obtained through the following formula (2) ′ .

[0120] Formula (2):

[0121] Among them, x is the abscissa of the drawing position before the translation movement, y is the ordinate of the drawing position before the translation movement, and the drawing position vector The element "1" in the third row of indicates that the drawing position vector is a vector located on the horizontal plane. (x + Δx) is the abscissa of the drawing position after the translation movement operation, and (y + Δy) is the ordinate of the drawing position after the translation movement operation. Regarding the drawing position vector

[0122] below, the details of each element will not be elaborated further.

[0122] For example, if the drawing position vector and the user triggers a rotation movement operation, then the drawing position vector corresponding to the display information after the rotation movement operation can be obtained through the following formula (3)

[0123] Formula (3):

[0124] Among them, (xcosθ - ysinθ) is the abscissa of the drawing position after the rotation movement operation, and (xsinθ + ycosθ) is the ordinate of the drawing position after the rotation movement operation.

[0125] For example, if the drawing position vector and the user triggers a scaling movement operation, then the drawing position vector corresponding to the display information after the scaling movement operation can be obtained through the following formula (4)

[0126] Formula (4):

[0127] Among them, kx is the abscissa of the drawing position after the scaling movement operation, and ky is the ordinate of the drawing position after the scaling movement operation.

[0128] It can be understood that the above formulas (2), (3), and (4) are only examples. In an actual scenario, if the user triggers multiple map movement operations, then the corresponding transformation matrix can be determined according to the map movement operations triggered by the user, and matrix multiplication calculations can be performed in the order of the operations triggered by the user.

[0129] For example, if the drawing position vector the user first triggers a translation movement operation, then triggers a rotation movement operation, and finally triggers a scaling movement operation, then the drawing position vector corresponding to the display information after the map movement operation can be obtained through the following formula (5)

[0130] Formula (5):

[0131]

[0132] To ensure the display effect of the map image, in addition to determining the drawing position of the point of interest, the map display application can also determine the drawing direction of the display information.

[0133] Optionally, the map display application can keep the drawing direction of the display information unchanged relative to the positive direction of the display screen. That is to say, if the drawing direction of the display information of the point of interest is the positive direction of the display screen before the map movement operation, then after the map movement operation, the drawing direction of the display information of the point of interest can still be the positive direction of the display screen.

[0134] Specifically, if the user triggers a rotation movement operation for the raster map layer, such as rotating the map image clockwise by an angle θ. Then the map display application can adaptively rotate the positions of each display information counterclockwise by an angle θ. Correspondingly, in order to keep the drawing direction of the display information unchanged, the drawing direction of the display information can be rotated clockwise by an angle θ.

[0135] Illustrate by way of example. Refer to Figure 6a , which is a schematic diagram showing the relationship of the position change of the display information in the raster map layer provided by the embodiment of the present application. In Figure 6a the application scenario shown, the user first triggers a pan operation on the map image, and then triggers a rotation operation on the map image. Before triggering the pan operation, the map image can include a part of the first raster map layer, and this part is called raster map image 1. The center point of raster map image 1 is point O, and display information is shown at the position corresponding to point A. When rendering raster map image 1, the drawing position of the display information at point A can be represented by the vector .

[0136] After the user triggers a pan movement operation, the display screen of the electronic device can display an image in the raster map layer that is different from raster map image 1. The image displayed by the electronic device can be called raster map image 2. Compared with raster map image 1, the center point of raster map image 2 has moved a certain distance to the lower left from point O to the position of point O ′ . Correspondingly, the drawing position of the display information at point A can be represented by the vector . Taking the raster map layer as a reference, the vector in the first raster map layer corresponds to the vector

[0137] After the user triggers the rotation movement operation, the display screen of the electronic device may display an image in the raster map layer that is partially different from raster map image 1 and raster map image 2. The image displayed by the electronic device may be referred to as raster map image 2. Compared with raster map image 2, raster map image 3 is rotated in a clockwise direction. Accordingly, the drawing position of the display information at point A may still be determined by vector Represents. With the geographic coordinate system as reference, the vector in the raster map image 2 Corresponding to the vector in raster map image 3 Vectors in Raster Map Images 3 is to convert the vectors in raster map image 2 Rotate counterclockwise.

[0138] Taking the geographic coordinate system as reference, the relative relationship between the vectors can be expressed as Figure 6b Before triggering the map movement operation, the position of the display information at point A relative to the origin O can be determined by the vector After the translation operation is triggered, point A moves a distance to the upper left relative to the origin O, and the position changes to point A. ′ , the drawing position of the display information at point A can be determined by the vector After the rotation movement operation is triggered, point A ′ It rotates counterclockwise by a certain angle relative to the origin O, and the position changes to point A. ″ , the drawing position of the display information at point A can be determined by the vector express.

[0139] That is to say, if the user triggers a map moving operation for a map image, the display information of the moving raster map layer and the points of interest can be moved respectively according to the map moving operation. Since the raster map layer does not include information about the direction, moving the raster map layer in a non-vector manner will not affect the display of the information about the direction. As for the display information of the points of interest with a direction, it can be moved in a vector manner to achieve the display effect of the vector diagram. In this way, after moving, rotating and scaling the raster map layer, the display direction of the points of interest can remain unchanged. Therefore, the display information of the points of interest drawn on the raster map layer is independent of the raster map layer. When operating the raster map layer, the display effect of the points of interest will not be affected, and a display effect that is the same or close to that of the vector diagram is obtained. In this way, the display information of the raster map layer and the points of interest can be made independent of each other. Moreover, in this process, there is no need to process the raster map layer using a vector diagram or the like, which can save the resources of the target device.

[0140] Similarly, in addition to the display information of the points of interest, the aforementioned route guiding elements can also adjust the drawing position and drawing direction in the above-mentioned manner.

[0141] For example. Assume that the first grid map layer is the above-mentioned grid map image 2, that is, before receiving the guiding instruction when navigating along the established navigation route, the electronic device displays the grid map image 2. Then after receiving the guiding instruction, it can be determined whether the direction of the navigation route to be displayed is the same as the positive direction of the display screen. Among them, the direction of the navigation route can include the direction from the starting point of the navigation route to the end point of the navigation route, or can also include the direction of the navigation segment to which the target position in the navigation route belongs.

[0142] If the direction of the navigation route to be displayed is the same as the positive direction of the display screen, then the route guiding elements associated with the navigation route can be drawn on the grid map image 2 in accordance with the positive direction of the display screen to complete the display of the route guiding elements.

[0143] If the direction of the navigation route to be displayed is not the same as the positive direction of the display screen, a rotation transformation matrix can be determined according to the direction of the navigation route and the positive direction of the display screen, so as to rotate the first grid map layer by using the rotation transformation matrix. For example, if it is necessary to rotate in the manner shown by Figure 6a and Figure 6b shown, then the above-mentioned rotation transformation matrix B can be obtained. Then, the grid map image 2 can be rotated based on the rotation transformation matrix to obtain the grid map image 3. The grid map image 3 can also be referred to as the second grid map layer.

[0144] After obtaining the second grid map layer, the route guiding elements can be drawn on the second grid map layer, and the display information of the points of interest can also be drawn on the second grid map layer in the same direction as the positive direction based on the position information of the points of interest.

[0145] It can be understood that as the electronic device moves, the direction of the navigation route may change. The electronic device can determine whether the direction of the navigation route is the same as the positive direction of the display screen. If it is found that the direction of the navigation route is different from the positive direction of the display screen, the electronic device can determine a new rotation transformation matrix, rotate the grid map layer based on the new rotation transformation matrix, and redraw the route guiding elements and the display information of the points of interest. Or, the electronic device can also rotate the route guiding elements and the display information of the points of interest based on the rotation transformation matrix. The embodiments of the present application do not make any limitations in this regard.

[0146] Based on the above method embodiments, the embodiments of the present application also provide a map display device. Refer to Figure 7 , Figure 7 which is a schematic diagram of a map display device provided by the embodiments of the present application.

[0147] In Figure 7 the implementation shown, the map display device 700 includes:

[0148] an acquisition unit 710, configured to acquire multiple raster tile maps within a preset range centered on a target location, and obtain a raster map layer;

[0149] the acquisition unit 710 is further configured to acquire information of multiple points of interest within a preset range centered on the target location, where the information of the point of interest includes display information and location information of the point of interest;

[0150] a display unit 720, configured to display a first raster map layer in the raster map layer based on the target location and the display screen size of the electronic device;

[0151] the display unit 720 is further configured to draw the display information of the corresponding point of interest onto the first raster map layer based on the location information of the point of interest.

[0152] In some possible implementation manners, the display unit 720 is specifically configured to determine a drawing position on the first raster map layer for drawing the display information of the corresponding point of interest based on the location information of the point of interest; determine the positive direction of the display screen; and draw the display information of the point of interest onto the drawing position on the first raster map layer in the same direction as the positive direction.

[0153] In some possible implementation manners, the display unit 720 is further configured to, in response to a map movement operation, determine map movement parameters, where the map movement parameters include at least one of a translation parameter, a rotation parameter, and a scaling parameter; determine a new center position as the target position based on the target location and the map movement parameters, and re - execute the steps of map display.

[0154] In some possible implementation manners, the display unit 720 is further configured to, in response to a guidance instruction received during navigation along a predefined navigation route, determine whether the direction of the navigation route to be displayed is the same as the positive direction of the display screen; if so, draw a route guidance element associated with the navigation route onto the first raster map layer in the same direction as the positive direction; if not, determine a rotation transformation matrix when rotating the direction of the navigation route to the positive direction of the display screen; and rotate the raster map layer based on the rotation transformation matrix to display a second raster map layer in the raster map layer.

[0155] In some possible implementation manners, the obtaining unit 710 is specifically configured to obtain information of a plurality of points of interest within a preset range of the center point of the second grid map layer; the displaying unit 720 is specifically configured to, based on the position information of the point of interest, draw the display information of the corresponding point of interest onto the second grid map layer in a direction same as the positive direction.

[0156] In some possible implementation manners, the grid map layer is rectangular, and one side length of the rectangle is the same as the longest diagonal of the display screen.

[0157] In some possible implementation manners, the route guiding element is vector data, and the route guiding element includes at least one of a tie point, a turning arrow, and a route guiding surface.

[0158] In some possible implementation manners, the obtaining unit 710 is specifically configured to determine a target quantity according to a target area and the area of a single grid tile map, where the target area is greater than the area of the display screen; and obtain the target quantity of tile maps within a preset range centered on the target position according to the target position.

[0159] Based on the foregoing method embodiments and apparatus embodiments, an embodiment of the present application further provides a device. This will be introduced below with reference to the accompanying drawings.

[0160] See Figure 8 , Figure 8 which is a schematic diagram of a device provided by an embodiment of the present application. The device 800 includes: a processor 801, a memory 802, and a bus 803.

[0161] Wherein, the processor 801 and the memory 802 communicate with each other through the bus 803.

[0162] The processor 801 is configured to call program instructions in the memory 802 to enable the device 800 to implement the travel planning method as described in any of the foregoing embodiments. The electronic device of the present application may be a server, a server cluster, a mobile phone, a PC, a PAD, a smart wearable device, etc.

[0163] The present application further provides a computer-readable storage medium, in which at least one instruction is stored, and when the instruction runs on a computer, the computer is enabled to execute the method as described in any of the foregoing embodiments.

[0164] The present application further provides a computer program product, characterized in that the computer program product includes one or more computer program instructions, and when the computer program instructions are loaded and run by a computer, the computer is enabled to execute the method as described in any of the foregoing embodiments.

[0165] Each embodiment in this specification is described in a progressive manner. Similar parts among the embodiments can be referred to each other, and the differences between each embodiment and other embodiments are emphasized.

[0166] Among them, "A refers to B" or "A refers to B for reference" means that A is the same as B or A is a simple deformation of B.

[0167] In the description and claims of the embodiments of the present application, terms such as "first" and "second" are used to distinguish different objects, rather than to describe a specific order of the objects, nor should they be construed as indicating or implying relative importance. For example, the first raster map layer and the second raster map layer are used to distinguish different raster map layers, rather than to describe a specific order of the raster map layers, nor can it be understood that the first raster map layer is more important than the second raster map layer.

[0168] The information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards in relevant countries and regions. For example, the road information involved in the present application is obtained under full authorization.

[0169] In the embodiments of the present application, unless otherwise specified, the meaning of "at least one" is one or more, and the meaning of "a plurality" is two or more. For example, a plurality of road segments means two or more road segments.

[0170] The above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

[0171] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A map display method, characterized in that: Used in electronic equipment, including: Obtain multiple raster tile maps within a preset range centered on the target location to obtain a raster map layer; Acquire information of a plurality of points of interest within a preset range centered on the target location, wherein the information of the points of interest includes display information and location information of the points of interest; Based on the target location and the display screen size of the electronic device, displaying a first grid map layer in the grid map layers; Based on the location information of the point of interest, the display information of the corresponding point of interest is drawn on the first raster map layer.

2. The method according to claim 1, characterized in that Based on the location information of the point of interest, drawing the display information of the corresponding point of interest onto the first grid map layer includes: Based on the location information of the point of interest, determining a drawing position on the first raster map layer where display information of the corresponding point of interest is drawn; Determining the positive direction of the display screen; The display information of the point of interest is drawn at the drawing position of the first raster map layer in the same direction as the positive direction.

3. The method according to claim 2, characterized in that After drawing the display information of the corresponding point of interest onto the first grid map layer based on the location information of the point of interest, the method further includes: In response to the map movement operation, determining a map movement parameter, the map movement parameter comprising at least one of a translation parameter, a rotation parameter, and a zoom parameter; Based on the target position and the map movement parameters, a new center position is determined as the target position, and the steps of claim 1 are triggered.

4. The method according to claim 1, characterized in that: After drawing the display information of the corresponding point of interest onto the first grid map layer based on the location information of the point of interest, the method further includes: In response to a guidance instruction received while navigating along a predetermined navigation route, determining whether a direction of the navigation route to be displayed is the same as a positive direction of the display screen; If so, drawing a route guidance element associated with the navigation route onto the first grid map layer in the same direction as the positive direction; If not, determine the rotation transformation matrix corresponding to rotating the direction of the navigation route to the positive direction of the display screen; based on the rotation transformation matrix, rotate the raster map layer to display the second raster map layer in the raster map layer.

5. The method according to claim 4, characterized in that After rotating the grid map layer based on the rotation transformation matrix to display the second grid map layer in the grid map layer, the method further includes: Obtain information of a plurality of points of interest within a preset range of the center point of the second raster map layer; Based on the location information of the point of interest, the display information of the corresponding point of interest is drawn on the second raster map layer in the same direction as the positive direction.

6. The method according to claim 4, characterized in that The grid map layer is a rectangle, and the length of one side of the rectangle is the same as the longest diagonal line of the display screen.

7. The method according to claim 4, characterized in that The route guidance element is vector data, and the route guidance element includes at least one of a tie point, a turn arrow, and a route guidance surface.

8. The method according to any one of claims 1 to 7, characterized in that The step of obtaining a plurality of grid tile maps within a preset range centered on the target location includes: Determining the number of targets according to a pre-configured target area and an area of ​​a single grid tile map, wherein the target area is larger than an area of ​​the display screen; Obtain the target number of raster tile maps within a preset range centered on the target position.

9. A map display device, characterized in that: Used in electronic equipment, including: An acquisition unit, used to acquire multiple raster tile maps within a preset range centered on a target location to obtain a raster map layer; The acquisition unit is further used to acquire information of a plurality of points of interest within a preset range centered on the target position, wherein the information of the points of interest includes display information and position information of the points of interest; A display unit, configured to display a first grid map layer in the grid map layers based on the target location and the display screen size of the electronic device; The display unit is further used to draw the display information of the corresponding point of interest on the first grid map layer based on the location information of the point of interest.

10. A computer program product, characterized in that The computer program product comprises one or more computer program instructions, and when the computer program instructions are loaded and executed by a computer, the computer is caused to execute the method according to any one of claims 1 to 8.