Map rendering method and device, equipment and storage medium

By classifying high-precision web map element data and employing different rendering algorithms, the problem of map display flickering was solved, thus improving the user experience.

CN116383535BActive Publication Date: 2025-11-25ZHIDAO NETWORK TECH (BEIJING) CO LTD
3 Cites 0 Cited by

Patent Information

Application Number
CN202310396950.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-14
Publication Date
2025-11-25
Estimated Expiration
2043-04-14

AI Technical Summary

Technical Problem

High-precision web maps are prone to flickering during display, resulting in a poor user experience.

Method used

By classifying map element data, different rendering algorithms are used to render the first and second types of map element data respectively, including using the first rendering algorithm to render the first type of map element data in the display range buffer and using the second rendering algorithm to render the second type of map element data in the display range buffer.

Benefits of technology

It achieves a flicker-free map display, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116383535B_ABST
    Figure CN116383535B_ABST
Patent Text Reader

Abstract

The application relates to a map rendering method, device and equipment and a storage medium. The method comprises the following steps: loading data range current map element data; classifying the current map element data to obtain map element data of a first type of map element and / or map element data of a second type of map element in the current map element data; using a first rendering algorithm to render and display the map element data of the first type of map element in a display range buffer; and / or using a second rendering algorithm to render and display the map element data of the second type of map element in the display range buffer. The scheme provided by the application can make the display picture of the map flicker-free and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of processing and presentation of graphic data, and particularly relates to a map rendering method and device, equipment and a storage medium. BACKGROUND

[0002] With the development of computer, network, multimedia and space technology, computer-based electronic devices are widely used in the field of electronic maps. Maps are no longer limited to symbols and graphics expressed on paper (or similar media). They can be stored in digital form on magnetic media or displayed on screens through visualization processing. High-precision web maps are relative to ordinary maps. They provide more accurate and richer map information, and are more demanding than ordinary SD maps in terms of precision or richness. They can provide accurate data support for precise positioning and real-time navigation of vehicles.

[0003] In related technologies, the display of high-precision web maps requires processing of map data such as request, loading and rendering. During this process, the screen may not display map data, resulting in a white block. The entire process may have a flickering situation, which can easily cause user travel confusion and poor user experience. SUMMARY

[0004] To solve or partially solve the problems in the related art, the present application provides a map rendering method, device, equipment and storage medium, which can make the display of the map flicker-free and provide a good user experience.

[0005] The first aspect of the present application provides a map rendering method, which comprises:

[0006] loading the current map element data of the data range;

[0007] classifying the current map element data to obtain map element data of a first type of map element and / or map element data of a second type of map element in the current map element data;

[0008] using a first rendering algorithm to render and display the map element data of the first type of map element in the display range buffer; and / or

[0009] using a second rendering algorithm to render and display the map element data of the second type of map element in the display range buffer.

[0010] Preferably, the method further comprises:

[0011] displaying the first type of map element and the second type of map element in the display range buffer on the screen according to the visual distance threshold of the map element data of the first type of map element and the second type of map element.

[0012] Preferably, the current map element data in the loading data range comprises:

[0013] If the display range buffer exceeds the data range, loading the current map element data in the data range.

[0014] Preferably, the classifying the current map element data to obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data comprises:

[0015] According to the set attributes of each map element in the current map element data and the last map element data, obtaining the to-be-added map element data in the current map element data;

[0016] Classifying the to-be-added map element data to obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data.

[0017] Preferably, the first type of map elements comprises arrows and zebra crossings, and the second type of map elements comprises road surfaces, area surfaces, green belts, lane lines and stop lines.

[0018] The first rendering algorithm is used to render the map element data of the first type of map elements in the display range buffer, comprising:

[0019] Obtaining pictures of the arrows and / or the zebra crossings in the display range buffer;

[0020] In the process of obtaining the pictures of the arrows and / or the zebra crossings in the display range buffer, adding a mask layer to the picture texture position of the arrows and / or the zebra crossings;

[0021] Adding the obtained pictures of the arrows and / or the zebra crossings to the picture texture position of the arrows and / or the zebra crossings, and rendering the map element data of the arrows and / or the zebra crossings in the display range buffer to the web three-dimensional map.

[0022] The second rendering algorithm is used to render the map element data of the second type of map elements in the display range buffer, comprising:

[0023] According to the three-dimensional models of the road surfaces, the area surfaces, the green belts, the lane lines and / or the stop lines, rendering the map element data of the road surfaces, the area surfaces, the green belts, the lane lines and / or the stop lines in the display range buffer to the web three-dimensional map.

[0024] Preferably, the method further comprises:

[0025] According to the setting attribute of each map element in the current map element data and the last map element data, obtaining the to-be-updated map element data in the current map element data;

[0026] The rendering of the to-be-updated map element data is reserved in the web three-dimensional map.

[0027] Preferably, the first type of map elements includes road surface, area surface, lane line, stop line, and the second type of map elements includes green belt, arrow, and zebra crossing.

[0028] The first rendering algorithm is used to render and display the map element data of the first type of map elements in the display range buffer, including:

[0029] The map element data of the road surface, the area surface, the lane line, and / or the stop line in the display range buffer is rendered in the web three-dimensional map.

[0030] The map element data of the road surface, the area surface, the lane line, and / or the stop line rendered last time is removed from the web three-dimensional map.

[0031] The second rendering algorithm is used to render and display the map element data of the second type of map elements in the display range buffer, including:

[0032] According to the three-dimensional model of the green belt, the arrow, and / or the zebra crossing, the map element data of the green belt, the arrow, and / or the zebra crossing in the display range buffer is rendered in the web three-dimensional map.

[0033] Preferably, the visible distance threshold of the map element data of the road surface and the green belt is a first setting distance threshold.

[0034] The visible distance threshold of the map element data of the arrow, the lane line, the stop line, and the zebra crossing is a second setting distance threshold.

[0035] According to the visible distance threshold of the map element data of the first type of map elements and the second type of map elements, the first type of map elements and the second type of map elements in the display range buffer are displayed on the screen, including:

[0036] If the visible distance of the map element data of the road surface and the green belt is less than the first setting distance threshold, the road surface and the green belt in the display range buffer are displayed on the screen.

[0037] If the visible distance of the map element data of the arrow, the lane line, the stop line and the zebra crossing is less than the second set distance threshold, the map element data of the arrow, the lane line, the stop line and the zebra crossing in the display range buffer is displayed on the screen.

[0038] The second aspect of the present application provides a map rendering device, the device comprising:

[0039] a loading module for loading the current map element data of the data range;

[0040] a classification module for classifying the current map element data loaded by the loading module to obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data;

[0041] a first rendering module for rendering the map element data of the first type of map elements obtained by the classification module in the display range buffer by using a first rendering algorithm; and / or,

[0042] a second rendering module for rendering the map element data of the second type of map elements obtained by the classification module in the display range buffer by using a second rendering algorithm.

[0043] The third aspect of the present application provides an electronic device comprising:

[0044] a processor; and

[0045] a memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method as described above.

[0046] The fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to perform the method as described above.

[0047] The technical solution provided by the present application can include the following beneficial effects:

[0048] The technical solution of the present application classifies the current map element data to obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data, renders the map element data of the first type of map elements in the display range buffer by using a first rendering algorithm, and / or renders the map element data of the second type of map elements in the display range buffer by using a second rendering algorithm. Different rendering algorithms are used to render different map element data, which can make the display screen of the map flicker-free and improve user experience.

[0049] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application, as claimed. BRIEF DESCRIPTION OF DRAWINGS

[0050] The above and other objects, features and advantages of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which like reference characters refer to like parts throughout and in which:

[0051] Figure 1 is a flowchart of a map rendering method according to an embodiment of the present application;

[0052] Figure 2 is another flowchart of a map rendering method according to an embodiment of the present application;

[0053] Figure 3 is another flowchart of a map rendering method according to an embodiment of the present application;

[0054] Figure 4 is a structural diagram of a map rendering apparatus according to an embodiment of the present application;

[0055] Figure 5 is another structural diagram of a map rendering apparatus according to an embodiment of the present application;

[0056] Figure 6 is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0057] Embodiments of the present application will be described more fully hereinafter with reference to the accompanying drawings, in which embodiments of the application are shown. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.

[0058] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0059] It should be understood that, although the terms "first", "second", "third", etc. can be used in this application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information without departing from the scope of the application. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise specifically limited.

[0060] The embodiment of the present application provides a map rendering method, which can make the display picture of the map without flicker, and the user experience is good.

[0061] The technical scheme of the embodiment of the present application is described in detail below with reference to the drawings.

[0062] Figure 1 is a flowchart of the map rendering method shown in the embodiment of the present application.

[0063] Referring to Figure 1 A map rendering method, characterized in that, comprising:

[0064] In step 101, the current map element data of the data range is loaded.

[0065] In an embodiment, when the high-precision web 3D (3 Dimensions, three-dimensional) map of the screen is moved, the 3D map engine can load the current map element data of the data range according to the range size of the data range.

[0066] In step 102, the current map element data is classified to obtain the map element data of the first type of map element and / or the map element data of the second type of map element in the current map element data.

[0067] In an embodiment, after the 3D map engine loads the current map element data of the data range, the current map element data can be classified according to different classification rules and different map elements in the current map element data, and the current map element data is divided into the map element data of the first type of map element and / or the map element data of the second type of map element.

[0068] In step 103, the first rendering algorithm is used to render and display the map element data of the first type of map element in the display range buffer, and / or the second rendering algorithm is used to render and display the map element data of the second type of map element in the display range buffer.

[0069] In an embodiment, the 3D map engine can employ different rendering algorithms: a first rendering algorithm and a second rendering algorithm, to render the map element data of the first type of map elements and the map element data of the second type of map elements differently. The first rendering algorithm can be employed to render the map element data of the first type of map elements in the display range buffer to the high-precision web 3D map and display the map element data of the first type of map elements in the display range on the screen. The second rendering algorithm can be employed to render the map element data of the second type of map elements in the display range buffer to the high-precision web 3D map and display the map element data of the second type of map elements in the display range on the screen.

[0070] The map rendering method of the embodiment of the present application can obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data by classifying the current map element data, render the map element data of the first type of map elements in the display range buffer by employing the first rendering algorithm, and / or render the map element data of the second type of map elements in the display range buffer by employing the second rendering algorithm. Different rendering algorithms are employed to render the map element data of different map elements differently, so that the display screen of the map can not flicker and the user experience is good.

[0071] Figure 2 FIG. 6 is another flowchart of the map rendering method according to an embodiment of the present application.

[0072] Referring to FIG. 6, Figure 2 A map rendering method includes:

[0073] In step 201, it is determined whether the display range buffer exceeds the data range. If yes, step 202 is executed; if no, step 205 is executed.

[0074] In an embodiment, when the high-precision web 3D map displayed on the screen is moved, the 3D map engine can determine whether the display range buffer exceeds the data range. If the display range buffer exceeds the data range, the 3D map engine executes step 202; if the display range buffer does not exceed the data range, step 205 is executed.

[0075] In an embodiment, the display range is the range of the high-precision web 3D map currently displayed on the screen. The display range buffer is the circumscribed rectangle of the 1000-meter circular buffer with the longitude and latitude coordinates of the camera of the 3D map engine as the center point. The data range is the circumscribed rectangle of the 4000-meter circular buffer with the coordinate of the high-precision web 3D map currently displayed on the screen corresponding to the midpoint of the lower edge of the screen as the center point.

[0076] In step 202, the current map element data of the data range is loaded.

[0077] In an embodiment, if the display range buffer exceeds the data range, the 3D map engine reloads the current map element data of the data range.

[0078] In an embodiment, the map element data can include data of various road surface elements that need to be displayed on the screen by rendering on the high-precision web 3D map. The road surface elements include, but are not limited to, road surface, area surface, green belt, arrow, lane line, stop line, zebra crossing, and other map elements.

[0079] In step 203, according to the set attributes of each map element in the current map element data and the last map element data, obtain the to-be-added map element data, the to-be-updated map element data, and / or the to-be-removed map element data in the current map element data.

[0080] In an embodiment, the 3D map engine can obtain the set attributes (such as ID attributes) of each map element in the current map element data and the last map element data according to the current map element data of the data range reloaded this time and the last map element data of the data range loaded last time, respectively; compare the set attributes of each map element in the current map element data and the last map element data according to the set attributes of each map element in the current map element data and the last map element data, and divide the current map element data into three groups: to-be-added data group, to-be-updated data group, and to-be-removed data group.

[0081] In a specific embodiment, the 3D map engine loads the map element data of the data range each time in an array format, defines the map element data of this time as a current array, defines the map element data of last time as a last array, defines the map elements in the map element data as objects, compares the ID attribute of each object in the current array with the ID attribute of each object in the last array, determines that the object does not need to be added if the ID attribute of the object exists in both the current array and the last array, determines that the object needs to be added if the ID attribute of the object only exists in the current array, determines that the object needs to be removed if the ID attribute of the object only exists in the last array, determines the map element data corresponding to the object as the to-be-updated map element data, the to-be-added map element data or the to-be-removed map element data, and puts the map element data corresponding to the object into the to-be-updated data group, the to-be-added data group or the to-be-removed data group.

[0082] In step 204, the to-be-added map element data is classified to obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the map element data of this time.

[0083] In an embodiment, the 3D map engine can classify the to-be-added map element data in the to-be-added data group, divide the map elements in the to-be-added map element data into two types, i.e., the first type of map elements and / or the second type of map elements, and accordingly obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the map element data of this time; the first type of map elements includes arrows and zebra crossings, and the second type of map elements includes road surfaces, area surfaces, green belts and lane lines.

[0084] In step 205, a first rendering algorithm is used to render and display the map element data of the first type of map elements in the display range buffer.

[0085] In an embodiment, the 3D map engine can employ a first rendering algorithm to render the map element data of the arrows and / or zebra stripes of the display range buffer. In rendering the map element data of the arrows and / or zebra stripes of the display range buffer, the 3D map engine acquires the picture of the arrows and / or zebra stripes of the display range buffer; in the process of acquiring the picture of the arrows and / or zebra stripes, a mask layer is added to the picture texture position of the arrows and / or zebra stripes; the acquired picture of the arrows and / or zebra stripes is added to the picture texture position of the arrows and / or zebra stripes, and the map element data of the arrows and / or zebra stripes of the display range buffer is rendered to the web three-dimensional map.

[0086] In an embodiment, the 3D map engine needs to add the picture of the arrows and / or zebra stripes to the web three-dimensional map when rendering the map element data of the arrows and / or zebra stripes to the web three-dimensional map. The 3D map engine acquires the picture of the arrows and / or zebra stripes through an asynchronous request; after the request is sent, the 3D map engine does not immediately obtain the picture of the arrows and / or zebra stripes, and the 3D map engine asynchronously obtains the picture of the arrows and / or zebra stripes; in the process of obtaining the picture of the arrows and / or zebra stripes, the 3D map engine adds a color texture box as a mask layer above the picture texture position of the arrows and / or zebra stripes; after obtaining the picture of the arrows and / or zebra stripes, the 3D map engine adds the picture of the arrows and / or zebra stripes to the web three-dimensional map, renders the map element data of the arrows and / or zebra stripes of the display range buffer to the web three-dimensional map, and removes the mask layer above the picture texture position of the arrows and / or zebra stripes.

[0087] In step 206, a second rendering algorithm is employed to render the map element data of the second type of map elements of the display range buffer.

[0088] In an embodiment, the 3D map engine can employ a second rendering algorithm to render the map element data of the road surface, area surface, green belt, lane line, and / or stop line of the display range buffer. The 3D map engine can render the map element data of the road surface, area surface, green belt, lane line, and / or stop line of the display range buffer to the web three-dimensional map according to the three-dimensional model of the road surface, area surface, green belt, lane line, and / or stop line.

[0089] In an embodiment, the 3D map engine can obtain a three-dimensional model of the road surface, the area surface, the green belt, the lane line, and / or the stop line in the map element data of the display range buffer according to the map element data of the road surface, the area surface, the green belt, the lane line, and / or the stop line in the display range buffer; and render the map element data of the road surface, the area surface, the green belt, the lane line, and / or the stop line in the display range buffer to the web 3D map according to the three-dimensional model of the road surface, the area surface, the green belt, the lane line, and / or the stop line.

[0090] In step 207, the rendering of the map element data to be updated is retained in the web 3D map.

[0091] In an embodiment, the 3D map engine does not process the map element data to be updated in the data group to be updated, and retains the rendering of the map element data to be updated in the web 3D map.

[0092] In step 208, the rendering of the map element data to be removed is removed from the web 3D map.

[0093] In an embodiment, the 3D map engine removes the rendering of the map element data to be removed in the data group to be removed from the web 3D map.

[0094] In step 209, the first type of map element and the second type of map element in the display range buffer are displayed on the screen according to the visibility distance threshold of the map element data of the first type of map element and the second type of map element.

[0095] In an embodiment, the visibility distance threshold of the map element data of the road surface and the green belt is a first set distance threshold; the visibility distance threshold of the map element data of the arrow, the lane line, the stop line, and the zebra crossing is a second set distance threshold; if the visibility distance of the map element data of the road surface and the green belt is less than the first set distance threshold, the road surface and / or the green belt in the display range buffer is displayed on the screen; if the visibility distance of the map element data of the arrow, the lane line, the stop line, and the zebra crossing is less than the second set distance threshold, the map element data of the arrow, the lane line, the stop line, and / or the zebra crossing in the display range buffer is displayed on the screen.

[0096] In an embodiment, the visible distance of the map element data is the distance of the map element data from the camera of the 3D map engine. The first set distance threshold can be 800 meters, and the second set distance threshold can be 300 meters. If the visible distance of the map element data of the road surface and the green belt is less than 800 meters, the 3D map engine displays the road surface and / or the green belt of the display range buffer on the screen display. If the visible distance of the map element data of the arrow, the lane line, the stop line and the zebra crossing is less than 300 meters, the 3D map engine displays the map element data of the arrow, the lane line, the stop line and / or the zebra crossing of the display range buffer on the screen display.

[0097] In an embodiment, the area surface can be a surface representing a large range of ground, and can be of different types, for example, can represent green land, cement ground, water system, industrial park, business district, residential area, educational institution, medical institution, etc. In an embodiment, the visible distance of the area surface is not limited, and the area surface can be displayed on the screen display.

[0098] The map rendering method of the embodiment of the present application classifies the current map element data, obtains the map element data of the first type of map element and / or the map element data of the second type of map element in the current map element data, uses a first rendering algorithm to render the map element data of the first type of map element in the display range buffer, and / or uses a second rendering algorithm to render the map element data of the second type of map element in the display range buffer. Different rendering algorithms are used to render the map element data of different map elements, so that the display picture of the map is not flickering, and the user experience is good.

[0099] Further, the map rendering method of the embodiment of the present application retains the rendering of the to-be-updated map element data in the web 3D map, compares the current map element data and the last map element data during the movement of the high-precision web 3D map, and does not need to render the already rendered to-be-updated map element data, which can save processing resources, improve the rendering speed of the map element data, make the display picture of the map not flickering, and improve the user experience.

[0100] Further, the map rendering method of the embodiment of the present application displays the first type of map element and the second type of map element in the display range buffer according to the visible distance threshold of the map element data of the first type of map element and the second type of map element, which can save processing resources, improve the display speed of the map element data, improve the display performance, make the display picture of the map not flickering, and improve the user experience.

[0101] Figure 3 FIG. 6 is another flowchart of the map rendering method according to an embodiment of the present application.

[0102] Referring toFigure 3 A map rendering method, comprising:

[0103] In step 301, it is judged whether the display range buffer exceeds the data range; if yes, step 302 is executed; if no, step 304 is executed.

[0104] This step can refer to the description of step 201, which will not be repeated here.

[0105] In step 302, the current map element data of the data range is loaded.

[0106] This step can refer to the description of step 202, which will not be repeated here.

[0107] In step 303, the current map element data is classified to obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data.

[0108] In an embodiment, the 3D map engine can classify the current map element data, divide the map elements in the current map element data into two types: the first type of map elements and / or the second type of map elements, and accordingly obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data; wherein the first type of map elements includes road surface, area surface, lane line, and stop line, and the second type of map elements includes green belt, arrow, and zebra crossing.

[0109] In step 304, the first rendering algorithm is used to render the map element data of the first type of map elements in the display range buffer.

[0110] In an embodiment, the 3D map engine can render the map element data of the road surface, area surface, lane line, and / or stop line in the display range buffer on the web three-dimensional map; and remove the map element data of the road surface, area surface, lane line, and / or stop line rendered last time on the web three-dimensional map.

[0111] In an embodiment, the first type of map elements, such as road surface, area surface, lane line, stop line, etc., are color texture type map elements. The 3D map engine can obtain the map element data of the color texture type map elements of the road surface, area surface, lane line, and / or stop line, etc. in the display range buffer, obtain all the color texture type map elements in the map element data of the color texture type map elements, take all the color texture type map elements of the road surface, area surface, lane line, and / or stop line, etc. as new map elements, take each of the new map elements of the road surface, area surface, lane line, and / or stop line, etc. as an object, and render the new map elements on the web three-dimensional map. Then, the rendering of all the color texture type map elements of the road surface, area surface, lane line, and / or stop line, etc. in the last time is removed from the web three-dimensional map.

[0112] In an embodiment, the 3D map engine obtains the map element data of the color texture type map elements of the road surface, area surface, lane line, and / or stop line, etc. in the current display range buffer, takes all the color texture type map elements of the road surface, area surface, lane line, and / or stop line, etc. in the obtained map element data of the current display range buffer as new map elements, saves the new map elements as map entities, and saves the map entities in a set array. The map entities in the set array are rendered on the web three-dimensional map. After the rendering of all the map entities in the set array is completed, the callback process is triggered. Then, all the same map entities rendered in the last time are removed from the web three-dimensional map.

[0113] In step 305, the map element data of the second type of map elements in the display range buffer is rendered by using the second rendering algorithm.

[0114] In an embodiment, the 3D map engine can render the map element data of the green belt, arrow, and / or zebra crossing in the display range buffer on the web three-dimensional map according to the three-dimensional model of the green belt, arrow, and / or zebra crossing.

[0115] In an embodiment, the 3D map engine can obtain the three-dimensional model of the green belt, arrow, and / or zebra crossing in the map element data of the display range buffer according to the map element data of the green belt, arrow, and / or zebra crossing in the display range buffer, and render the map element data of the green belt, arrow, and / or zebra crossing in the display range buffer on the web three-dimensional map according to the three-dimensional model of the green belt, arrow, and / or zebra crossing.

[0116] In step 306, the first type of map elements and the second type of map elements in the display range buffer are displayed on the screen according to the visual distance threshold of the map element data of the first type of map elements and the second type of map elements.

[0117] This step can refer to the description of step 209, which will not be repeated here.

[0118] The map rendering method of the embodiment of the application can obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data by classifying the current map element data; render the map element data of the first type of map elements in the display range buffer by using the first rendering algorithm; and / or render the map element data of the second type of map elements in the display range buffer by using the second rendering algorithm. Different rendering algorithms are used to render the map element data of different map elements, so that the display picture of the map has no flicker and the user experience is good.

[0119] Further, the map rendering method of the embodiment of the application can render all the map element data of the color texture type of map elements such as road surface, area surface, lane line and stop line in the current display range buffer, and replace the map element data of the color texture type of map elements such as road surface, area surface, lane line and stop line in the last display range buffer as a whole, so that the display picture of the map has no flicker and the user experience is good.

[0120] Corresponding to the foregoing application function implementation method embodiment, the application further provides a map rendering device, an electronic device and corresponding embodiments.

[0121] Figure 4 FIG. 1 is a structural schematic diagram of a map rendering device according to an embodiment of the application.

[0122] Referring to FIG. 1, Figure 4 A map rendering device includes a loading module 401, a classification module 402, a first rendering module 403 and a second rendering module 404.

[0123] The loading module 401 is configured to load current map element data in a data range.

[0124] The classification module 402 is configured to classify the current map element data loaded by the loading module 401, and obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the current map element data.

[0125] The first rendering module 403 is configured to render the map element data of the first type of map elements obtained by the classification module 402 in the display range buffer by using the first rendering algorithm.

[0126] The second rendering module 404 is configured to render the map element data of the second type of map elements obtained by the classification module 402 in the display range buffer by using the second rendering algorithm.

[0127] The technical scheme of the embodiment of the application is characterized in that: the map element data of the current time is classified to obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the map element data of the current time; the first rendering algorithm is used to render the map element data of the first type of map elements in the display range buffer; and / or the second rendering algorithm is used to render the map element data of the second type of map elements in the display range buffer; different rendering algorithms are used to render the map element data of different map elements, so that the display picture of the map does not flicker and the user experience is good.

[0128] Figure 5 FIG. 4 is another structural schematic diagram of a map rendering device according to an embodiment of the application.

[0129] Referring to Figure 5 A map rendering device can be a 3D map engine, and the map rendering device comprises a judging module 501, a loading module 401, a classifying module 402, a first rendering module 403, a second rendering module 404, and a display module 502.

[0130] The judging module 501 is configured to judge whether the display range buffer exceeds the data range.

[0131] In an embodiment, the loading module 401 is further configured to load the map element data of the current time in the data range if the judging module 501 judges that the display range buffer exceeds the data range.

[0132] In an embodiment, the classifying module 402 is further configured to obtain the to-be-added map element data, the to-be-updated map element data, and / or the to-be-removed map element data in the map element data of the current time according to the set properties of each map element in the map element data of the current time and the map element data of the last time; and classify the to-be-added map element data to obtain the map element data of the first type of map elements and / or the map element data of the second type of map elements in the map element data of the current time; wherein the first type of map elements comprises arrows and zebra crossings, and the second type of map elements comprises road surfaces, area surfaces, green belts, lane lines, and stop lines.

[0133] In an embodiment, the first rendering module 403 is further configured to obtain the pictures of the arrows and / or the zebra crossings in the display range buffer; add a mask layer to the texture position of the pictures of the arrows and / or the zebra crossings in the process of obtaining the pictures of the arrows and / or the zebra crossings in the display range buffer; and add the obtained pictures of the arrows and / or the zebra crossings to the texture position of the pictures of the arrows and / or the zebra crossings to render the map element data of the arrows and / or the zebra crossings in the display range buffer to the web three-dimensional map.

[0134] In an embodiment, the second rendering module 404 is further configured to render the map element data of the road surface, the area surface, the green belt, the lane line, and / or the stop line of the display range buffer to the web three-dimensional map according to the three-dimensional model of the road surface, the area surface, the green belt, the lane line, and / or the stop line.

[0135] In an embodiment, the second rendering module 404 is further configured to retain the rendering of the map element data to be updated in the web three-dimensional map, and remove the rendering of the map element data to be removed from the web three-dimensional map.

[0136] The display module 502 is configured to display the first type of map element and the second type of map element of the display range buffer on the screen according to the visual distance threshold of the map element data of the first type of map element and the second type of map element.

[0137] In another embodiment, the classification module 402 is further configured to classify the current map element data to obtain the map element data of the first type of map element and / or the map element data of the second type of map element in the current map element data, wherein the first type of map element includes the road surface, the area surface, the lane line, and the stop line, and the second type of map element includes the green belt, the arrow, and the zebra crossing.

[0138] The first rendering module 403 is further configured to render the map element data of the road surface, the area surface, the lane line, and / or the stop line of the display range buffer to the web three-dimensional map, and remove the map element data of the road surface, the area surface, the lane line, and / or the stop line rendered last time from the web three-dimensional map.

[0139] The second rendering module 404 is further configured to render the map element data of the green belt, the arrow, and / or the zebra crossing of the display range buffer to the web three-dimensional map according to the three-dimensional model of the green belt, the arrow, and / or the zebra crossing.

[0140] As to the apparatus in the above-mentioned embodiments, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.

[0141] Figure 6 FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application.

[0142] Referring to FIG. 1, Figure 6 The electronic device 1000 includes a memory 1010 and a processor 1020.

[0143] The processor 1020 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can be any conventional processor.

[0144] The memory 1010 can include various types of storage units, such as a system memory, a read-only memory (ROM), and a permanent storage device. Among them, the ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device can be a readable and writable storage device. The permanent storage device can be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a mass storage device (such as a magnetic or optical disk, a flash memory) as a permanent storage device. In some other embodiments, the permanent storage device can be a removable storage device (such as a floppy disk, an optical drive). The system memory can be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory can store some or all instructions and data required by the processor during runtime. In addition, the memory 1010 can include a combination of any computer readable storage media, including various types of semiconductor memory chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic disks and / or optical disks. In some embodiments, the memory 1010 can include a readable and / or writable removable storage device, such as a compact disc (CD), a read-only digital versatile disc (such as DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a min SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer readable storage medium does not include a carrier wave and a transient electronic signal transmitted through wireless or wired transmission.

[0145] The memory 1010 stores executable code, which, when processed by the processor 1020, can cause the processor 1020 to perform part or all of the above-mentioned methods.

[0146] Furthermore, the method according to the present application can also be implemented as a computer program or a computer program product, which comprises computer program code instructions for executing some or all of the steps of the above-mentioned method according to the present application.

[0147] Alternatively, the present application can also be implemented as a computer readable storage medium (or a non-transitory machine readable storage medium or a machine readable storage medium) having stored thereon executable codes (or computer programs or computer instruction codes) which, when executed by a processor of an electronic device (or a server, etc.), cause the processor to perform some or all of the steps of the above-mentioned method according to the present application.

[0148] The above has described the embodiments of the present application, the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes are obvious to those skilled in the art without departing from the scope and spirit of the described embodiments. The selection of the terms used herein is intended to best explain the principles of the embodiments, practical application or improvement of the technology in the market, or to enable other ordinary skilled in the art to understand the embodiments disclosed herein.

Claims

1. A map rendering method, characterized in that, include: Load the current map element data within the data range; The current map element data is classified to obtain map element data of the first type of map elements and / or map element data of the second type of map elements in the current map element data; A first rendering algorithm is used to render map element data of the first type of map elements in the display area buffer; wherein the first type of map elements includes arrows and zebra crossings; wherein the process includes: acquiring images of the arrows and / or zebra crossings in the display area buffer; adding a mask layer to the texture position of the images of the arrows and / or zebra crossings in the process of acquiring the images of the arrows and / or zebra crossings in the display area buffer; adding the acquired images of the arrows and / or zebra crossings to the texture position of the images of the arrows and / or zebra crossings; rendering the map element data of the arrows and / or zebra crossings in the display area buffer onto a webpage 3D map and removing the mask layer; A second rendering algorithm is used to render map element data of the second type of map elements in the display range buffer; wherein, the second type of map elements includes road surface, area surface, green belt, lane line, and stop line; wherein, the rendering includes: rendering the map element data of the road surface, area surface, green belt, lane line, and / or stop line in the display range buffer onto a webpage 3D map based on the 3D model of the road surface, the area surface, the green belt, the lane line, and / or the stop line; The display range buffer is a rectangle circumscribed by a circular map data buffer with a first preset radius distance centered on the latitude and longitude coordinates of the camera of the 3D map engine. The data range is a rectangle circumscribed by a circular map data buffer with a second preset radius distance centered on the coordinates of the lower edge of the screen displaying the current 3D map engine. The second preset radius distance is greater than the first preset radius distance.

2. The method according to claim 1, characterized in that, The method further includes: Based on the visible distance threshold of the map element data of the first type of map element and the second type of map element, the first type of map element and the second type of map element in the display range buffer are displayed on the screen; the visible distance threshold represents the distance of the map element from the camera of the 3D map engine when the map element can be displayed in the display range buffer.

3. The method according to claim 2, characterized in that, The current map element data of the loaded data range includes: if the display range buffer exceeds the data range, the current map element data of the loaded data range.

4. The method according to claim 2, characterized in that, The step of classifying the current map element data to obtain map element data of the first type of map elements and / or the second type of map elements in the current map element data includes: Based on the set attributes of each map element in the current map element data and the previous map element data, obtain the map element data to be added in the current map element data; The map element data to be added is classified to obtain map element data of the first type of map elements and / or map element data of the second type of map elements in the current map element data.

5. The method according to claim 1, characterized in that, The method further includes: Based on the set attributes of each map element in the current map element data and the previous map element data, obtain the map element data to be updated in the current map element data; The rendering of the map element data to be updated will be preserved in the webpage's 3D map.

6. A map rendering device, characterized in that, include: The loading module is used to load the current map element data within the data range; The classification module is used to classify the map element data loaded by the loading module in the current time, and obtain the map element data of the first type of map element and / or the map element data of the second type of map element in the current map element data; A first rendering module is used to render map element data of a first type of map elements obtained by the classification module in the display range buffer using a first rendering algorithm; wherein the first type of map elements includes arrows and zebra crossings; wherein the rendering module includes: acquiring images of the arrows and / or zebra crossings in the display range buffer; adding a mask layer to the texture position of the images of the arrows and / or zebra crossings during the acquisition of the images of the arrows and / or zebra crossings in the display range buffer; adding the acquired images of the arrows and / or zebra crossings to the texture position of the images of the arrows and / or zebra crossings in the display range buffer; and displaying the images of the arrows and / or zebra crossings in the display range buffer. The first rendering module renders the map element data of the zebra crossing and / or the zebra crossing onto a webpage 3D map and removes the masking layer; the second rendering module is used to render the map element data of the second type of map elements obtained by the classification module in the display range buffer using a second rendering algorithm; wherein the second type of map elements includes road surface, area surface, green belt, lane line, and stop line; wherein it includes: rendering the map element data of the road surface, area surface, green belt, lane line, and / or stop line in the display range buffer onto a webpage 3D map based on the 3D model of the road surface, the area surface, the green belt, the lane line, and / or the stop line; The display range buffer is a rectangle circumscribed by a circular map data buffer with a first preset radius distance centered on the latitude and longitude coordinates of the camera of the 3D map engine. The data range is a rectangle circumscribed by a circular map data buffer with a second preset radius distance centered on the coordinates of the lower edge of the screen displaying the current 3D map engine. The second preset radius distance is greater than the first preset radius distance.

7. An electronic device, characterized in that, include: processor; as well as A memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that: It stores executable code that, when executed by a processor of an electronic device, causes the processor to perform the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Map rendering method, map rendering device, map server and storage medium

    CN110059151A

  • Rendering method and device and cloud service

    CN114283247A

  • Map display method and device, equipment and storage medium

    CN115908676A