Map layer loading method, device, equipment and storage medium

By preloading and storing map layers when users log in for the first time, the problem of slow map loading process is solved, achieving faster loading speed and better user experience.

CN113656528BActive Publication Date: 2024-09-10SHENZHEN PING AN MEDICAL HEALTH TECHNOLOGY SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111016945.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-09-10
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

Existing map layers load slowly, especially when users zoom in and out, resulting in slow page loading and poor user experience.

Method used

By preloading the initial layers and tile maps when the user logs in for the first time and storing them in the local cache, when the user logs in for a non-first time or zooms in on the map, the data is loaded directly from the local cache, reducing the burden on the map service provider. Number of requests.

Benefits of technology

Significantly improves map loading speed and user experience, reducing the number of network requests and loading time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113656528B
    Figure CN113656528B
Patent Text Reader

Abstract

The present invention relates to the field of data processing, and discloses a map layer loading method, device, equipment and storage medium, the method comprising: when a user logs into a geographic information system, determining whether it is the first login; if so, calculating the row information and column information corresponding to the business mark point at each display level according to the coordinate information and display field of view information of the business mark point in the business mark point set, and then downloading the tile map set of the business mark point at each display level from the preset tile map file; storing the tile map set as a cache data set in a preset local layer cache database; when the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, loading the corresponding map data according to the cache data set. This method loads the tile map corresponding to the business mark point into the local cache, and when the user performs an operation, directly loads the tile map from the local cache, thereby improving the efficiency of map loading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a map layer loading method, device, equipment and storage medium. Background Art

[0002] Geographic Information System (GIS) is a specific and very important spatial information system. It is a technical system that collects, stores, manages, calculates, analyzes, displays and describes the geographical distribution data in the whole or part of the earth's surface (including the atmosphere) with the support of computer hardware and software systems.

[0003] In actual business, GIS applications often mark the coordinates of different locations on the map. These coordinates are usually distributed irregularly, such as the distribution points of hospitals and schools in a city. After opening the page, the user will zoom in and out on the map in order to more clearly understand the detailed information of these map coordinate locations and the surrounding road conditions. At this time, the map engine (map framework) begins to send new layer requests to the backend according to the page requirements. Due to factors such as the network, the loading process is sometimes very slow, and the user's zooming operation is coherent. Sometimes a large map with several levels is issued, so the page will load too slowly and there will be too many concurrent requests, which takes a long time and the user experience is not very good. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem of slow loading process of existing map layers.

[0005] A first aspect of the present invention provides a map layer loading method, comprising: when a user logs into the geographic information system, loading an initial layer according to preset center coordinates, and displaying the initial layer on the geographic information system; determining whether the user is logging into the geographic information system for the first time; if so, obtaining coordinate information of a business mark point in a preset business mark point set and display field of view information of the geographic information system; calculating row information and column information corresponding to the business mark point at each display level according to the coordinate information and display field of view information; downloading tile maps corresponding to the business mark point at each display level from a preset tile map file according to the row information and the column information to obtain a tile map set; storing the tile map set corresponding to all business mark points in the business mark point set as a cache data set in a preset local layer cache database; when the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, loading corresponding map data according to the cache data set in the local layer cache database.

[0006] Optionally, in a first implementation method of the first aspect of the present invention, calculating the row information and column information corresponding to the business mark point at each display level based on the coordinate information and the display field of view information includes: obtaining the actual unit size of each pixel and the preset tile size corresponding to each display level; calculating the actual length represented by each tile corresponding to each display level based on the actual unit size of each pixel and the tile size; calculating the coordinates of the field of view origin based on the display field of view information, and calculating the coordinate distance based on the coordinate information and the field of view origin coordinates, wherein the coordinate distance includes a row distance and a column distance, respectively; dividing the row distance and the column distance by the actual length and rounding down to obtain the corresponding row information and column information.

[0007] Optionally, in a second implementation method of the first aspect of the present invention, the tile maps corresponding to the business mark points at each display level are downloaded from a preset tile map file according to the row information and the column information to obtain a tile map set, including: obtaining the locators to be filled in of the tile maps provided by the map service provider; filling in the parameters in the locators to be filled in according to the row information and the column information to obtain the corresponding uniform resource locators; and obtaining the tile maps corresponding to the business mark points at each display level from the tile map file of the map service provider according to all the uniform resource locators to obtain a tile map set.

[0008] Optionally, in a third implementation method of the first aspect of the present invention, after obtaining the tile maps corresponding to the business mark points at each display level from the tile map file of the map service provider according to all the uniform resource locators to obtain the tile map set, it also includes: calculating the three-dimensional model coordinates of each tile map according to the tile map file; converting the image of each tile map in the tile map file into a texture image, and calculating the texture coordinates of the texture image; calling a preset rendering function to render each tile map according to the three-dimensional model coordinates, texture image and texture coordinates of each tile map to obtain a rendered tile map.

[0009] Optionally, in a fourth implementation method of the first aspect of the present invention, before downloading the tile maps corresponding to the business mark points at each display level from a preset tile map file to obtain the tile map set, it also includes: obtaining the mark point type of each mark point in the business mark point set; and assigning storage priority to each business mark point in the business mark point set according to a preset priority assignment rule and the mark point type.

[0010] Optionally, in the fifth implementation method of the first aspect of the present invention, after assigning storage priority to each of the business mark points according to the preset priority assignment rule and the mark point type, it also includes: using a thread pool of a preset size to download a preset number of tile maps, and recording the downloaded data volume, download time, CPU occupancy and memory occupancy; calculating the download pressure based on the data volume, download time, CPU occupancy and memory occupancy; adjusting the size of the thread pool and the download order of the tile maps according to the download pressure and a preset pressure threshold, wherein the download order is adjusted according to the storage priority.

[0011] Optionally, in a sixth implementation of the first aspect of the present invention, when the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, loading corresponding map data according to the cache data set in the local layer cache database includes:

[0012] When the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, a zoom area corresponding to the zoom operation is obtained; it is determined whether the zoom area contains business mark points in the business mark point concentration; if so, the corresponding tile map is retrieved from the cache data set in the local layer cache database according to the business mark points in the zoom area to load map data; if not, the corresponding tile map is downloaded from the preset tile map file according to the zoom area to load map data.

[0013] The second aspect of the present invention provides a map layer loading device, comprising: a login module, which is used to load an initial layer according to a preset center coordinate when a user logs in to the geographic information system, and display the initial layer on the geographic information system; a judgment module, which is used to judge whether the user logs in to the geographic information system for the first time; an acquisition module, which is used to obtain the coordinate information of the business mark point in the preset business mark point set and the display field of view information of the geographic information system when the user logs in to the geographic information system for the first time; a calculation module, which is used to calculate the row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information; a download module, which is used to download the tile map corresponding to the business mark point at each display level from the preset tile map file according to the row information and the column information to obtain a tile map set; a local storage module, which is used to store the tile map set corresponding to all the business mark points in the business mark point set as a cache data set in a preset local layer cache database; a loading module, which is used to load the corresponding map data according to the cache data set in the local layer cache database when the user does not log in to the geographic information system for the first time or the user performs a map zoom operation in the geographic information system.

[0014] Optionally, in a first implementation method of the second aspect of the present invention, the calculation module is specifically used to: obtain the actual unit size per pixel and the preset tile size corresponding to the display levels; calculate the actual length represented by each tile corresponding to each display level based on the actual unit size per pixel and the tile size; calculate the coordinates of the field of view origin based on the display field of view information, and calculate the coordinate distance based on the coordinate information and the field of view origin coordinates, wherein the coordinate distance includes a row distance and a column distance, respectively; divide the row distance and the column distance by the actual length and round down to obtain the corresponding row information and column information.

[0015] Optionally, in a second implementation method of the second aspect of the present invention, the download module is specifically used for: obtaining the locator to be filled in of the tile map provided by the map service provider; filling the parameters in the locator to be filled in according to the row information and the column information to obtain the corresponding uniform resource locator; obtaining the tile map corresponding to the business mark point at each display level from the tile map file of the map service provider according to all the uniform resource locators to obtain a tile map set.

[0016] Optionally, in a third implementation method of the second aspect of the present invention, the map layer loading device also includes a rendering module, which is specifically used to: calculate the three-dimensional model coordinates of each tile map according to the tile map file; convert the image of each tile map in the tile map file into a texture image, and calculate the texture coordinates of the texture image; call a preset rendering function to render each tile map according to the three-dimensional model coordinates, texture image and texture coordinates of each tile map to obtain a rendered tile map.

[0017] Optionally, in a fourth implementation method of the second aspect of the present invention, the map layer loading device also includes a priority allocation module, and the priority allocation module is specifically used to: obtain the marking point type of each marking point in the business marking point set; and assign storage priority to each business marking point in the business marking point set according to a preset priority allocation rule and the marking point type.

[0018] Optionally, in a fifth implementation of the second aspect of the present invention, the map layer loading device also includes a sorting module, which is specifically used to: use a thread pool of a preset size to download a preset number of tile maps, and record the downloaded data volume, download time, CPU occupancy and memory occupancy; calculate the download pressure based on the data volume, download time, CPU occupancy and memory occupancy; adjust the size of the thread pool and the download order of the tile maps according to the download pressure and a preset pressure threshold, wherein the download order is adjusted according to the storage priority.

[0019] Optionally, in a sixth implementation method of the second aspect of the present invention, the loading module is specifically used to: when the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, obtain a zoom area corresponding to the zoom operation; determine whether the zoom area contains business mark points in the business mark point concentration; if so, retrieve the corresponding tile map from the cache data set in the local layer cache database according to the business mark points in the zoom area to load map data; if not, download the corresponding tile map from the preset tile map file according to the zoom area to load map data.

[0020] The third aspect of the present invention provides a map layer loading device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the map layer loading device executes the steps of the above-mentioned map layer loading method.

[0021] A fourth aspect of the present invention provides a computer-readable storage medium, in which instructions are stored, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned map layer loading method.

[0022] In the technical solution of the present invention, when a user logs in to a geographic information system, an initial layer is loaded according to a preset central coordinate, and the initial layer is displayed on the geographic information system; it is determined whether the user logs in to the geographic information system for the first time; if so, the coordinate information of the business mark point in the preset business mark point set, the map display scale and the display field of view information of the geographic information system are obtained; the row information and column information corresponding to each display level of the business mark point under the display field of view information are calculated according to the coordinate information and the map display scale; according to the row information and the column information, the tile map corresponding to the business mark point under the level is retrieved from the preset tile map file to obtain a tile map set; the tile map set corresponding to all business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database; when the user does not log in to the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, the corresponding map layer is loaded according to the cache data set in the local layer cache database. This method pre-loads the tile map corresponding to the business mark point with a large user demand into the local cache, and when the user operates the map, it is directly loaded according to the tile map in the local cache, thereby improving the efficiency of map loading. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a schematic diagram of a first embodiment of a method for loading a map layer in an embodiment of the present invention;

[0024] Figure 2 It is a schematic diagram of a second embodiment of the map layer loading method in an embodiment of the present invention;

[0025] Figure 3 It is a schematic diagram of a third embodiment of the map layer loading method in an embodiment of the present invention;

[0026] Figure 4 This is a schematic diagram of a fourth embodiment of a map layer loading method according to an embodiment of the present invention;

[0027] Figure 5 This is a schematic diagram of a fifth embodiment of a map layer loading method according to an embodiment of the present invention;

[0028] Figure 6 A schematic diagram of an embodiment of a map layer loading device in an embodiment of the present invention;

[0029] Figure 7 It is a schematic diagram of another embodiment of the map layer loading device in the embodiment of the present invention;

[0030] Figure 8 A schematic diagram of an embodiment of a map layer loading device in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In the technical solution of the present invention, when a user logs in to a geographic information system, an initial layer is loaded according to a preset central coordinate, and the initial layer is displayed on the geographic information system; it is determined whether the user logs in to the geographic information system for the first time; if so, the coordinate information of the business mark point in the preset business mark point set, the map display scale and the display field of view information of the geographic information system are obtained; the row information and column information corresponding to each display level of the business mark point under the display field of view information are calculated according to the coordinate information and the map display scale; according to the row information and the column information, the tile map corresponding to the business mark point under the level is retrieved from the preset tile map file to obtain a tile map set; the tile map set corresponding to all business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database; when the user does not log in to the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, the corresponding map layer is loaded according to the cache data set in the local layer cache database. This method pre-loads the tile map corresponding to the business mark point with a large user demand into the local cache, and when the user operates the map, it is directly loaded according to the tile map in the local cache, thereby improving the efficiency of map loading.

[0032] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , the first embodiment of the map layer loading method in the embodiment of the present invention includes:

[0034] 101. When a user logs into the geographic information system, the initial layer is loaded according to the preset center coordinates and the initial layer is displayed on the geographic information system;

[0035] It is understandable that the execution subject of the present invention can be a map layer loading device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking the server as the execution subject as an example. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0036] In this embodiment, the Geographic Information System (GIS) is a specific and very important spatial information system. It is a technical system that collects, stores, manages, calculates, analyzes, displays and describes the relevant geographical distribution data in the entire or part of the earth's surface (including the atmosphere) space with the support of computer hardware and software systems. Users can view geographic information through the geographic information system. When the user has the need to view geographic information, open the geographic information system and log in to the account. After the login is completed, the geographic information system loads the initial layer through the preset central coordinates, and starts to load the coordinate information of the business coordinate point in parallel. In actual applications, GIS applications often mark the coordinates of different locations on the map. These coordinates are usually distributed irregularly, such as the hospital distribution points and school distribution points in a city. These points are business marking points.

[0037] 102. Determine whether the user is logging into the geographic information system for the first time;

[0038] In this embodiment, when a user logs into the geographic information system for the first time, the tile map corresponding to the business mark point is loaded into the local cache through preloading. When the user is not logging in for the first time, the map is loaded directly from the tile map loaded into the local cache during the previous first login. There is no need to download the corresponding tile map from the map service provider, thereby improving the map loading speed of the geographic information system.

[0039] 103. If yes, obtain the coordinate information of the business mark points in the preset business mark point set and the display field of view information of the geographic information system;

[0040] In this embodiment, in actual applications, GIS applications often mark the coordinates of different locations on the map. These coordinates are usually distributed irregularly, such as hospital distribution points and school distribution points in a city. These points are business marking points. The coordinates corresponding to the business marking points are mainly longitude and latitude coordinates, and can also be plane coordinates. In this embodiment, the display field of view information mainly includes the field of view resolution of the user screen, the actual distance represented by a pixel on the user screen, and other information.

[0041] 104. Calculate row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information;

[0042] In this embodiment, the display field of view information includes the origin is (x0, y0), the tile size of the map is tileSize, the actual distance represented by 1 pixel on the map screen is resolution, and the coordinate information of the business mark point is (x, y). The formula for the row and column number of the tile is:

[0043] col=floor((x0-x) / (tileSize*resolution))

[0044] row=floor((y0-y) / (tileSize*resolution))

[0045] Among them, col is the row information, row is the column information, and floor() is the floor rounding function. The meaning of the two formulas is to calculate the actual length LtileSize of a tile, and then calculate the actual distance LrealSize between the geographic coordinate point on the screen and the starting point of the tile cutting, and then divide the actual distance by the actual length of a tile to get the tile row and column number at this time. At different display levels, the distance between the origin in the display field of view information and the business mark point is different, and the actual distance represented by 1 pixel on the map screen will also be different, and then the corresponding row and column information at different display levels can be calculated.

[0046] 105. According to the row information and the column information, the tile maps corresponding to the business mark points at each display level are downloaded from the preset tile map file to obtain a tile map set;

[0047] In practical applications, the corresponding tile map can be determined according to the row information, column information and the corresponding display level. In this embodiment, the corresponding tile map is obtained from the map service provider according to the row information and column information under different display levels. For the service provider providing map services, it must have an interface for downloading tile map data, through which the tile map can be downloaded. Generally speaking, the tile map can be obtained by means of a uniform resource locator (URL). For example, the URL of the tile map provided by the electronic map service provider can be first obtained, and then the parameters in the URL are filled according to the tile map to be downloaded to form a complete URL. For example, the parameters that can be filled can at least include the type, longitude and latitude of the electronic map, the area span, and the zoom level. Preferably, the label language can also be included. After obtaining the complete URL, the tile map to be downloaded can be downloaded according to the complete URL. For the acquisition of the URL, the interaction with the electronic map service provider can be captured through a network packet capture tool, and the URL can be obtained by analyzing the captured data packets. Of course, for some electronic map service providers with open ports, they may directly provide a URL for downloading tile maps.

[0048] In this embodiment, tile maps are downloaded simultaneously in a multi-threaded manner, and multi-threading is used to load layer data of different business points, which is faster and does not affect other operations of the page.

[0049] 106. The tile map set corresponding to all the business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database;

[0050] In this embodiment, the tile maps in the tile map set are stored in the local layer cache database, and each display corresponds to a directory. The column information of the tile map under the display level is divided by M, and the quotient is the second-level directory name under the display level directory, and the remainder is the third-level directory name under the display level directory. The row information of the tile map under the display level is divided by M, and the quotient is the fourth-level directory name under the display level directory, and the remainder is the file name of the image file of the tile map, wherein M is a positive integer, and M corresponds to the display level. Through this implementation, the level of the directory can be determined by setting the value of M. For example, for display level 1, the number of pictures under its directory is much smaller than the number of pictures under the directory of display level 10. Then, when the display level is 1, the quotient of the division result is 0, that is, its second-level directory name is 0. It should be noted that 0 can be used as the second-level directory name, or the second-level directory name can be omitted, and the second-level directory is no longer set. For display level 10, it may be necessary to set a second-level directory, or even a third-level directory. The display levels from which the secondary directory needs to be set can be controlled by adjusting the M value. When the maximum display level is 20, the M value of 1024 is better. The tile map is stored locally according to the above multi-directory method.

[0051] 107. When a user does not log in to the geographic information system for the first time or when the user performs a map zoom operation in the geographic information system, corresponding map data is loaded according to the cache data set in the local layer cache database.

[0052] In this embodiment, when the user is not logging into the geographic information system for the first time or the user is performing a map zoom operation in the geographic information system, it means that the tile map corresponding to the business mark point has been stored in the local layer cache database, and the zoom area corresponding to the zoom operation is obtained; it is determined whether the zoom area contains the business mark points in the business mark point concentration; if so, the corresponding tile map is retrieved from the cache data set in the local layer cache database according to the business mark points in the zoom area to load the map data; if not, normal map loading is performed, and the corresponding tile map is downloaded from the preset tile map file according to the zoom area to load the map data.

[0053] In this embodiment, when a user logs in to a geographic information system, an initial layer is loaded according to a preset center coordinate, and the initial layer is displayed on the geographic information system; it is determined whether the user is logging in to the geographic information system for the first time; if so, the coordinate information of the business mark point in the preset business mark point set, the map display scale and the display field of view information of the geographic information system are obtained; the row information and column information corresponding to each display level of the business mark point under the display field of view information are calculated according to the coordinate information and the map display scale; according to the row information and the column information, the tile map corresponding to the business mark point under the level is retrieved from the preset tile map file to obtain a tile map set; the tile map set corresponding to all business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database; when the user is not logging in to the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, the corresponding map layer is loaded according to the cache data set in the local layer cache database. This method pre-loads the tile map corresponding to the business mark point with a large user demand into the local cache, and when the user operates the map, it is directly loaded according to the tile map in the local cache, thereby improving the efficiency of map loading.

[0054] See also Figure 2 , a second embodiment of the map layer loading method in the embodiment of the present invention includes:

[0055] 201. When a user logs into the geographic information system, the initial layer is loaded according to the preset center coordinates, and the initial layer is displayed on the geographic information system;

[0056] 202. Determine whether the user logs into the geographic information system for the first time;

[0057] 203. If yes, obtain the coordinate information of the business mark points in the preset business mark point set and the display field of view information of the geographic information system;

[0058] 204. Obtain the actual unit size of each pixel and the preset tile size corresponding to each display level;

[0059] In this embodiment, different display levels have corresponding map scales. If the map scale of the current display level is 1:125000000, it means that 1 meter on the map is equal to 125000000 meters in the real world. According to the conversion formula between meters and pixels: 1 inch = 0.0254 meters = 96 pixels; 1 pixel = 0.0254 / 96 meters, then according to the 1:125000000 scale, 1 pixel on the map represents a real distance of 125000000*0.0254 / 96=33072.9166666667 meters. The preset tile size is generally 256*256.

[0060] 205. Calculate the actual length represented by each tile corresponding to each display level according to the actual unit size of each pixel and the tile size;

[0061] 206. Calculate the coordinates of the field of view origin according to the display field of view information, and calculate the coordinate distance according to the coordinate information and the coordinates of the field of view origin, wherein the coordinate distance includes a row distance and a column distance respectively;

[0062] 207. Divide the row distance and the column distance by the actual length respectively and round down to obtain corresponding row information and column information;

[0063] In this embodiment, the actual length represented by each tile corresponding to each display level can be calculated by the actual unit size of each pixel and the tile size. For example, the preset tile size is generally 256*256, and 1 pixel in the figure represents the actual distance of 33072.9166666667m, then the calculated actual length represented by each tile is 8466666.6667m.

[0064] In this embodiment, after the above information is obtained, the row information and the column information can be calculated using the calculation formulas for the row information and the column information.

[0065] 208. According to the row information and the column information, download the tile maps corresponding to the business mark points at each display level from the preset tile map file to obtain a tile map set;

[0066] 209. The tile map set corresponding to all the business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database;

[0067] 210. When a user does not log in to the geographic information system for the first time or when the user performs a map zoom operation in the geographic information system, corresponding map data is loaded according to the cache data set in the local layer cache database.

[0068] Based on the previous embodiment, this embodiment describes in detail the process of calculating the row information and column information corresponding to the business mark point at each display level according to the coordinate information and display field of view information, by obtaining the actual unit size of each pixel corresponding to each display level and the preset tile size; calculating the actual length represented by each tile corresponding to each display level according to the actual unit size of each pixel and the tile size; calculating the coordinates of the field of view origin according to the display field of view information, and calculating the coordinate distance according to the coordinate information and the field of view origin coordinates, wherein the coordinate distance includes the row distance and the column distance respectively; dividing the row distance and the column distance by the actual length and rounding down to obtain the corresponding row information and column information. This embodiment can determine the row information and column information corresponding to the current map through the display field of view information of pixels and the screen, and then correctly download the corresponding tile map.

[0069] See also Figure 3 , a third embodiment of the map layer loading method in the embodiment of the present invention includes:

[0070] 301. When a user logs into the geographic information system, the initial layer is loaded according to the preset center coordinates, and the initial layer is displayed on the geographic information system;

[0071] 302. Determine whether the user logs into the geographic information system for the first time;

[0072] 303. If yes, obtain the coordinate information of the business mark points in the preset business mark point set and the display field of view information of the geographic information system;

[0073] 304. Calculate row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information;

[0074] 305. Obtain the locator to be filled in the tile map provided by the map service provider;

[0075] 306. Fill in the parameters in the locator to be filled according to the row information and the column information to obtain a corresponding uniform resource locator;

[0076] 307. Obtain tile maps corresponding to the business mark points at each display level from the tile map files of the map service provider according to all uniform resource locators to obtain a tile map set;

[0077] In this embodiment, for the service provider providing map services, it must have an interface for downloading tile map data, through which the tile map can be downloaded. Generally speaking, the tile map can be obtained by means of a uniform resource locator (URL). For example, the URL of the tile map provided by the electronic map service provider can be first obtained, and then the parameters in the URL are filled according to the tile map to be downloaded to form a complete URL. For example, the parameters that can be filled can at least include the type, longitude and latitude of the electronic map, the area span, and the zoom level. Preferably, the label language can also be included. After obtaining the complete URL, the tile map to be downloaded can be downloaded according to the complete URL. For the acquisition of the URL, the interaction with the electronic map service provider can be captured by a network packet capture tool, and the URL can be obtained by analyzing the captured data packets. Of course, for some electronic map service providers with open ports, they may directly provide a URL for downloading tile maps.

[0078] 308. Calculate the straight-line distance between the target resource acquisition agency and each resource acquisition agency according to the longitude coordinates and the latitude coordinates;

[0079] 309. Calculate the three-dimensional model coordinates of each tile map according to the tile map file;

[0080] 310. Convert the image of each tile map in the tile map file into a texture image, and calculate the texture coordinates of the texture image;

[0081] 311. According to the three-dimensional model coordinates, texture images and texture coordinates of each tile map, a preset rendering function is called to render each tile map to obtain a rendered tile map;

[0082] In practical applications, the tile map file is a variable-width character encoding for Unicode. The tile map creation device can obtain the data structure of the tile map file by parsing the tile map file, and then calculate the 3D model coordinates of each tile according to the above tile map file. The tile map creation device obtains the image path according to the tile map file, obtains the image of each tile according to the image path, and uses the OpenGL interface to generate a texture image corresponding to the image. When calling the above rendering function to render each of the above tiles respectively, the projection is set to orthogonal projection, and the blending method is set to glBlendFunc. According to the 3D model coordinates of each tile in each layer of the tile map, the texture image and the coordinates of the texture image, they are rendered one by one in the order of layers from small to large and tiles from small to large, and finally a complete tile map containing each of the above tiles can be obtained.

[0083] 312. The tile map set corresponding to all the business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database;

[0084] 313. When a user does not log in to the geographic information system for the first time or when the user performs a map zoom operation in the geographic information system, corresponding map data is loaded according to the cache data set in the local layer cache database.

[0085] Based on the previous embodiment, this embodiment describes in detail the process of downloading the tile map corresponding to the business mark point at each display level from the preset tile map file according to the row information and the column information to obtain the tile map set, by obtaining the to-be-filled locator of the tile map provided by the map service provider; filling the parameters in the to-be-filled locator according to the row information and the column information to obtain the corresponding uniform resource locator; obtaining the tile map corresponding to the business mark point at each display level from the tile map file of the map service provider according to all the uniform resource locators to obtain the tile map set. And the image rendering process is added, so that the tile map is fully displayed in the geographical information system.

[0086] See also Figure 4 , a fourth embodiment of the map layer loading method in the embodiment of the present invention includes:

[0087] 401. When a user logs into the geographic information system, an initial layer is loaded according to the preset center coordinates, and the initial layer is displayed on the geographic information system;

[0088] 402. Determine whether the user is logging into the geographic information system for the first time;

[0089] 403. If yes, obtain the coordinate information of the business mark points in the preset business mark point set and the display field of view information of the geographic information system;

[0090] 404. Calculate row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information;

[0091] 405. Obtain the marking point type of each marking point in the business marking point set;

[0092] 406. Allocate a storage priority for each of the service marking points according to a preset priority allocation rule and marking point type;

[0093] In this embodiment, since there are several business coordinate points, Web Workers technology is used here to perform multi-threaded requests for layer information. Considering that the user may start to zoom in on the business point coordinate position immediately after entering the page, when using webworker to create a request, the business point weight is first sorted. For example, there are multiple business mark points in the adjacent area. Since these business mark points are close to each other, their subordinate layers may have overlapping parts, so they have a higher priority. This can avoid sending requests to the background multiple times. By setting the priority, when downloading the corresponding tile map in multiple threads, the tile map corresponding to the business mark point with a higher priority is downloaded first, which can avoid sending requests to the map service provider multiple times.

[0094] 407. Use a thread pool of a preset size to download a preset number of tile maps, and record the amount of downloaded data, download time, CPU usage, and memory usage;

[0095] In this embodiment, since it is unclear at the time of the initial download what performance the terminal device of the user using to enter the geographic information system can provide for downloading, even if the devices have the same hardware, there may be differences in the performance available for downloading due to the different performance occupied by the background software. Therefore, this embodiment uses two preset parameters that have the greatest impact on the CPU and memory to perform the first download to obtain key information, namely the amount of data downloaded, the time consumed, the CPU occupancy rate during downloading, and the memory occupancy rate, so as to obtain the performance of the terminal device currently available for downloading. In this embodiment, the file recording the amount of data downloaded, the time consumed, the CPU occupancy rate during downloading, and the memory occupancy rate is updated in real time to ensure that the recorded download details are as detailed and complete as possible to facilitate subsequent processing.

[0096] 408. Calculate the download pressure based on the data volume, download time, CPU usage and memory usage;

[0097] 409. According to the download pressure and the preset pressure threshold, the size of the thread pool and the download order of the tile map are adjusted, wherein the download order is adjusted according to the storage priority;

[0098] In this embodiment, it is necessary to estimate the amount of computation required to download the data based on the amount of data downloaded and the time consumed, and then obtain the performance of the device currently available for downloading through the time consumed, CPU and memory usage during downloading. The download pressure is quantified as data for calculation, and compared with the target download pressure, i.e., the preset threshold. When it is higher than the preset threshold, the download pressure is lowered, and when it is lower than the preset threshold, the download pressure is increased. Under normal circumstances, the first download should be significantly lower than the preset threshold. The download pressure after downloading with the adjusted download parameters, i.e., the thread pool size and the number of tile maps, is usually not very close to the preset threshold. However, when downloading for the second time, the download parameters can still be adjusted by detecting key information so that the download pressure fits the preset threshold. Usually, when downloading for the third time, the download parameters are relatively stable, and when the background task occupies the performance again.

[0099] In this embodiment, the download order of tile maps in multi-threads is adjusted according to the relationship between the download pressure and the preset pressure threshold. When the download pressure is less than the pressure threshold, tile maps with lower priority can be downloaded at the same time as tile maps with higher priority. When the download pressure is greater than the pressure threshold, tile maps with higher priority are downloaded first.

[0100] 410. According to the row information and the column information, the tile maps corresponding to the business mark points at each display level are downloaded from the preset tile map file according to the storage priority to obtain a tile map set;

[0101] 411. The tile map set corresponding to all the business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database;

[0102] 412. When the user does not log in to the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, corresponding map data is loaded according to the cache data set in the local layer cache database.

[0103] Based on the previous embodiment, this embodiment adds a process of downloading tile maps according to storage priority, downloads a preset number of tile maps by using a thread pool of a preset size, and records the amount of downloaded data, download time, CPU occupancy rate, and memory occupancy rate; calculates the download pressure according to the amount of data, download time, CPU occupancy rate, and memory occupancy rate; adjusts the size of the thread pool and the download order of the tile maps according to the download pressure and the preset pressure threshold, wherein the download order is adjusted according to the storage priority. By setting the priority, important tile maps can be downloaded first when the computer resource pressure is high to avoid program errors.

[0104] See also Figure 5 , a fifth embodiment of the map layer loading method in the embodiment of the present invention includes:

[0105] 501. When a user logs into the geographic information system, an initial layer is loaded according to the preset center coordinates, and the initial layer is displayed on the geographic information system;

[0106] 502. Determine whether the user logs into the geographic information system for the first time;

[0107] 503. If yes, then obtain the coordinate information of the business mark points in the preset business mark point set and the display field of view information of the geographic information system;

[0108] 504. Calculate row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information;

[0109] 505. According to the row information and the column information, the tile maps corresponding to the business mark points at each display level are downloaded from the preset tile map file to obtain a tile map set;

[0110] 506. The tile map set corresponding to all the business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database;

[0111] 507. When the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, obtaining a zoom area corresponding to the zoom operation;

[0112] 508. Determine whether the zoom area contains a business mark point in the business mark point set;

[0113] 509. If yes, then according to the business mark point in the zoom area, the corresponding tile map is retrieved from the cache data set in the local layer cache database to load the map data;

[0114] 510. If not, download the corresponding tile map from the preset tile map file according to the zoom area to load the map data.

[0115] In this embodiment, when the user zooms in or out on the map or moves the map position, map data needs to be loaded. During the zooming and moving process, it is determined whether there are business mark points in the zoomed area or the area where the map is moved. For areas with business mark points, map data is loaded directly from the tile map stored in the local layer cache database at the time of the first login. The tile map is directly retrieved from the local area, and the loading speed is fast. For areas without business mark points, background download is required.

[0116] Based on the previous embodiment, the present embodiment describes in detail the process of loading corresponding map data according to the cached data set in the local layer cache database when the user is not logging into the geographic information system for the first time or the user is performing a map zoom operation in the geographic information system. When the user is not logging into the geographic information system for the first time or the user is performing a map zoom operation in the geographic information system, a zoom area corresponding to the zoom operation is obtained; it is determined whether the zoom area contains business mark points in the business mark point concentration; if so, according to the business mark points in the zoom area, the corresponding tile map is retrieved from the cached data set in the local layer cache database for map data loading; if not, the corresponding tile map is downloaded from the preset tile map file according to the zoom area for map data loading.

[0117] The map layer loading method in the embodiment of the present invention is described above. The map layer loading device in the embodiment of the present invention is described below. Figure 6 , an embodiment of a map layer loading device in an embodiment of the present invention includes:

[0118] Login module 601, used for loading an initial layer according to preset center coordinates when a user logs in to the geographic information system, and displaying the initial layer on the geographic information system;

[0119] The judgment module 602 is used to judge whether the user logs into the geographic information system for the first time;

[0120] An acquisition module 603 is used to acquire coordinate information of a business mark point in a preset business mark point set and display field of view information of the geographic information system when the user logs into the geographic information system for the first time;

[0121] A calculation module 604, configured to calculate row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information;

[0122] The download module 605 is used to download the tile maps corresponding to the business mark point at each display level from the preset tile map file according to the row information and the column information to obtain a tile map set;

[0123] The local storage module 606 is used to store the tile map sets corresponding to all the business mark points in the business mark point set as cache data sets in a preset local layer cache database;

[0124] The loading module 607 is used to load corresponding map data according to the cache data set in the local layer cache database when the user is not logging into the geographic information system for the first time or the user performs a map zooming operation in the geographic information system.

[0125] In an embodiment of the present invention, the map layer loading device runs the above-mentioned map layer loading method. When a user logs into a geographic information system, the map layer loading device loads an initial layer according to a preset center coordinate and displays the initial layer on the geographic information system; determines whether the user is logging into the geographic information system for the first time; if so, obtains coordinate information of a business mark point in a preset business mark point set, a map display scale, and display field of view information of the geographic information system; calculates row information and column information corresponding to each display level of the business mark point under the display field of view information according to the coordinate information and the map display scale; retrieves tile maps corresponding to the business mark point at the level from a preset tile map file according to the row information and the column information, and obtains a tile map set; stores the tile map set corresponding to all business mark points in the business mark point set as a cache data set in a preset local layer cache database; when the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, loads the corresponding map layer according to the cache data set in the local layer cache database. This method preloads tile maps corresponding to business markers with high user demand into the local cache. When the user operates the map, the tile maps in the local cache are directly loaded to improve the efficiency of map loading.

[0126] See also Figure 7 , a second embodiment of the map layer loading device in the embodiment of the present invention includes:

[0127] Login module 601, used for loading an initial layer according to preset center coordinates when a user logs in to the geographic information system, and displaying the initial layer on the geographic information system;

[0128] The judgment module 602 is used to judge whether the user logs into the geographic information system for the first time;

[0129] An acquisition module 603 is used to acquire coordinate information of a business mark point in a preset business mark point set and display field of view information of the geographic information system when the user logs into the geographic information system for the first time;

[0130] A calculation module 604, configured to calculate row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information;

[0131] The download module 605 is used to download the tile maps corresponding to the business mark point at each display level from the preset tile map file according to the row information and the column information to obtain a tile map set;

[0132] The local storage module 606 is used to store the tile map sets corresponding to all the business mark points in the business mark point set as cache data sets in a preset local layer cache database;

[0133] The loading module 607 is used to load corresponding map data according to the cache data set in the local layer cache database when the user is not logging into the geographic information system for the first time or the user performs a map zooming operation in the geographic information system.

[0134] In this embodiment, the calculation module 604 is specifically used to: obtain the actual unit size of each pixel corresponding to each display level and the preset tile size; calculate the actual length represented by each tile corresponding to each display level according to the actual unit size of each pixel and the tile size; calculate the coordinates of the field of view origin according to the display field of view information, and calculate the coordinate distance according to the coordinate information and the field of view origin coordinates, wherein the coordinate distance includes a row distance and a column distance, respectively; divide the row distance and the column distance by the actual length and round down to obtain the corresponding row information and column information.

[0135] In this embodiment, the download module 605 is specifically used for: obtaining the locator to be filled in of the tile map provided by the map service provider; filling the parameters in the locator to be filled in according to the row information and the column information to obtain the corresponding uniform resource locator; obtaining the tile map corresponding to the business mark point at each display level from the tile map file of the map service provider according to all the uniform resource locators to obtain a tile map set.

[0136] In this embodiment, the map layer loading device also includes a rendering module 608, which is specifically used to: calculate the three-dimensional model coordinates of each tile map according to the tile map file; convert the image of each tile map in the tile map file into a texture image, and calculate the texture coordinates of the texture image; according to the three-dimensional model coordinates, texture image and texture coordinates of each tile map, call a preset rendering function to render each tile map to obtain a rendered tile map.

[0137] In this embodiment, the map layer loading device also includes a priority allocation module 609, and the priority allocation module 609 is specifically used to: obtain the mark point type of each mark point in the business mark point set; and assign storage priority to each business mark point in the business mark point set according to a preset priority allocation rule and the mark point type.

[0138] In this embodiment, the map layer loading device also includes a sorting module 610, which is specifically used to: use a thread pool of a preset size to download a preset number of tile maps, and record the downloaded data volume, download time, CPU occupancy and memory occupancy; calculate the download pressure based on the data volume, download time, CPU occupancy and memory occupancy; adjust the size of the thread pool and the download order of the tile maps according to the download pressure and a preset pressure threshold, wherein the download order is adjusted according to the storage priority.

[0139] In this embodiment, the loading module 607 is specifically used to: obtain a zoom area corresponding to the zoom operation when the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system; determine whether the zoom area contains business mark points in the business mark point concentration; if so, retrieve the corresponding tile map from the cache data set in the local layer cache database according to the business mark points in the zoom area to load map data; if not, download the corresponding tile map from the preset tile map file according to the zoom area to load map data.

[0140] Based on the previous embodiment, this embodiment describes in detail the specific functions of each module and the unit structure of some modules. Through the newly added modules, the tile maps corresponding to the business mark points with high user demand are pre-loaded into the local cache. When the user operates the map, it is directly loaded according to the tile map in the local cache, thereby improving the efficiency of map loading.

[0141] above Figure 6 and Figure 7The map layer loading device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The map layer loading device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0142] Figure 8 1 is a schematic diagram of the structure of a map layer loading device provided by an embodiment of the present invention. The map layer loading device 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 810 (for example, one or more processors) and a memory 820, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 833 or data 832. Among them, the memory 820 and the storage medium 830 may be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the map layer loading device 800. Furthermore, the processor 810 may be configured to communicate with the storage medium 830, and execute a series of instruction operations in the storage medium 830 on the map layer loading device 800 to implement the steps of the above-mentioned map layer loading method.

[0143] The map layer loading device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input and output interfaces 860, and / or one or more operating systems 831, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 8 The map layer loading device structure shown does not constitute a limitation on the map layer loading device provided in the present application, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0144] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the map layer loading method.

[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including 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: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0147] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. 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 map layer loading method, characterized in that: The map layer loading method comprises: When a user logs into the geographic information system, an initial layer is loaded according to a preset center coordinate, and the initial layer is displayed on the geographic information system; Determining whether the user logs into the geographic information system for the first time; If yes, then obtaining coordinate information of the business mark points in the preset business mark point set and display field of view information of the geographic information system; Calculate the row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information; According to the row information and the column information, downloading the tile maps corresponding to the business mark point at each display level from a preset tile map file to obtain a tile map set; The tile map set corresponding to all the business mark points in the business mark point set is stored as a cache data set in a preset local layer cache database; When the user is not logging into the geographic information system for the first time or the user is performing a map zooming operation in the geographic information system, corresponding map data is loaded according to the cache data set in the local layer cache database; Before downloading the tile maps corresponding to the business mark points at each display level from a preset tile map file and obtaining the tile map set, the method further includes: obtaining the mark point type of each mark point in the business mark point set; assigning a storage priority to each business mark point in the business mark point set according to a preset priority assignment rule and the mark point type; After allocating storage priority to each of the business mark points according to the preset priority allocation rule and the mark point type, it also includes: using a thread pool of a preset size to download a preset number of tile maps, and recording the downloaded data volume, download time, CPU occupancy and memory occupancy; calculating the download pressure according to the data volume, download time, CPU occupancy and memory occupancy; adjusting the size of the thread pool and the download order of the tile maps according to the download pressure and a preset pressure threshold, wherein the download order is adjusted according to the storage priority.

2. The map layer loading method according to claim 1, characterized in that: The calculating the row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information includes: Obtaining the actual unit size of each pixel and the preset tile size corresponding to each display level; Calculate the actual length represented by each tile corresponding to each display level according to the actual unit size of each pixel and the tile size; Calculating the coordinates of the field of view origin according to the display field of view information, and calculating the coordinate distance according to the coordinate information and the field of view origin coordinates, wherein the coordinate distance includes a row distance and a column distance respectively; The row distance and the column distance are respectively divided by the actual length and rounded down to obtain corresponding row information and column information.

3. The map layer loading method according to claim 1, characterized in that: The step of downloading the tile maps corresponding to the business mark point at each display level from a preset tile map file according to the row information and the column information to obtain a tile map set includes: Get the locator to be filled in the tile map provided by the map service provider; Fill in the parameters in the locator to be filled according to the row information and the column information to obtain a corresponding uniform resource locator; According to all the uniform resource locators, tile maps corresponding to the business mark points at each display level are obtained from the tile map file of the map service provider to obtain a tile map set.

4. The map layer loading method according to claim 3, characterized in that: After obtaining the tile maps corresponding to the business mark points at each display level from the tile map files of the map service provider according to all the uniform resource locators to obtain a tile map set, the method further includes: Calculating the three-dimensional model coordinates of each tile map according to the tile map file; Converting the image of each tile map in the tile map file into a texture image, and calculating the texture coordinates of the texture image; According to the three-dimensional model coordinates, texture images and texture coordinates of each tile map, a preset rendering function is called to render each tile map to obtain a rendered tile map.

5. The map layer loading method according to any one of claims 1 to 4, characterized in that: When the user does not log in to the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, loading corresponding map data according to the cache data set in the local layer cache database includes: When the user is not logging into the geographic information system for the first time or the user performs a map zoom operation in the geographic information system, obtaining a zoom area corresponding to the zoom operation; Determining whether the zoom area includes a service mark point in the service mark point set; If so, according to the business mark point in the zoom area, the corresponding tile map is retrieved from the cache data set in the local layer cache database to load the map data; If not, the corresponding tile map is downloaded from a preset tile map file according to the zoom area to load the map data.

6. A map layer loading device, characterized in that: The map layer loading device comprises: A login module, used for loading an initial layer according to a preset center coordinate when a user logs into the geographic information system, and displaying the initial layer on the geographic information system; A judgment module, used to judge whether the user logs into the geographic information system for the first time; An acquisition module, used for acquiring coordinate information of a business mark point in a preset business mark point set and display field of view information of the geographic information system when the user logs into the geographic information system for the first time; A calculation module, used to calculate the row information and column information corresponding to the business mark point at each display level according to the coordinate information and the display field of view information; A download module, used to download the tile maps corresponding to the business mark points at each display level from a preset tile map file according to the row information and the column information, to obtain a tile map set; A local storage module, used to store the tile map sets corresponding to all the business mark points in the business mark point set as cache data sets in a preset local layer cache database; A loading module, used for loading corresponding map data according to the cache data set in the local layer cache database when the user is not logging into the geographic information system for the first time or the user is performing a map zooming operation in the geographic information system; The map layer loading device also includes a priority allocation module, which is specifically used to: obtain the mark point type of each mark point in the business mark point set; allocate storage priority to each business mark point in the business mark point set according to a preset priority allocation rule and the mark point type; The map layer loading device also includes a sorting module, which is specifically used to: use a thread pool of a preset size to download a preset number of tile maps, and record the downloaded data volume, download time, CPU occupancy and memory occupancy; calculate the download pressure based on the data volume, download time, CPU occupancy and memory occupancy; adjust the size of the thread pool and the download order of the tile maps according to the download pressure and a preset pressure threshold, wherein the download order is adjusted according to the storage priority.

7. A map layer loading device, characterized in that: The map layer loading device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory so that the map layer loading device executes the steps of the map layer loading method as described in any one of claims 1-5.

8. A 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 map layer loading method according to any one of claims 1 to 5 are implemented.