Map generation method and system, electronic equipment and storage medium

By creating virtual layers in map generation and determining their priorities, the display level errors and layer confusion caused by complex association relationships of map elements are solved, and the correct representation of overlay relationships between map elements and the stability of layers is achieved. .

CN119444923APending Publication Date: 2025-02-14SHENZHEN MAMMOTION INNOVATION CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411603706.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

During the map generation process, when there are many map elements in the target area, the correlation between map elements is complex, resulting in display hierarchy errors and layer disorders.

Method used

By creating a virtual layer and determining its priority, associate the map elements in the target area with the virtual layer, determine the second priority of the map elements based on the association relationship, and generate a map to correctly represent the overlay relationship between map elements.

Benefits of technology

It realizes the correct representation of the overlay relationship between map elements in the map, avoids layer confusion, simplifies hierarchical management, and improves the accuracy and readability of map generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119444923A_ABST
    Figure CN119444923A_ABST
Patent Text Reader

Abstract

The invention discloses a map generation method and system, electronic equipment and a storage medium, and belongs to the technical field of image processing technologies. The map generation method comprises the following steps: creating at least one virtual map layer; determining a first priority of the virtual layer; associating each map element in a target area with the virtual map layer, and determining a second priority of each map element according to an association relationship; and generating a map according to the first priority of the virtual layer and the second priority of each map element. According to the method and the device, the coverage relationship among the map elements can be correctly represented in the map, and layer disorder is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a map generation method, system, electronic device and storage medium. Background Art

[0002] In the process of map generation, in order to accurately display the coverage of map elements such as boundaries, restricted areas, obstacles, roads, and vehicles in the target area, it is often necessary to set the association between each map element to clarify the display level. However, when there are many map elements in the target area, the association between map elements will become more complicated. The solution of determining the display level based on the association between map elements will result in confusion in the association and incorrect layer display position.

[0003] Therefore, how to correctly represent the coverage relationship between various map elements in a map and avoid layer confusion is a technical problem that technical personnel in this field currently need to solve. Summary of the invention

[0004] The purpose of this application is to provide a map generation method, system, electronic device and storage medium, which can correctly represent the coverage relationship between various map elements in the map and avoid layer confusion.

[0005] In order to solve the above technical problems, the present application provides a map generation method, which includes:

[0006] Creating at least one virtual layer;

[0007] Determining a first priority of the virtual layer;

[0008] Associating each map element in the target area with the virtual layer, and determining a second priority of each map element according to the association relationship;

[0009] A map is generated according to the first priority of the virtual layer and the second priority of each of the map elements.

[0010] Optionally, determining the second priority of each of the map elements according to the association relationship includes:

[0011] Determining a second priority according to the first priority of the virtual layer associated with each of the map elements;

[0012] The second priority of the map element i is positively correlated with the first priority of the virtual layer associated with the map element i.

[0013] Optionally, associating each map element in the target area with the virtual layer includes:

[0014] Setting each of the map elements in the target area above or below the virtual layer;

[0015] When the same virtual layer corresponds to multiple map elements, the second priority of the map element arranged above the virtual layer is higher than the second priority of the map element arranged below the virtual layer.

[0016] Optionally, generating a map according to the first priority of the virtual layer and the second priority of each of the map elements includes:

[0017] The virtual layers are rendered in an ascending order according to the first priority, and the map elements are rendered to the associated virtual layers in an ascending order according to the second priority, so as to generate the map.

[0018] Optionally, also include:

[0019] In response to the layer adjustment instruction, updating the first priority of the virtual layer;

[0020] In response to the element adjustment instruction, the association relationship between the map element and the virtual layer is updated, and the second priority of the map element is adjusted according to the updated association relationship.

[0021] Optionally, the creating at least one virtual layer includes:

[0022] Dividing all map elements in the target area into a plurality of element sets; wherein one element set contains at least one map element, and there is no intersection between any two element sets;

[0023] The total number n of the element set is determined, and n virtual layers are created.

[0024] Optionally, associating each map element in the target area with the virtual layer includes:

[0025] Obtaining the virtual Z-axis coordinates of each of the map elements in the target area;

[0026] The map element is associated with the virtual layer according to the corresponding relationship between the virtual Z-axis coordinate and the first priority.

[0027] Optionally, if the number of the virtual layers is greater than or equal to 2, determining the first priority of the virtual layers includes:

[0028] The first priority of each virtual layer is determined according to a preset rule; wherein the preset rule is that the first priorities of any two virtual layers are different.

[0029] Optionally, after creating at least one virtual layer, the method further includes:

[0030] The size of the virtual layer is adjusted according to the size of the display device or the display area.

[0031] The present application also provides a map generation system, the system comprising:

[0032] A layer creation module, used for creating at least one virtual layer;

[0033] A first priority determination module, used to determine the first priority of the virtual layer;

[0034] A second priority determination module, used to associate each map element in the target area with the virtual layer, and determine the second priority of each map element according to the association relationship;

[0035] The map generation module is used to generate a map according to the first priority of the virtual layer and the second priority of each of the map elements.

[0036] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned map generation method are implemented.

[0037] The present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps executed by the above-mentioned map generation method when calling the computer program in the memory.

[0038] The present application provides a map generation method, which creates at least one virtual layer, determines the first priority of the virtual layer, and associates each map element in the target area with the virtual layer to determine the second priority of each map element. The present application simplifies hierarchical management by establishing an association between the virtual layer and the map elements, and can generate a map based on the first priority of the virtual layer and the second priority of each map element. The above process can correctly represent the coverage relationship between each map element in the map through clear priority settings, avoiding layer confusion. The present application also provides a map generation system, a storage medium, and an electronic device, which have the above-mentioned beneficial effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1A flowchart of a map generation method provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of the location of a map element provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of the positions of map elements and virtual layers provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of the structure of a map generation system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] See below Figure 1 , Figure 1 A flowchart of a map generation method provided in an embodiment of the present application.

[0046] Specific steps may include:

[0047] S101: Create at least one virtual layer;

[0048] Among them, this embodiment can be applied to electronic devices with a map generation function, and the map can be a map of equipment such as a lawn mower, a sweeping robot, and an autonomous driving vehicle.

[0049] The virtual layer in this embodiment is a layer simulated in a computer, and the virtual layer may be transparent. When creating a virtual layer, a corresponding layer identifier may be set for the virtual layer so that in subsequent processes, map elements may be associated with the corresponding virtual layer based on the layer identifier.

[0050] S102: Determine the first priority of the virtual layer;

[0051] Among them, in this step, a corresponding first priority can be set for each virtual layer, and the first priority affects the display order of map elements in different virtual layers on the final generated map. In this step, the first priority of the virtual layer can be set according to the function of the virtual layer, the importance of the virtual layer, and user needs.

[0052] If the number of the virtual layers is greater than or equal to 2, the first priority of each virtual layer can be determined according to a preset rule; wherein the preset rule is that the first priorities of any two virtual layers are different. The above method can ensure that each virtual layer has a unique first priority, so as to avoid the occurrence of map element coverage relationship errors in the final generated map.

[0053] S103: Associating each map element in the target area with the virtual layer, and determining a second priority of each map element according to the association relationship;

[0054] This embodiment can determine multiple map elements contained in the target area, and the map elements are contents that need to be displayed in the map, such as boundaries, restricted areas, obstacles, roads, vehicles, etc. After determining the map elements in the target area, the map elements can be associated with corresponding virtual layers.

[0055] As a feasible implementation, the number of virtual layers associated with one map element is 1, and the number of map elements associated with one virtual layer is greater than or equal to 1. Specifically, in this embodiment, the second priority can be determined according to the first priority of the virtual layer associated with each of the map elements; wherein the second priority of the map element i is positively correlated with the first priority of the virtual layer associated with the map element i.

[0056] After associating the map elements with the corresponding virtual layers, the second priority of each map element can be determined according to the association relationship. By setting the second priority, it can be ensured that the map elements in the virtual layer are displayed in the expected order. The second priority determines the display order of different map elements on the final generated map.

[0057] This embodiment can predefine the association of each map element with the virtual layer. For example, roads can be associated with the traffic layer, and obstacles can be associated with the building layer. After the map element is associated with the virtual layer, the second priority of the map element can be determined according to the first priority of the virtual layer. For example, if the first priority of the traffic layer is 1 and the first priority of the building layer is 2, then the second priority of the road associated with the traffic layer will be higher than the second priority of the obstacle associated with the building layer.

[0058] In this embodiment, map elements can be set on a virtual layer to achieve association between map elements and virtual layers. Each map element can have its corresponding coordinate information, which is used to describe the display position of the map element in the corresponding virtual layer. Therefore, in this step, the map element can be added to the virtual layer according to the coordinate information. Specifically, in this embodiment, each of the map elements in the target area can be set above or below the virtual layer; wherein, when the same virtual layer corresponds to multiple map elements, the second priority of the map element set above the virtual layer is higher than the second priority of the map element set below the virtual layer. In the above manner, for the same virtual layer and the case where there are overlapping map elements in the display position, the map element above the virtual layer covers the map element below the virtual layer. In this embodiment, adding map elements above or below the associated virtual layer is conducive to users to organize and display map elements more flexibly, and provides convenience for subsequent map updates and maintenance.

[0059] S104: Generate a map according to the first priority of the virtual layer and the second priority of each of the map elements.

[0060] The first priority reflects the display order of the virtual layer in the map, and the second priority reflects the display order between different map elements. The corresponding map can be generated by combining the first priority of the virtual layer and the second priority of each map element. The map elements in the map are arranged according to the first priority and the second priority, so as to correctly represent the coverage relationship between the map elements.

[0061] As a feasible implementation, this embodiment can render each virtual layer in order of the first priority from low to high, and render the map elements to the associated virtual layer in order of the second priority from low to high, so as to generate the map.

[0062] Specifically, the above process renders each virtual layer in sequence according to the first priority of the virtual layer from low to high, so that the virtual layer with a lower priority will be rendered first, and the virtual layer with a higher priority will be rendered above it. This embodiment also renders the map elements to the associated virtual layer in the order of the second priority of the map elements from low to high. In the above manner, the map elements with lower priority will be drawn first, and the map elements with higher priority will be drawn above them. Through the above rendering method, this embodiment can ensure that the display order of the map elements in the final map conforms to both the priority between the virtual layers and the priority between the map elements, thereby achieving the correct overlay relationship between the map elements and avoiding layer confusion. The map contains the visual information of all map elements, and correctly organizes this information in the order of the first priority and the second priority. Through the above process, a clear and orderly map element overlay result can be obtained.

[0063] This embodiment creates at least one virtual layer, determines the first priority of the virtual layer, and associates each map element in the target area with the virtual layer to determine the second priority of each map element. This embodiment simplifies hierarchical management by establishing an association between the virtual layer and the map element, and can generate a map based on the first priority of the virtual layer and the second priority of each map element. The above process can correctly represent the coverage relationship between each map element in the map through clear priority setting, avoiding layer confusion.

[0064] As for Figure 1 As a further introduction to the corresponding embodiment, in this embodiment, the first priority of the virtual layer can be updated by using a layer adjustment instruction, and the second priority of the map element can also be updated by using an element adjustment instruction.

[0065] In this embodiment, the first priority of the virtual layer can be updated in response to the layer adjustment instruction, so as to generate a map according to the updated first priority. The above-mentioned layer adjustment instruction can be sent by a user or other control terminal, and the layer adjustment instruction can include the identifier of the virtual layer to be adjusted and the first priority to be set for the virtual layer to be adjusted, so the first priority of the virtual layer can be updated according to the layer adjustment instruction.

[0066] In this embodiment, in response to the element adjustment instruction, the association relationship between the map element and the virtual layer may be updated, and the second priority of the map element may be adjusted according to the updated association relationship, so as to generate a map according to the updated second priority.

[0067] The above-mentioned element adjustment instruction may be sent by a user or other control terminal, and the element adjustment instruction may include the identifier of the map element to be adjusted, the identifier of the virtual layer to be associated with the map element to be adjusted, and may also include the second priority of the map element. According to the element adjustment instruction, the map element may be adjusted from the bottom of the virtual layer to the top of the virtual layer, or the map element may be adjusted from the top of the virtual layer to the bottom of the virtual layer.

[0068] Through the above method, the coverage relationship of each map element in the map can be flexibly adjusted according to actual needs.

[0069] As for Figure 1 Further introduction to the corresponding embodiment, this embodiment can introduce a virtual Z-axis to determine the association relationship between the map elements and the virtual layer. The specific process is as follows: obtaining the virtual Z-axis coordinates of each of the map elements in the target area; associating the map elements with the virtual layer according to the correspondence between the virtual Z-axis coordinates and the first priority.

[0070] This embodiment introduces a virtual Z axis to indicate the display level of the map element. The higher the Z axis coordinate, the closer the map element is to the front of the user's line of sight. This embodiment can pre-set the correspondence between the virtual Z axis coordinate and the first priority, and the virtual layer associated with the map element can be determined by querying the above correspondence.

[0071] The above process associates each map element with a corresponding virtual layer according to the virtual Z-axis coordinate. The larger the value of the virtual Z-axis coordinate is, the higher the first priority is. Specifically, this embodiment can sort the virtual Z-axis coordinates of all map elements and assign a virtual layer of the first priority to the map element according to the sorting result.

[0072] The above method can effectively determine the virtual level associated with the map elements to ensure the clarity and readability of the map.

[0073] As for Figure 1 Further introduction to the corresponding embodiment, the embodiment can create a virtual layer in the following manner: divide all map elements in the target area into multiple element sets; determine the total number n of the element sets, and create n virtual layers. Each of the element sets contains at least one map element, and there is no intersection between any two of the element sets.

[0074] Specifically, this embodiment can divide all map elements into multiple element sets according to type, spatial location or attribute; create a corresponding number of virtual layers according to the number of element sets. For each element set, this embodiment can associate all map elements in the element set with the corresponding virtual layer. The above embodiment divides all map elements in the target area into multiple element sets, and creates a corresponding virtual layer for each set, thereby improving the efficiency of map rendering and query.

[0075] As for Figure 1 As further described in the corresponding embodiment, after the virtual layer is created, the size of the virtual layer may be adjusted according to the size of the display device or the display area.

[0076] Specifically, this embodiment can detect the size of the display device or display area, and then automatically adjust the size of the virtual layer according to the detection result to ensure that the layer content can be displayed clearly and completely on different devices. Through the above adjustment, the map or graphical interface can maintain good visual effects on various screen sizes.

[0077] The process described in the above embodiment is explained below through an embodiment in actual application.

[0078] See also Figure 2 , Figure 2 A schematic diagram of the location of a map element provided in an embodiment of the present application, showing a boundary A, a restricted area B, a channel C, a route D, a car E, and a charging station. The various levels of map elements are interdependent and interrelated, and the levels of map elements from top to bottom are E > B > D > A > C.

[0079] To generate Figure 2 There are two ways to process the map of the scene shown in the figure:

[0080] Method 1: Set the association relationship between map elements, set E as the highest layer, B depends on (below) E, D depends on B, A depends on D, and C depends on A.

[0081] Method 2: Treat the same type of data as a data group and assign different layer orders to different data sources. The logic of Method 2 is based on Method 1, adding the situation where the same map element depends on multiple other map elements. For example, there are multiple restricted areas B1, B2 and B3. According to Method 2, the following dependency relationship will be generated: D depends on B1, D depends on B2, and D depends on B3.

[0082] The above method 1 can only support the situation with fewer elements. If there are too many map elements, there will be confusion in association and unequal display of layer positions. For example, when the car is mowing along route D, the route will pass through the car on the display. In the above method 2, B1, B2 and B3 are assigned to a layer as a data source. If there is an association relationship between B1, B2 and B3, once the data source of one of them is modified, the data sources of the other two also need to be changed, which will increase the burden of data processing.

[0083] In view of the technical problems existing in the above-mentioned related technologies, this embodiment provides a solution for controlling the order of map element layers, which can effectively control the display positions of different map elements on the layers, thereby clarifying the position and layout of each element.

[0084] This embodiment can initialize the map, construct virtual layers and adjust the order of virtual layers. The above map elements include: restricted areas, channels, lawns, routes, cars, waiting area lines, charging piles, and RTK (Real Time Kinematic) logos. The virtual layers that can be constructed based on the above map elements include: car virtual layers, restricted area virtual layers, route virtual layers, boundary virtual layers, channel virtual layers, etc.; adjust the order of virtual layers, including placing the car virtual layer at the top, the restricted area virtual layer under the car virtual layer, the route virtual layer under the restricted area virtual layer, the boundary virtual layer under the route virtual layer, and the channel virtual layer under the boundary virtual layer. The construction of the above virtual layers includes layered display of different types of map elements through a preset layer order or priority. The above layer order is determined based on the type of map element, and the types of map elements include restricted areas, channels, lawns, routes, cars, waiting area lines, charging piles, and RTK logos. The above virtual layers can be adaptively adjusted according to different display devices or display area sizes.

[0085] After constructing the virtual layer, the relationship between individual map elements can be decoupled from the relationship between the virtual layers. To illustrate the above process, for example, if map element A is below map element B, it can be decomposed into map element B on virtual layer 1, map element A on virtual layer 2, and virtual layer 1 on virtual layer 2. Therefore, map element A can also be above map element B. Through the above process, the association relationship between map elements can be converted into the association relationship between virtual layers.

[0086] The virtual layer is a layer that is invisible and has no click events on the entire map and is not perceived by the user. Specifically, in this embodiment, the map elements to be drawn can be arranged on the virtual layer, that is, the car icon is placed on the car virtual layer, the charging pile icon and the RTK icon are placed below the car virtual layer; the restricted area icon is placed on the restricted area virtual layer, and the lawn pattern is placed below the restricted area virtual layer; the route icon is placed on the route virtual layer; the boundary icon is placed on the boundary virtual layer; and the channel icon is placed on the channel virtual layer. Please refer to, Figure 3 , Figure 3 A schematic diagram of the positions of map elements and virtual layers provided in an embodiment of the present application. At the same position, a higher layer will block a lower layer.

[0087] After generating a map in the above way, if you add or adjust the display level of map elements, you only need to create or adjust the virtual layer or adjust the position of the virtual layer to achieve the placement of different levels. The above method can also achieve the same type of elements on the same level, and realize the decoupling of the connection between individual elements into the connection between the abstract layer, so as to achieve efficient position placement of map elements.

[0088] This solution can realize the placement of different elements in layers, solving the problem of layer display order when drawing map elements such as boundary areas, restricted areas, channels, lawns, routes, cars, charging piles, RTK signs, etc. Even if there are multiple data of the same type, each data is independent, which does not affect the efficient processing of data.

[0089] The specific process of the above map element layer sequence control scheme is as follows: initialize the map and construct at least one virtual layer; associate at least one map element to be displayed with the at least one virtual layer; determine the display level of each map element based on the association relationship of the virtual layers; display the map elements on the corresponding virtual layer according to the display level. The virtual layer is a transparent layer without borders, so the virtual layer does not have a click event and will not be displayed to the user. For the user, the virtual layer is an imperceptible existence.

[0090] Map elements are various objects or information displayed on the map. For example: restricted areas, channels, lawn patterns, routes, car icons, waiting area lines, charging pile icons, RTK icons. Virtual layers are equivalent to a layer of "transparent paper", and each layer contains a set of map elements. For example: layer 1 contains only boundaries, layer 2 contains only routes, layer 3 contains only restricted areas, and layer 4 contains only cars.

[0091] Furthermore, the virtual layer may determine the display level of the map element by defining a virtual Z-axis coordinate.

[0092] The above virtual Z-axis coordinates usually refer to: an abstract concept introduced in a two-dimensional map environment to determine the display order or hierarchy of different map elements. On a two-dimensional map, map elements (such as roads, buildings, rivers, etc.) are usually displayed on the same plane, which is two-dimensional (represented by the X-axis and the Y-axis, the X-axis represents the horizontal position, and the Y-axis represents the vertical position). However, in order to control the hierarchical relationship of these elements when they are displayed, that is, which element should be displayed on top and which element should be displayed below, this embodiment introduces a virtual third dimension, namely the virtual Z-axis.

[0093] The height of the virtual Z axis is an abstract value that represents the level of each element. The larger the virtual Z axis coordinate value, the higher the element is displayed; the smaller the virtual Z axis coordinate value, the lower the element is displayed. In this way, the coverage relationship and priority between elements can be determined.

[0094] Elements with high Z-axis: such as cars, restricted areas, etc., this information usually needs to be displayed on the top layer, covering other graphic elements. Elements with low Z-axis: such as boundaries, routes, these are usually basic data and need to be displayed on lower layers. For example, the virtual Z-axis coordinate value of layer 1 is 1, which only contains boundary icons; the virtual Z-axis coordinate value of layer 2 is 2, which only contains route icons; the virtual Z-axis coordinate value of layer 3 is 3, which only contains restricted area icons; the virtual Z-axis coordinate value of layer 4 is 4, which only contains car icons.

[0095] The virtual layers in this embodiment can be adjusted dynamically, allowing users to rearrange the display levels of map elements as needed. The dynamic adjustment of the above virtual layers is completed through a user interface, which allows users to select map elements or layers and adjust their display order. In this embodiment, the display level of map elements is realized by the stacking order of virtual layers, and the stacking order determines the coverage relationship of different map elements from bottom to top. The association relationship between the above map elements and virtual layers is automatically generated by preset rules or algorithms. The display level between the above map elements can also be determined based on user-defined weights or priority settings.

[0096] In this solution, the display levels of different map elements are realized through the stacking order of virtual layers, and the stacking order determines the coverage relationship of different map elements from bottom to top. This solution can handle the problem of multiple element layer order processing in a map containing multiple types of map elements and an uncertain number of each type of map elements.

[0097] See also Figure 4 , Figure 4 A schematic diagram of the structure of a map generation system provided in an embodiment of the present application, the system may include:

[0098] A layer creation module 401, used to create at least one virtual layer;

[0099] A first priority determination module 402, configured to determine a first priority of the virtual layer;

[0100] A second priority determination module 403, used to associate each map element in the target area with the virtual layer, and determine the second priority of each map element according to the association relationship;

[0101] The map generation module 404 is used to generate a map according to the first priority of the virtual layer and the second priority of each of the map elements.

[0102] This embodiment creates at least one virtual layer, determines the first priority of the virtual layer, and associates each map element in the target area with the virtual layer to determine the second priority of each map element. This embodiment simplifies hierarchical management by establishing an association between the virtual layer and the map element, and can generate a map based on the first priority of the virtual layer and the second priority of each map element. The above process can correctly represent the coverage relationship between each map element in the map through clear priority setting, avoiding layer confusion.

[0103] Furthermore, the process of the second priority determination module 403 determining the second priority of each of the map elements according to the association relationship includes: determining the second priority according to the first priority of the virtual layer associated with each of the map elements; wherein the second priority of map element i is positively correlated with the first priority of the virtual layer associated with map element i.

[0104] Furthermore, the process of associating each map element in the target area with the virtual layer by the second priority determination module 403 includes: setting each map element in the target area above or below the virtual layer; wherein, when the same virtual layer corresponds to multiple map elements, the second priority of the map element set above the virtual layer is higher than the second priority of the map element set below the virtual layer.

[0105] Furthermore, the process of the map generation module 404 generating a map according to the first priority of the virtual layer and the second priority of each of the map elements includes: rendering each of the virtual layers in order from low to high according to the first priority, and rendering the map elements to the associated virtual layers in order from low to high according to the second priority, so as to generate the map.

[0106] Furthermore, it also includes:

[0107] The adjustment module is used to update the first priority of the virtual layer in response to the layer adjustment instruction; and is also used to update the association relationship between the map element and the virtual layer in response to the element adjustment instruction, and adjust the second priority of the map element according to the updated association relationship.

[0108] Furthermore, the process of the layer creation module 401 creating at least one virtual layer includes: dividing all map elements in the target area into multiple element sets; wherein one element set contains at least one map element, and there is no intersection between any two element sets; determining the total number n of the element sets, and creating n virtual layers.

[0109] Furthermore, the process of the second priority determination module 403 associating each map element in the target area with the virtual layer includes: obtaining the virtual Z-axis coordinates of each map element in the target area; and associating the map element with the virtual layer according to the corresponding relationship between the virtual Z-axis coordinates and the first priority.

[0110] Furthermore, if the number of the virtual layers is greater than or equal to 2, the process of determining the first priority of the virtual layer by the first priority determination module 402 includes: determining the first priority of each virtual layer according to a preset rule; wherein the preset rule is: the first priorities of any two virtual layers are not the same.

[0111] Furthermore, it also includes:

[0112] The size adjustment module is used to adjust the size of the virtual layer according to the size of the display device or the display area after creating at least one virtual layer.

[0113] Since the embodiments of the system part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the system part, which will not be repeated here.

[0114] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0115] The present application also provides an electronic device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the electronic device may also include various network interfaces, power supplies and other components.

[0116] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of this application.

[0117] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A map generation method, characterized in that: include: Creating at least one virtual layer; Determining a first priority of the virtual layer; Associating each map element in the target area with the virtual layer, and determining a second priority of each map element according to the association relationship; A map is generated according to the first priority of the virtual layer and the second priority of each of the map elements.

2. The map generation method according to claim 1, characterized in that: The determining the second priority of each of the map elements according to the association relationship includes: Determining a second priority according to the first priority of the virtual layer associated with each of the map elements; The second priority of the map element i is positively correlated with the first priority of the virtual layer associated with the map element i.

3. The map generation method according to claim 2, characterized in that: The associating each map element in the target area with the virtual layer includes: Setting each of the map elements in the target area above or below the virtual layer; When the same virtual layer corresponds to multiple map elements, the second priority of the map element arranged above the virtual layer is higher than the second priority of the map element arranged below the virtual layer.

4. The map generation method according to any one of claims 1 to 3, characterized in that: Generating a map according to the first priority of the virtual layer and the second priority of each of the map elements includes: The virtual layers are rendered in an ascending order according to the first priority, and the map elements are rendered to the associated virtual layers in an ascending order according to the second priority, so as to generate the map.

5. The map generation method according to claim 1, characterized in that: Also includes: In response to the layer adjustment instruction, updating the first priority of the virtual layer; In response to the element adjustment instruction, the association relationship between the map element and the virtual layer is updated, and the second priority of the map element is adjusted according to the updated association relationship.

6. The map generation method according to claim 1, characterized in that , the creating at least one virtual layer comprises: Dividing all map elements in the target area into a plurality of element sets; wherein one element set contains at least one map element, and there is no intersection between any two element sets; The total number n of the element set is determined, and n virtual layers are created.

7. The map generation method according to claim 1, characterized in that: The associating each map element in the target area with the virtual layer includes: Obtaining the virtual Z-axis coordinates of each of the map elements in the target area; The map element is associated with the virtual layer according to the corresponding relationship between the virtual Z-axis coordinate and the first priority.

8. The map generation method according to claim 1, characterized in that , if the number of the virtual layers is greater than or equal to 2, determining the first priority of the virtual layers includes: The first priority of each virtual layer is determined according to a preset rule; wherein the preset rule is that the first priorities of any two virtual layers are different.

9. The map generation method according to claim 1, characterized in that , after creating at least one virtual layer, further comprising: The size of the virtual layer is adjusted according to the size of the display device or the display area.

10. A map generation system, characterized in that: include: A layer creation module, used for creating at least one virtual layer; A first priority determination module, used to determine the first priority of the virtual layer; A second priority determination module, used to associate each map element in the target area with the virtual layer, and determine the second priority of each map element according to the association relationship; The map generation module is used to generate a map according to the first priority of the virtual layer and the second priority of each of the map elements.

11. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the map generating method according to any one of claims 1 to 9 when calling the computer program in the memory.

12. A storage medium, characterized in that: The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the steps of the map generation method according to any one of claims 1 to 9 are implemented.

Citation Information

Cited By

  • Electronic map interaction method, terminal device, server and system

    CN120469601A