Dynamic screenshot method, device, electronic device and storage medium

By screening rendering pictures from various perspectives of vector maps and synthesizing dynamic pictures, the problem that traditional single screenshots cannot display the theme style of vector tile maps is solved, and an efficient dynamic screenshot method is realized, ensuring the theme style display of different perspectives is achieved. .

CN113808240BActive Publication Date: 2024-11-01QI AN XIN TECHNOLOGY GROUP INC +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010530608.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-11
Publication Date
2024-11-01
Estimated Expiration
2040-06-11

AI Technical Summary

Technical Problem

Traditional vector tile maps support independent rendering of map elements, and a single screenshot cannot fully display its theme style, making it difficult to understand designs at different levels of perspectives.

Method used

By seizing rendered images from various hierarchical perspectives on the vector map and combining the captured images into dynamic pictures, such as GIF pictures, we realize the dynamic screenshot method to ensure that we understand the theme styles of different hierarchical perspectives from a rendered picture.

Benefits of technology

It automatically obtains the screening and rendering pictures from each level of the vector map, solving the problem that a single screenshot cannot fully understand the theme style of the vector map, and improving the display efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113808240B_ABST
    Figure CN113808240B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a dynamic screenshot method, device, electronic device and storage medium, the method comprising: capturing rendering images of each level of perspective of a vector map; synthesizing the rendering images captured at each level of perspective into a dynamic image. The embodiment of the present invention captures rendering images of each level of perspective of a vector map, and synthesizes the rendering images captured at each level of perspective into a dynamic image. Therefore, it can be seen that the embodiment of the present invention automatically obtains the captured rendering images of each level of perspective of the vector map through such a processing method, achieving the purpose of understanding the theme style of different levels of perspectives from one rendering image, and well solving the problem that a single screenshot in the prior art cannot fully understand the theme style of the vector map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a dynamic screenshot method, device, electronic equipment and storage medium. Background Art

[0002] Traditional raster tile maps display consistent themes at different levels, so only one screenshot is needed to understand the map theme during display. Vector tile maps support independent rendering of map elements such as buildings, roads, POIs, and boundaries. Therefore, for vector tile maps, a single screenshot can no longer clearly display the theme style of the vector tile map. Summary of the invention

[0003] In view of the problems in the prior art, embodiments of the present invention provide a dynamic screenshot method, device, electronic device and storage medium.

[0004] Specifically, the embodiment of the present invention provides the following technical solutions:

[0005] In a first aspect, an embodiment of the present invention provides a dynamic screenshot method based on vector map rendering, comprising:

[0006] Capture rendered images of vector maps at all levels;

[0007] The rendered images captured at each level are combined into a dynamic image.

[0008] Furthermore, the rendering pictures of the vector map at each level of perspective are captured, specifically including:

[0009] Determine the time point when the vector map is rendered at each level of view;

[0010] According to the rendering completion time of each level, the rendering images of each level perspective of the vector map are captured.

[0011] Furthermore, the determining of the time point at which the rendering of the vector map at each level of perspective is completed specifically includes:

[0012] After receiving an operation instruction to enter any level of perspective, generating a tag value corresponding to the any level of perspective according to the operation instruction;

[0013] Generate a rendering instruction according to the operation instruction, and send the tag value to a rendering processor after encapsulating the rendering instruction, so that the rendering processor performs rendering processing on the vector data of any level of perspective;

[0014] Receiving a trigger message sent by the rendering processor to inform that rendering of the vector data corresponding to any level of perspective is completed;

[0015] It is determined whether the tag value carried in the trigger message is consistent with the generated tag value corresponding to any level of perspective. If so, the current time point is determined to be the time point when the rendering of the vector map at any level of perspective is completed.

[0016] Furthermore, the rendering pictures of each level of the vector map are intercepted according to the rendering completion time of each level, specifically including:

[0017] At the time point when the rendering of each level is completed, the rendering images of the corresponding level perspective are captured for the vector map.

[0018] Furthermore, before capturing the rendered images of each level of the vector map, the method further includes:

[0019] Determine the order of capturing rendering images at each level of the vector map;

[0020] Accordingly, the rendering pictures of the vector map at each level of perspective are captured, specifically including:

[0021] According to the rendering image capture sequence, rendering images of each level of viewing angle are captured for the vector map.

[0022] Furthermore, the various levels of perspectives include: a national level perspective, a city level perspective and a building level perspective.

[0023] In a second aspect, an embodiment of the present invention further provides a dynamic screenshot device based on vector map rendering, comprising:

[0024] The capture module is used to capture the rendered images of the vector map at various levels of perspective;

[0025] The synthesis module is used to synthesize the rendered images captured at various levels of perspective into dynamic images.

[0026] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the dynamic screenshot method based on vector map rendering as described in the first aspect are implemented.

[0027] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the dynamic screenshot method based on vector map rendering as described in the first aspect.

[0028] In a fifth aspect, an embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the steps of the dynamic screenshot method based on vector map rendering as described in the first aspect.

[0029] It can be seen from the above technical solution that the dynamic screenshot method, device, electronic device and storage medium provided in the embodiments of the present invention capture the rendering images of the vector map at each level of perspective, and synthesize the rendering images captured at each level of perspective into a dynamic image. Therefore, it can be seen that the embodiments of the present invention automatically obtain the captured rendering images of each level of perspective of the vector map through such a processing method, thereby achieving the purpose of understanding the theme styles of different levels of perspectives from one rendering image, and well solving the problem that a single screenshot in the prior art cannot fully understand the theme style of the vector map. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A flowchart of a dynamic screenshot method based on vector map rendering provided by an embodiment of the present invention;

[0032] Figure 2 A schematic diagram of an implementation process of a dynamic screenshot method based on vector map rendering provided by an embodiment of the present invention;

[0033] Figure 3 A schematic diagram of another implementation process of a dynamic screenshot method based on vector map rendering provided by an embodiment of the present invention;

[0034] Figure 4 A schematic diagram of the structure of a dynamic screenshot device based on vector map rendering provided by an embodiment of the present invention;

[0035] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0037] The themes displayed at different levels of traditional raster tile maps are consistent, so only one screenshot is needed to understand the map theme during display, while vector tile maps support independent rendering of map elements such as buildings, roads, POIs, and boundaries. Therefore, the style designs displayed at different map levels are different. A single screenshot can no longer clearly display the style of the corresponding theme. For this reason, an embodiment of the present invention provides a method for dynamically displaying screenshots. Specifically, an embodiment of the present invention dynamically captures the rendered images of each level of the vector map, and synthesizes the rendered images captured at each level into a dynamic image, thereby realizing a dynamic screenshot method based on vector map rendering that is easy to implement and efficient in operation. This method will eventually generate a dynamic image (such as a GIF image), which solves the problem that a single screenshot cannot fully understand the theme style design. The dynamic screenshot method based on vector map rendering provided by the present invention will be explained and illustrated in detail below through specific embodiments.

[0038] Figure 1 FIG. 1 is a flow chart showing a dynamic screenshot method based on vector map rendering provided by an embodiment of the present invention. Figure 1 As shown, the dynamic screenshot method based on vector map rendering provided by the embodiment of the present invention includes the following steps:

[0039] Step 101: capturing rendering images of the vector map at each level of viewing angle;

[0040] In this embodiment, in order to solve the problem that a single screenshot in the prior art cannot fully understand the theme style of the vector map, this embodiment adopts a process of capturing the rendered images of the vector map at each level of perspective. In this way, the captured rendered images of the vector map at each level of perspective can be automatically obtained, and then combined with the next step of synthesizing the rendered images captured at each level of perspective into a dynamic image, the purpose of understanding the theme styles of different levels of perspectives from one rendered image can be achieved.

[0041] In this embodiment, it should be noted that each hierarchical perspective can be a hierarchical perspective based on each map element and obtained from each map element. The map element here refers to: element information contained in the map data, such as country, city, county, region, road surface, ocean, building, green space and other information. Accordingly, each hierarchical perspective can be a national hierarchical perspective, a city hierarchical perspective, a county hierarchical perspective, a district hierarchical perspective, a road hierarchical perspective, an ocean hierarchical perspective, a building hierarchical perspective, a green space hierarchical perspective, and the like.

[0042] Step 102: Synthesize the rendered images captured at each level of viewing angle into a dynamic image.

[0043] In this embodiment, the rendered images captured at different levels of perspective are synthesized into a dynamic image, so as to achieve the purpose of understanding the theme style of the vector map at different levels of perspective from one rendered image.

[0044] In this embodiment, the dynamic image here can be a dynamic image in GIF format. The characteristics of GIF format are high compression ratio and less disk space occupation, so this image format has been widely used. The dynamic image in GIF format can store several still images at the same time to form a continuous animation, making it one of the few formats that support 2D animation.

[0045] For example, the rendering images at the national level perspective, the city level perspective and the building level perspective can be sequentially captured, and then the rendering images at these levels of perspective can be synthesized into a dynamic image, thereby achieving the purpose of understanding the theme rendering styles of different levels of perspectives such as the national level perspective, the city level perspective and the building level from one rendering image.

[0046] It can be seen from the above technical solution that the dynamic screenshot method provided by the embodiment of the present invention captures the rendering images of the vector map at each level of perspective, and synthesizes the rendering images captured at each level of perspective into a dynamic image. Therefore, it can be seen that the embodiment of the present invention automatically obtains the captured rendering images of each level of perspective of the vector map through such a processing method, thereby achieving the purpose of understanding the theme styles of different levels of perspectives from one rendering image, and well solves the problem that a single screenshot in the prior art cannot fully understand the theme style of the vector map.

[0047] Based on the content of the above embodiment, in this embodiment, the rendering image capture of each level perspective of the vector map specifically includes:

[0048] Determine the time point when the vector map is rendered at each level of view;

[0049] According to the rendering completion time of each level, the rendering images of each level perspective of the vector map are captured.

[0050] In this embodiment, when capturing the rendered images of each level of perspective of the vector map, the key issue is to determine when to perform the screenshot operation of each level of perspective, that is, it is necessary to know the timing of the completion of rendering of each level of perspective. Therefore, in this embodiment, capturing the rendered images of each level of perspective of the vector map includes two parts. The first part is to determine the time point when the rendering of the vector map is completed at each level of perspective, and the second part is to capture the rendered images of each level of perspective of the vector map according to the time point when the rendering of each level is completed.

[0051] In this embodiment, there are multiple implementation methods for the first part of determining the time point at which the rendering of the vector map is completed at each level of perspective. For example, the first implementation method is to set a fixed rendering delay for each level of perspective, and then for each level of perspective, after the fixed rendering delay ends, the screenshot processing of the corresponding level of perspective is performed. However, there may be a problem with this method, that is, setting a fixed delay for screenshots, it is possible that the map tiles of the corresponding level have not been fully rendered before the screenshot is started, which leads to a problem of reduced accuracy.

[0052] In addition, it should be noted that in addition to the above-mentioned processing method of setting a fixed rendering delay for each level of perspective, the second implementation method can also be adopted: set different adaptive rendering delays according to the amount of data for each level of perspective. For example, for the national level perspective, the displayed data content is relatively large, so the corresponding rendering delay can be set to be longer. For the building level perspective, the displayed data content is relatively small, so the corresponding rendering delay can be set to be shorter. It should be noted that this processing method can solve the problem of inaccurate screenshot timing when using a fixed rendering delay to a certain extent compared to the processing method of fixed rendering delay.

[0053] In addition, in a more preferred processing method, the third implementation method can also be used: by obtaining the signal of the completion of map rendering at each level of perspective, using the signal as a marker to determine the time point when the vector map is rendered at each level of perspective. Compared with the methods of using a fixed rendering delay or an adaptive rendering delay mentioned in ①-②. The third processing method can greatly improve the accuracy of screenshots at each level of perspective because it can accurately obtain the time point when the rendering is completed at each level of perspective.

[0054] Based on the content of the above embodiment, in this embodiment, determining the time point at which the rendering of the vector map at each level of perspective is completed specifically includes:

[0055] After receiving an operation instruction to enter any level of perspective, generating a tag value corresponding to the any level of perspective according to the operation instruction;

[0056] Generate a rendering instruction according to the operation instruction, and send the tag value to a rendering processor after encapsulating the rendering instruction, so that the rendering processor performs rendering processing on the vector data of any level of perspective;

[0057] Receiving a trigger message sent by the rendering processor to inform that rendering of the vector data corresponding to any level of perspective is completed;

[0058] It is determined whether the tag value carried in the trigger message is consistent with the generated tag value corresponding to any level of perspective. If so, the current time point is determined to be the time point when the rendering of the vector map at any level of perspective is completed.

[0059] In this embodiment, a specific implementation method for determining the time point at which the rendering of the vector map is completed at each level of perspective is given. Specifically, in this embodiment, after receiving an operation instruction to enter each level of perspective, a mark value corresponding to the level of perspective is generated according to the operation instruction (for example, a variable animated is created to mark the current level perspective change), and then a rendering instruction is generated according to the operation instruction, and the mark value is encapsulated in the rendering instruction and sent to the rendering processor, so that the rendering processor renders the vector data of the level perspective. After receiving the corresponding rendering instruction, the rendering processor will read and store the mark value therein, and then perform rendering processing operations on the corresponding level according to the rendering instruction. When the rendering processor completes the rendering processing, it will send a trigger message to inform that the rendering of the vector data of the corresponding level perspective is complete, and the rendering processor will place the mark value read previously in the trigger message. Therefore, after receiving the trigger message sent by the rendering processor to inform that the rendering of the vector data corresponding to any level of perspective is completed, it is determined whether the mark value carried in the trigger message is consistent with the generated mark value corresponding to any level of perspective. If so, it indicates that the rendering work of the corresponding level has been completed. At this time, the current time point can be determined as the time point when the rendering of the vector map at the corresponding level of perspective is completed.

[0060] Combine the following Figure 2 The dynamic screenshot method provided in this embodiment is explained and illustrated in detail. Figure 2As shown in the figure, when the map perspective changes (from one level perspective to another), a variable animated will be created to mark the change of the current level perspective. The vector tile layer will calculate the tile data required for this change, and then the map will load the tile data. When the data is loaded, the loadedData event will be triggered. After the vector tile layer receives the event, it will determine whether the animated tag is consistent with the previously passed tag. If they are consistent, it is considered that the map rendering of this change has been completed and the screenshot operation can be performed. Otherwise, wait for the next event to be triggered. If it times out, an exception will be prompted and the screenshot needs to be taken again. In this way, the corresponding pictures are captured at the corresponding level and finally synthesized into GIF pictures.

[0061] Based on the content of the above embodiment, in this embodiment, the rendering pictures of each level of the vector map are intercepted according to the rendering completion time point of each level, specifically including:

[0062] At the time point when the rendering of each level is completed, the rendering images of the corresponding level perspective are captured for the vector map.

[0063] In this embodiment, what I want to explain is that after the rendering completion time points of each level are determined through the above embodiments, the rendering pictures of the corresponding level perspective are captured for the vector map directly at the rendering completion time points of each level, so as to accurately obtain the rendered pictures of the corresponding level, so that the pictures can accurately represent the style theme of the corresponding level.

[0064] Based on the content of the above embodiment, in this embodiment, before capturing the rendered images of each level of perspective of the vector map, the method further includes:

[0065] Determine the order of capturing rendering images at each level of the vector map;

[0066] Accordingly, the rendering pictures of the vector map at each level of perspective are captured, specifically including:

[0067] According to the rendering image capture sequence, rendering images of each level of viewing angle are captured for the vector map.

[0068] In this embodiment, when capturing the rendered images of each level perspective, the screenshot processing can be performed according to a preset order. For example, the screenshot processing can be performed in the order of the national level perspective, the city level perspective, and the building level perspective. When the screenshot processing is performed according to the set level order, it is necessary to determine when to enter which level perspective one by one, and then capture the rendered images of each level perspective of the vector map.

[0069] Figure 3It is a complete dynamic screenshot process based on vector map rendering. Figure 3 The diagram shows the screenshot processing process in the order of national level perspective, city level perspective and building level perspective. When the user issues a screenshot command, the map will first animate to the national perspective and create an animated marker, and then the vector tile layer will calculate the tile data required for this change. When the vector tile layer calculates the required tile data, it can use the following processing process: A. Determine the trapezoidal bounding box range (also called the visible area) of the window through the intersection of the camera cone and the XOZ plane; B. Calculate the coordinates of the trapezoidal bounding box range; C. According to the coordinates of the trapezoidal bounding box range, infer the pyramid tiles of the four corners to obtain the tile pyramid bounding box range; D. Calculate the index of the current window tile according to the tile pyramid bounding box.

[0070] Following the above introduction, after the vector tile layer calculates the required tile data, it will load the tile data. After the data is loaded, the loadedData event is triggered. After receiving the event, the vector tile layer determines whether the animated tag is consistent with the previously passed tag. If they are consistent, it is considered that the map rendering of this change has ended and the screenshot operation can be performed. Otherwise, it waits for the next event to be triggered. If it times out, it will prompt an exception and need to take a screenshot again. After the screenshot operation is completed, it is determined whether the current perspective is the building level. If not, it is determined whether the current level is the city perspective. If not, a screenshot operation of the city perspective is performed. If true, a screenshot operation of the building level is performed. If the current perspective is already the building level, it is considered that the screenshot operation has been completed, and the captured pictures are synthesized into the final GIF picture according to the level data, so as to achieve the purpose of understanding the theme design of different perspectives from one picture. It should be noted that when the captured pictures are synthesized into the final GIF picture according to the level data, they can be tiled and synthesized in the order of the national level perspective, the city level perspective and the building level perspective.

[0071] According to the above description, the present embodiment provides a dynamic screenshot method, which first obtains the rendering screenshots of each level of perspective, and then synthesizes the captured pictures into a final GIF picture according to the level data, so as to achieve the purpose of understanding the theme style of different perspectives from one picture. In addition, the present embodiment also provides a dynamic screenshot method driven by the vector map rendering end event. Compared with the method of setting a large delay to take a screenshot, the dynamic screenshot method based on vector map rendering obtains the signal of the map rendering end and is driven by the event, which greatly improves the accuracy of the screenshot (setting a delay to take a screenshot will often cause the map tile to be not fully rendered before the screenshot is taken, resulting in reduced accuracy), eliminates redundant waiting time, and runs efficiently and is easy to operate. It can be seen that the present embodiment adopts the idea of ​​taking screenshots of each level of perspective in combination with the method of driving dynamic screenshots according to the rendering end event at each level, which well solves the problem that a single screenshot cannot fully understand the theme style design.

[0072] Figure 4 FIG. 1 shows a schematic diagram of the structure of a dynamic screenshot device based on vector map rendering provided by an embodiment of the present invention. Figure 4 As shown, the dynamic screenshot device based on vector map rendering provided in this embodiment includes: a capture module 21 and a synthesis module 22, wherein:

[0073] The capture module 21 is used to capture the rendered images of the vector map at each level of viewing angle;

[0074] The synthesis module 22 is used to synthesize the rendered images captured at each level of viewing angle into a dynamic image.

[0075] Based on the contents of the above embodiments, in this embodiment, the interception module 21 is specifically used for:

[0076] Determine the time point when the vector map is rendered at each level of view;

[0077] According to the rendering completion time of each level, the rendering images of each level perspective of the vector map are captured.

[0078] Based on the content of the above embodiment, in this embodiment, when determining the time point at which the rendering of the vector map at each level of perspective is completed, the interception module 21 is specifically used to:

[0079] After receiving an operation instruction to enter any level of perspective, generating a tag value corresponding to the any level of perspective according to the operation instruction;

[0080] Generate a rendering instruction according to the operation instruction, and send the tag value to a rendering processor after encapsulating the rendering instruction, so that the rendering processor performs rendering processing on the vector data of any level of perspective;

[0081] Receiving a trigger message sent by the rendering processor to inform that rendering of the vector data corresponding to any level of perspective is completed;

[0082] It is determined whether the tag value carried in the trigger message is consistent with the generated tag value corresponding to any level of perspective. If so, the current time point is determined to be the time point when the rendering of the vector map at any level of perspective is completed.

[0083] Based on the content of the above embodiment, in this embodiment, when the interception module 21 intercepts the rendering pictures of each level of the vector map according to the rendering completion time point of each level, it is specifically used to:

[0084] At the time point when the rendering of each level is completed, the rendering images of the corresponding level perspective are captured for the vector map.

[0085] Based on the content of the above embodiment, in this embodiment, before the interception module 21 intercepts the rendering images of each level of the vector map, it is also used to:

[0086] Determine the order of capturing rendering images at each level of the vector map;

[0087] Accordingly, when the interception module 21 intercepts the rendered images of each level of the vector map, it is specifically used to:

[0088] According to the rendering image capture sequence, rendering images of each level of viewing angle are captured for the vector map.

[0089] Based on the content of the above embodiment, in this embodiment, the various levels of perspective include: a national level perspective, a city level perspective and a building level perspective.

[0090] Since the dynamic screenshot device based on vector map rendering provided in the embodiment of the present invention can be used to execute the dynamic screenshot method based on vector map rendering described in the above embodiment, its working principle and beneficial effects are similar, so they will not be described in detail here. For specific contents, please refer to the introduction of the above embodiment.

[0091] In this embodiment, it should be noted that the various modules in the device of the embodiment of the present invention can be integrated into one or deployed separately. The above modules can be combined into one module or further divided into multiple sub-modules.

[0092] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, see Figure 5 , the electronic device specifically includes the following contents: a processor 301, a memory 302, a communication interface 303 and a communication bus 304;

[0093] The processor 301, the memory 302, and the communication interface 303 communicate with each other via the communication bus 304;

[0094] The processor 301 is used to call the computer program in the memory 302. When the processor executes the computer program, all steps of the above-mentioned dynamic screenshot method based on vector map rendering are implemented. For example, when the processor executes the computer program, the following process is implemented: capturing rendering images of the vector map at each level of perspective; and synthesizing the rendering images captured at each level of perspective into a dynamic image.

[0095] It can be understood that the detailed functions and extended functions that can be executed by the computer program can refer to the description of the above embodiments.

[0096] Based on the same inventive concept, another embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, all steps of the above-mentioned dynamic screenshot method based on vector map rendering are implemented. For example, when the processor executes the computer program, the following process is implemented: the vector map is rendered at each level of perspective and the rendered images captured at each level of perspective are synthesized into a dynamic image. It can be understood that the detailed functions and extended functions that can be executed by the computer program can refer to the description of the above embodiment.

[0097] Based on the same inventive concept, another embodiment of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, all steps of the above-mentioned associated application startup control method are implemented. For example, when the processor executes the computer program, the following process is implemented: the vector map is rendered at each level of perspective and the rendered images captured at each level of perspective are synthesized into a dynamic image. It can be understood that the detailed functions and extended functions that can be executed by the computer program can refer to the description of the above embodiment.

[0098] It can be understood that the detailed functions and extended functions that can be executed by the computer program can refer to the description of the above embodiments.

[0099] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as 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.

[0100] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. Those of ordinary skill in the art may understand and implement them without creative effort.

[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the dynamic screenshot method based on vector map rendering described in each embodiment or some parts of the embodiment.

[0102] In addition, in the present invention, 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 "include", "comprise" 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, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0103] In addition, in the present invention, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A dynamic screenshot method based on vector map rendering, characterized in that: include: Capture rendered images of vector maps at all levels; Each level perspective is a level perspective obtained from each map element; The rendering image capture of each level perspective of the vector map specifically includes: after receiving an operation instruction to enter any level perspective, generating a mark value corresponding to the any level perspective according to the operation instruction; generating a rendering instruction according to the operation instruction, and encapsulating the mark value in the rendering instruction and sending it to a rendering processor, so that the rendering processor performs rendering processing on the vector data of the any level perspective; receiving a trigger message sent by the rendering processor to inform that the rendering of the vector data corresponding to the any level perspective is completed; judging whether the mark value carried in the trigger message is consistent with the generated mark value corresponding to the any level perspective, and if so, determining the current time point as the rendering completion time point of the vector map at any level perspective; and capturing the rendering images of the vector map at each level perspective according to the rendering completion time point of each level; The rendered images captured at each level are combined into a dynamic image.

2. The dynamic screenshot method based on vector map rendering according to claim 1 is characterized in that: According to the rendering completion time point of each level, the rendering pictures of each level perspective of the vector map are intercepted, which specifically includes: At the time point when the rendering of each level is completed, the rendering images of the corresponding level perspective are captured for the vector map.

3. The dynamic screenshot method based on vector map rendering according to any one of claims 1 to 2, characterized in that: Before capturing the rendered images of each level of the vector map, the method further includes: Determine the order of capturing rendering images at each level of the vector map; Accordingly, the rendering pictures of the vector map at each level of perspective are captured, specifically including: According to the rendering image capture sequence, rendering images of each level of viewing angle are captured for the vector map.

4. The dynamic screenshot method based on vector map rendering according to any one of claims 1 to 2, characterized in that: The various levels of perspectives include: a national level perspective, a city level perspective and a building level perspective.

5. A dynamic screenshot device based on vector map rendering, characterized in that: include: The capture module is used to capture the rendered images of the vector map at various levels of perspective; Each level perspective is a level perspective obtained from each map element; The rendering image capture of each level perspective of the vector map specifically includes: after receiving an operation instruction to enter any level perspective, generating a mark value corresponding to the any level perspective according to the operation instruction; generating a rendering instruction according to the operation instruction, and encapsulating the mark value in the rendering instruction and sending it to a rendering processor, so that the rendering processor performs rendering processing on the vector data of the any level perspective; receiving a trigger message sent by the rendering processor to inform that the rendering of the vector data corresponding to the any level perspective is completed; judging whether the mark value carried in the trigger message is consistent with the generated mark value corresponding to the any level perspective, and if so, determining the current time point as the rendering completion time point of the vector map at any level perspective; and capturing the rendering images of the vector map at each level perspective according to the rendering completion time point of each level; The synthesis module is used to synthesize the rendered images captured at various levels of perspective into dynamic images.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the dynamic screenshot method based on vector map rendering as described in any one of claims 1 to 4 are implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the dynamic screenshot method based on vector map rendering as claimed in any one of claims 1 to 4 are implemented.

8. A computer program product, the computer program product comprising a computer program, characterized in that: When the computer program is executed by a processor, the steps of the dynamic screenshot method based on vector map rendering as claimed in any one of claims 1 to 4 are implemented.