Wasm-based map vector rendering method and device
A map and vector technology, applied in the computer field, can solve the problems of low rendering efficiency, inefficient javascript language performance, and bloated application, so as to save the rendering process and improve the rendering speed of big data and image loading speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] figure 1 The flow chart of the wasm-based map vector rendering method provided by the embodiment of the present invention.
[0053] refer to figure 1 , the method includes the following steps:
[0054] Step S101, creating a map image layer, the map image layer is created using canvas technology;
[0055]Step S102, rendering the map image layer based on the wasm rendering method to obtain rendered pixel data;
[0056] Step S103, copying the rendered pixel data to a specified storage area corresponding to the canvas;
[0057] Step S104, loading the map image layer in the designated storage area to obtain rendered map vector data.
[0058] The wasm-based map vector rendering method provided by the embodiment of the present invention creates a map image layer, which is created using canvas technology; uses the wasm rendering method to render the map image layer, and obtains the rendered map image layer Pixel data; copy the rendered pixel data to the designated storage ...
Embodiment 2
[0068] Figure 5 It is a schematic diagram of a wasm-based map vector rendering device provided by an embodiment of the present invention.
[0069] refer to Figure 5 , the device includes a creating module 10 , a rendering module 20 , a copying module 30 and a loading module 40 .
[0070] Create module 10, be used for creating map image layer, this map image layer is to utilize canvas technology to create;
[0071] The rendering module 20 is configured to render the map image layer based on the wasm rendering method to obtain rendered pixel data;
[0072] The copying module 30 is used for copying the rendered pixel data to a designated storage area corresponding to the canvas;
[0073] The loading module 40 is configured to load the map image layer in the designated storage area to obtain rendered map vector data.
[0074] Further, the device also includes:
[0075] The initialization module (not shown) is configured to initialize the created map image layer, and transfe...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


