Method and terminal for displaying interest surface in map

By pre-buffering and dynamically updating interest area data on the map display interface, the problem of computing resource overload and lag when zooming and moving the map is solved, and the smoothness and user experience of map display are improved.

CN118643238APending Publication Date: 2024-09-13SHANGHAI SHENXUE SUPPLY CHAIN MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410778567.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

During the map drawing process, when the map is zoomed to the street level, a large amount of area of ​​interest (AOI) data needs to be loaded, resulting in overloading of computing resources and page freezes, affecting the user experience.

Method used

Adopt a pre-buffering mechanism to display (N-2)*(N-2) rasters of interest area data centered on the current map position on the map display interface, and buffer other raster data externally, updating when the map moves Display edge raster data and actively request adjacent area of ​​interest data, dynamically adjusting buffers to optimize memory utilization and response speed.

Benefits of technology

It effectively reduces overloading and lagging caused by direct loading of AOI data, improves the smoothness and response speed of the display of interest areas in the map, enhances the user experience, and ensures the continuity and integrity of data at different zoom levels and when moving the map. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643238A
    Figure CN118643238A
Patent Text Reader

Abstract

The invention discloses a method and terminal for displaying an interest surface in a map, and relates to the technical field of map display. In the method, a terminal displays interest surface data of partial grids with a current map position as the center on a map display interface, and buffers other grid data; and when the map moves and the updated and displayed map is located at the edge grid, displaying the edge grid data buffered in the direction, and requesting the adjacent grid data in the direction for buffering. By implementing the technical scheme provided by the invention, the display fluency of the interest points in the map is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map display technology, and in particular to a method and terminal for displaying a surface of interest in a map. Background Art

[0002] With the rapid development of e-commerce, the express delivery industry is becoming increasingly prosperous. In order to ensure timely delivery of express parcels and improve customer satisfaction, it is crucial to accurately locate the outlets to which the express parcels belong. At present, the mainstream practice is to use online maps, with outlet managers drawing the collection and delivery range of their outlets, and then use algorithms to determine the ownership of the express parcels.

[0003] In some map drawing methods, the administrator can reduce the workload of manual drawing by selecting the Area of ​​Interest (AOI) recommended by the system, such as neighborhoods and schools. Specifically, the map system stores the boundary coordinates and other information of AOIs in various places in the database in advance. When drawing a map, the system reads the AOI data and overlays the AOI boundaries on the map. The administrator can quickly circle the service scope of the network point by clicking the appropriate AOI, thereby greatly improving the drawing efficiency.

[0004] However, when drawing a network map, the map needs to be zoomed to the street level. At this time, the number of AOIs that need to be loaded on the map is extremely large, often as many as thousands, which will take up too many computing resources and cause page freezes. Summary of the invention

[0005] The present application provides a method and a terminal for displaying a surface of interest in a map, which are used to improve the smoothness of displaying points of interest in a map.

[0006] In a first aspect, the present application provides a method for displaying an interest surface in a map, comprising: when a map display interface is started, a terminal sends a first interest surface data request to a server, the first interest surface data request includes a current map position and first map level information displayed in the map display interface, the first interest surface data request is used to request interest surface data of N*N grids centered on the current map position in a first full map division grid; the first full map division grid is obtained by dividing a first-level full map storing interest surface data corresponding to the first map level information; N is a preset positive integer greater than 4; after receiving the interest surface data of the N*N grids returned by the server, the terminal displays (N-2 )*(N-2) grids, and buffer the interest surface data of other grids in the N*N grids outside the (N-2)*(N-2) grids; after detecting that the map in the map display interface moves in a first direction, the terminal determines that the first part of the map to be updated and displayed corresponds to the edge grid in the first direction of the N*N grids, the terminal displays the buffered interest surface data of the edge grid in the first direction in the map on the map display interface, and sends an interest surface data update request to the server; the interest surface data update request is used to request the interest surface data of N grids adjacent to the N*N grids in the first direction in the first full map division grid; the terminal buffers the received interest surface data of the N grids in the first direction outside the N*N grids.

[0007] By adopting the above technical solution, the terminal displays the surface data of interest of (N-2)*(N-2) grids centered on the current map position on the map display interface, and buffers the surface data of interest of other grids externally. When the map moves in a first direction, if the updated displayed map corresponds to the edge grid of the first direction, the buffered surface data of the edge grid of the first direction is displayed, and the surface data of interest of the N grids adjacent to the first direction are requested to be buffered. On the one hand, this pre-buffering mechanism greatly reduces the problems of terminal overload and web page freeze caused by direct large-scale loading of AOI data. On the other hand, when the user moves the map, the surface data of interest that may need to be displayed in the next step can be prepared in advance, thereby greatly improving the smoothness and response speed of the display of the surface of interest in the map and improving the user experience.

[0008] In combination with some embodiments of the first aspect, in some embodiments, the first full map division grid includes 256*256 grids; and N is 6.

[0009] By adopting the above technical solution, the first full map is divided into 256*256 grids, and N is set to 6. This division method can control the amount of data in a single request within a reasonable range while ensuring the data granularity of the surface of interest. When the size of the part of the map that can be displayed on the map display interface is just slightly smaller than the size of the 4*4 grid, the 6*6 request range can well balance the frequency of data requests and the amount of buffered data. When the user moves the map, it can respond quickly and provide a smooth display effect without causing jamming due to excessive data volume, and without frequent requests due to too small data volume, affecting performance. Reasonable grid division and request range setting are the key to improving the display smoothness of the surface of interest.

[0010] In combination with some embodiments of the first aspect, in some embodiments, after the terminal buffers the received interest surface data of the N grids in the first direction outside the N*N grids, the method also includes: the terminal deletes the interest surface data of the N grids at the edges of the N*N grids in the opposite direction of the first direction.

[0011] By adopting the above technical solution, this dynamic buffer update mechanism can ensure that the buffer always stores the interest surface data around the current display area, while releasing the old data that is no longer needed in time, avoiding buffer data redundancy and memory waste.

[0012] In combination with some embodiments of the first aspect, in some embodiments, the terminal deletes the surface data of interest of N grids on the edge of the opposite direction of the first direction among the N*N grids, specifically including: the terminal calculates the row and column number ranges of the N grids in the original N*N grids located in the opposite direction of the first direction; the terminal searches and releases the memory space occupied by the N grids in the buffer based on the row and column number ranges of the N grids; the terminal updates the index structure of the buffer and removes the index information of the deleted grids.

[0013] By adopting the above technical solution, the terminal calculates the row and column number range of the grid to be deleted, and searches and releases the corresponding memory space in the buffer according to the range, and updates the index structure of the buffer to remove the index information of the deleted grid. This method of accurately locating and releasing memory can efficiently complete the dynamic update of the buffer and maximize memory utilization. Combined with the above-mentioned mechanism of dynamically updating the buffer, it is possible to maintain a low memory occupancy while ensuring the buffering of the interest surface data, thereby further improving the smoothness and stability of the interest surface display.

[0014] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: after detecting that the map in the map display interface is zoomed to the second level, the terminal sends a second interest surface data request to the server; the second interest surface data request includes the current map position displayed in the map display interface and the second map level information, and the second map level information is different from the first map level information; the second interest surface data request is used to request the interest surface data of N*N grids centered on the current map position in the second full map division grid; the second full map division grid is obtained by dividing the second level full map storing the interest surface data corresponding to the second map level information; after receiving the interest surface data of the N*N grids returned by the server, the terminal executes the step of displaying the interest surface data of (N-2)*(N-2) grids centered on the current map position in the map on the map display interface, and buffering the interest surface data of other grids in the N*N grids outside the (N-2)*(N-2) grids.

[0015] By adopting the above technical solution, the terminal can dynamically request and display the interest surface data at different levels according to the changes in the map zoom level. When it is detected that the map is zoomed to the second level, the terminal sends a request containing the current map location and the second level information to the server, obtains the interest surface data of the N*N grids in the grid corresponding to the second level full map, and displays and buffers it in the same way as before. This mechanism of dynamically adjusting the request content according to the zoom level can ensure that at different zoom levels, the interest surface data matching the current level can always be obtained and displayed at an appropriate granularity, which improves the accuracy and adaptability of the interest surface display and enhances the user's browsing experience at different zoom levels.

[0016] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: after detecting that the map in the map display interface moves in a second direction, if the terminal determines that the updated displayed second part of the map is not within the range corresponding to the N*N grids, the terminal sends a third interest surface data request to the server, and the third interest surface data request includes the current map position and current map level information displayed in the map display interface; the third interest surface data request is used to request the interest surface data of N*N grids centered on the current map position in the current full map division grid; the current full map division grid is obtained by dividing the current level full map that stores the interest surface data corresponding to the current map level information; after receiving the interest surface data of the N*N grids returned by the server, the terminal executes the step of displaying the interest surface data of (N-2)*(N-2) grids centered on the current map position in the map on the map display interface, and buffering the interest surface data of other grids in the N*N grids outside the (N-2)*(N-2) grids.

[0017] By adopting the above technical solution, a mechanism for actively requesting the required interest surface data when moving to a new area can ensure that when the map movement range exceeds the coverage of the buffered data, the interest surface data of the new area is obtained in time and processed according to the previous display and buffering strategies, thereby ensuring the continuity and integrity of the interest surface display and improving the user's browsing experience when moving the map over a large range.

[0018] In combination with some embodiments of the first aspect, in some embodiments, after detecting that the map in the map display interface moves to the second direction, the terminal determines that the updated second part of the map is not within the range corresponding to the N*N grids, and the terminal sends a third interest surface data request to the server, specifically including: after detecting that the map in the map display interface moves to the second direction, the terminal determines that the updated second part of the map is not within the range corresponding to the N*N grids, the terminal determines whether the speed of moving in the second direction exceeds a preset speed threshold; if it is determined that the preset speed threshold is exceeded, the terminal sends a third interest surface data request to the server, and the third interest surface data request is used to request the interest surface data of the N*N grids centered on the current map position in the current full map division grid; the third interest surface data request is also used to request the interest surface data of the M*N grids adjacent to the N*N grids in the second direction, where M is a positive integer positively correlated with the speed of moving in the second direction.

[0019] By adopting the above technical solution, a larger range of interest surface data can be requested at one time when moving at high speed, which can reduce the number of data requests during fast movement, thereby further improving the smoothness and response speed of interest surface display, allowing users to have a good user experience when quickly browsing large area maps, thereby improving the performance of map applications and user satisfaction.

[0020] In a second aspect, the present application provides a terminal comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions to cause the terminal to execute a method as in any one of the embodiments of the first aspect.

[0021] In a third aspect, the present application provides a computer program product comprising instructions, which, when executed on a terminal, enables the terminal to execute a method as described in any one of the embodiments of the first aspect.

[0022] In a fourth aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a terminal, causes the terminal to execute a method as in any one of the embodiments of the first aspect.

[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Due to the pre-buffering mechanism of displaying (N-2)*(N-2) raster interest surface data with the current map position as the center and buffering other raster data externally, the terminal overload and web page freeze caused by direct large-scale loading of AOI data are effectively solved. As a result, the interest surface data that may need to be displayed next is prepared in advance when the user moves the map, which greatly improves the smoothness and response speed of the interest surface display in the map and improves the user experience.

[0024] 2. When the map is zoomed to the second level, a request containing the current map position and the second level information is sent to the server to obtain the dynamically adjusted request content of the N*N grid interest surface data in the grid of the corresponding second-level full map. Therefore, the problem that the interest surface data cannot adapt to different zoom levels is effectively solved, and the interest surface data matching the current level can always be obtained at different zoom levels, and displayed at an appropriate granularity, which improves the accuracy and adaptability of the interest surface display and enhances the user's browsing experience at different zoom levels.

[0025] 3. When the map moves to a new area and the updated map is out of the original buffer range, the server is actively requested for N*N grid interest surface data centered on the current map position. This effectively solves the problem of not being able to obtain new area data in time when the map moves beyond the buffered data range, thereby achieving timely acquisition and processing of new area interest surface data according to established strategies, ensuring the continuity and integrity of the interest surface display and improving the user's browsing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is an exemplary schematic diagram of a display system provided in an embodiment of the present application; Figure 2 is a schematic diagram of an exemplary scenario of a method for displaying an interest surface in a map provided in an embodiment of the present application; Figure 3 It is a flowchart of a method for displaying a surface of interest in a map provided in an embodiment of the present application; Figure 4 is another flowchart of a method for displaying a surface of interest in a map provided in an embodiment of the present application; Figure 5 It is a schematic diagram of an exemplary hardware structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "a", "an", "the", "above", "the" and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the terms "and / or" used in the present application refer to and include any or all possible combinations of one or more of the listed items.

[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0029] To facilitate understanding, the relevant terms and concepts involved in the embodiments of the present application are first introduced below.

[0030] (1) Area of ​​Interest (AOI) AOI refers to a specific area of ​​interest to a user or application on a map. It is usually a closed polygonal area that can be regular or irregular in shape, used to delineate a meaningful geographic range. The concept of AOI originated from the field of geographic information systems (GIS) and is now widely used in various online map services to achieve precise positioning of areas and on-demand loading of information.

[0031] In map applications, AOI is usually defined and stored as a collection of several geographic coordinate points. These coordinate points are connected in a certain order to form the boundary line of the AOI. AOI can contain various map elements such as roads, buildings, landmarks, etc. Depending on the application scenario, AOI can represent various meaningful geographic entities, such as communities, schools, business districts, scenic spots, etc. For map application developers, AOI is the basic unit for organizing and presenting geographic information. By drawing and marking AOI on the map, and loading its boundary and internal detailed information on demand when the user browses the AOI, more accurate and efficient map data management and retrieval can be achieved. For end users, AOI makes the map more vivid and practical. Users can quickly focus on the area of ​​their interest and obtain rich information about the area.

[0032] (2) Web Mercator Web Mercator is a map projection widely used in web map applications. It is based on the standard Mercator projection with some simplifications and optimizations. The Mercator projection is an orthogonal cylindrical projection that can unfold a sphere into a plane. The Web Mercator projection further simplifies the calculation process while maintaining certain geographical characteristics. Therefore, it is very suitable for use in a network environment and can achieve efficient map data transmission and rendering.

[0033] The Web Mercator projection uses a sphere as the earth model and ignores the ellipsoid shape of the earth, which makes the projected map slightly deformed at different latitudes. However, due to its simple calculation, convenient network transmission, and ability to be infinitely divided and seamlessly spliced, it has become the de facto standard for online maps. Mainstream map services such as Google Maps and OpenStreetMap all use the Web Mercator projection. Under the Web Mercator projection, the map is divided into different levels and tiles. With each level increase, the scale of the map doubles. At the same level, the map is divided into square grids of equal size, each of which contains a map image of the area.

[0034] First, the system architecture involved in the embodiment of the present application is described. Figure 1 The figure is an exemplary schematic diagram of a display system in an embodiment of the present application.

[0035] The display system in the embodiment of the present application includes a terminal 100 and a server 200 .

[0036] The terminal 100 may be a mobile phone, tablet computer, laptop computer, desktop computer or any other device with a display screen and user interaction capability. The terminal 100 is installed with map client software, through which users can browse online maps, search for locations, view information of places of interest, etc. The map client software communicates with the server 200, obtains map data and renders and displays it.

[0037] The server 200 is a backend system that provides online map services. It is usually composed of multiple server clusters and has powerful data storage, computing and transmission capabilities. The main functions of the server 200 include: storing massive amounts of map data, including vector map data, raster map slices, point of interest (AOI) information, road network data, etc. Responding to various requests from the client, such as map data requests, path planning requests, interest surface data requests, interest surface data update requests, etc., processing and analyzing map data, such as generating raster slices at different zoom levels, calculating the optimal travel path, etc.

[0038] The server 200 plays a key role in the processing of AOI data. The boundary coordinates and attribute information of all AOIs are stored on the server side, and an efficient index is established. When the terminal 100 requests the AOI data of a certain map area, the server 200 will quickly retrieve the relevant AOIs according to the requested geographic scope and zoom level, and package them for transmission to the terminal.

[0039] The terminal 100 and the server 200 communicate through the network. For example, the HTTP / HTTPS protocol can be used, following the RESTful architectural style. Various requests (such as AOI data requests) initiated by the terminal 100 can be encapsulated into standard HTTP requests and transmitted in compact and efficient formats such as JSON and ProtocolBuffer. After receiving the request, the server 200 returns the result data to the terminal in the form of an HTTP response after a series of processing.

[0040] The embodiment of the present application provides a method for displaying an interest surface in a map, which is used to improve the smoothness of displaying interest points in a map. The method for displaying an interest surface in a map is described below in conjunction with an exemplary specific application scenario. Figure 2 , which is a schematic diagram of an exemplary scenario of a method for displaying a surface of interest in a map in an embodiment of the present application.

[0041] like Figure 2 As shown in (a), the terminal requests 6*6 grid AOI data from the server, but the size of the map display interface can only display 4*4 grid (or smaller) map information. Therefore, the terminal will directly display the 4*4 grid AOI data corresponding to the current map position displayed in the map display interface, but will first buffer the AOI data of the other edge circle (6*6-4*4=20) grids around the displayed 4*4 grid.

[0042] like Figure 2 As shown in (b), when the user drags the map to the left, so that the map in the map display interface moves to the right, if the newly appeared map on the right corresponds to the data of the rightmost edge grid in the original 6*6 grids, the terminal displays the AOI data of the rightmost edge grid in the map display interface, and initiates an interest surface data update request to the server, requesting the AOI data of the new 6 grids one grid to the right; After receiving the new AOI data of the 6 grids, the terminal will buffer it in the corresponding position and delete the data of the 6 leftmost edge grids in the original 6*6 grids.

[0043] In the example of this application, by pre-caching the AOI data of the surrounding grids and dynamically updating and reusing the data during user interaction, the smoothness of the map display is effectively improved and the amount of data transmission is greatly reduced.

[0044] See also Figure 3 , is a flow chart of a method for displaying an interest surface in a map in an embodiment of the present application. The following is a detailed description of the method for displaying an interest surface in a map in an embodiment of the present application.

[0045] S301, when starting a map display interface, the terminal sends a first interest surface data request to a server, wherein the first interest surface data request includes a current map position and first map level information displayed in the map display interface, and the first interest surface data request is used to request interest surface data of N*N grids centered on the current map position in a first full map division grid; the first full map division grid is obtained by dividing a first level full map storing interest surface data corresponding to the first map level information; N is a preset positive integer greater than 4; Among them, "map display interface" refers to the graphical user interface used to display map information on the terminal. It is usually used to present the map content to the user in a map application or an application with embedded map function. "Current map position" refers to the geographical coordinates corresponding to the center point of the current map display interface. It can be converted from the zoom level of the map and the pixel coordinates of the center point of the screen. "First map level" refers to the zoom level of the current map display interface. In online maps, integers are usually used to represent different zoom levels. The larger the number, the more detailed the content displayed on the map. "First full map division grid" means the result of dividing the entire map into square areas of equal size (i.e. grids) at the first map level. Each grid covers a certain geographical range and contains the data of the surface of interest within the range. Generally, the server divides the full map containing all AOI data into 256*256 grids through EPSG3857 (Web Mercator) and saves them on the server according to the coordinates of the two-dimensional division.

[0046] After the user starts the map display interface, in order to show the map AOI content to the user, the terminal needs to obtain the AOI data of the corresponding area from the server. In order to improve the user interaction experience and reduce jamming, the terminal adopts a strategy of pre-fetching data in a larger range. Specifically, the terminal first determines the zoom level of the current map display interface (the first map level) and the geographic coordinates of the center point of the interface (the current map position). Then, the terminal determines the data range that needs to be requested based on the full map grid division scheme corresponding to the zoom level (the first full map division grid), that is, N*N grids centered on the current map position.

[0047] N is a preset positive integer, usually greater than 4. Optionally, the terminal can read the N value from a preset configuration parameter, and the N value can be preset according to factors such as network status and device performance. The better the network status and the stronger the device performance, the larger the N value can be.

[0048] Preferably, the value of N is 6, because the map range displayed on the map display interface is generally limited to a 4*4 grid size. In this way, in addition to the currently displayed area, the terminal also requests the interest surface data of a circle of surrounding areas.

[0049] Finally, the terminal encapsulates information such as the current map location, the first map level, and the requested data range (N*N) into a request (first interest surface data request) and sends it to the server.

[0050] Exemplarily, in some embodiments, the terminal can construct the first interest surface data request in the following manner: the terminal can first obtain the zoom level and center point coordinates of the current map display interface, and convert them into the first map level and the current map position. Then the terminal calculates the index number or number of the N*N grids around the current map position according to the first full map grid division scheme corresponding to the first map level. Then, the terminal can assemble the first map level, current map position, N*N grid index number and other information into request parameters according to the agreed data format (such as JSON). Afterwards, the terminal encapsulates the request parameters into an HTTP or HTTPS request, sets the target address (server address) of the request, the request method (such as GET or POST), etc., and finally sends it out.

[0051] It is understandable that other methods may be used to construct and send the first interest surface data request, such as using other communication protocols (such as WebSocket), data formats (such as ProtocolBuffer), etc., which are not limited here.

[0052] S302, after receiving the surface data of interest of the N*N grids returned by the server, the terminal displays the surface data of interest of (N-2)*(N-2) grids centered on the current map position in the map on the map display interface, and buffers the surface data of interest of other grids in the N*N grids outside the (N-2)*(N-2) grids; Among them, "N*N grids of interest surface data" means the interest surface information returned by the server, covering a large range around the current map location. These data are organized by grid, which is convenient for the terminal to quickly index and render. "(N-2)*(N-2) grids" refers to the number of grids remaining after removing the grids at the outermost edge with the current map location as the center. For example, when N=6, the number of grids in the central area is (6-2)*(6-2)=4*4=16. "Buffering" means temporarily storing data in memory or local storage for subsequent use. This can avoid repeated requests for data and improve performance.

[0053] Specifically, after the terminal receives the surface of interest data returned by the server, the terminal needs to parse the data and display it on the map, while caching part of the data to optimize subsequent operations. The terminal first extracts the surface of interest data of N*N grids from the server's response data. Then, the terminal calculates the grid range corresponding to the actual visible area of ​​the current map display interface, that is, (N-2)*(N-2) grids centered on the current map position. Next, the terminal parses the raster data of these central areas into drawable objects (such as points, lines, and surfaces), and adds them to the map display interface for rendering. For the remaining outer edge grids, the terminal temporarily stores their original data in the memory buffer. In this way, when the user pans the map, these buffered data can be used directly for rendering without re-requesting the server.

[0054] In some embodiments, the terminal may process the interest surface data returned by the server in the following manner: The terminal uses the HTTP client to receive the response data stream from the server and listens for the data reception completion event. Then, according to the data type and encoding format indicated in the response header, the received raw data stream is parsed into structured objects such as JSON and ProtocolBuffer. The terminal traverses the data objects of N*N grids, and for each grid, extracts its row and column numbers, boundary coordinates, interest surface list and other information. Then, the terminal compares the row and column numbers of the grid with the current map position to determine whether it belongs to the central area of ​​(N-2)*(N-2). For the grids in the central area, the terminal converts the interest surface list into geometric objects such as points, lines, and surfaces, sets the style, and adds it to the map view. Optionally, for the grids at the outer edge, the terminal stores its original structured data object in a memory dictionary or local database, indexed by the grid row and column number as the key.

[0055] It is understandable that other methods may be used to process the interest surface data, such as using different cache strategies, data structures, rendering engines, etc., which are not limited here.

[0056] S303, after detecting that the map in the map display interface moves in the first direction, when the terminal determines that the first part of the map to be updated and displayed corresponds to the edge grid in the first direction among the N*N grids, the terminal displays the buffered interest surface data of the edge grid in the first direction in the map on the map display interface, and sends an interest surface data update request to the server; the interest surface data update request is used to request interest surface data of N grids that are adjacent to the N*N grids in the first direction in the first full map division grid; Among them, the "first direction" refers to the direction in which the user pans the map, such as up, down, left, right, etc. The "first part of the map" refers to the part that enters the new map display interface after the map is panned. It is usually a rectangular area, and the length of the side perpendicular to the panning direction is equal to the width or height of the display interface. The "first direction edge grid" refers to the row of grids located on the outermost side of the first direction among the N*N grids. For example, when the user pans the map to the right, the N grids on the right edge are the first direction edge grids. The "interest surface data update request" refers to the request sent by the terminal to the server to obtain the interest surface data of the new area. It is similar to the first interest surface data request, but the requested grid range is different.

[0057] Specifically, after the map is translated due to user interaction, the terminal needs to update the map display interface and pre-fetch the interest surface data of the new area. First, the terminal detects the map translation operation by listening to touch events or animation frame events, and determines the direction of translation (first direction). Then, the terminal calculates which new grid areas have entered the map display interface (first part of the map) after the translation. Next, the terminal checks whether these new grids belong to the original N*N grid range and whether they are located at the edge of the first direction. If so, it means that the data of these grids have been pre-buffered and there is no need to re-request the server. Therefore, the terminal directly takes out the interest surface data of these grids from the buffer for parsing and rendering. At the same time, in order to ensure that there is always enough pre-fetched data in the buffer, the terminal also needs to pre-fetch a batch of new grid data in the first direction. To this end, the terminal needs to construct and send a new request (interest surface data update request). The parameters of this request are similar to those of the first interest surface data request, but the requested grid range becomes N grids along the first direction and adjacent to the original N*N grids.

[0058] In some embodiments, the terminal may respond to the map panning operation in the following manner: The terminal can listen to touch events (such as sliding, dragging) or animation frame events to obtain the offset and direction of the map translation. The terminal calculates the coordinates of the new map center point after translation based on the offset and aligns it with the grid boundary. The terminal traverses the grids around the new map center point, determines which grids have entered the display range (the first part of the map), and records their row and column numbers. Then, the terminal checks whether these new grids already exist in the original N*N buffer, and can use the row and column numbers for quick search. If the new grid exists in the buffer, the terminal takes out its interest surface data for rendering. For new grids located at the edge of the first direction, the terminal records the row and column numbers of its adjacent grids in the first direction into the pending request list. The terminal uses the row and column numbers in the pending request list to construct a new interest surface data update request and sends it to the server.

[0059] It is understandable that other methods may be used to respond to map translation, such as using different event monitoring methods, buffer search algorithms, request merging strategies, etc., which are not limited here.

[0060] S304: The terminal buffers the received surface of interest data of the N grids in a first direction outside the N*N grids.

[0061] Among them, "N grids of interest surface data" refers to the data of a row of grids located outside the original N*N grids and adjacent in the first direction returned by the server. These data are actively requested by the terminal to supplement the buffer when the map is translated. "Buffering in the first direction outside the N*N grids" means storing these newly acquired grid data in the memory area in the first direction outside the original buffer. This ensures that there is always a certain range of pre-fetched data in the buffer to cope with the situation where the user continues to translate in the first direction.

[0062] Specifically, after the terminal sends an interest surface data update request and receives a response from the server, the terminal needs to merge the newly acquired raster data into the existing buffer for subsequent use. First, the terminal extracts the interest surface data of the requested N grids from the response data of the server. Then, the terminal checks whether these grids are adjacent to the original N*N grids and determines their relative positions in the first direction. Next, the terminal allocates a new buffer in the memory specifically for storing the data of these new grids. The position of the new buffer is adjacent to the first direction edge of the original buffer, expanding the space of the additional N grids. Finally, the terminal writes the received N grid data into this new buffer in sequence to complete the merging operation. In this way, the buffer of the terminal expands the range of N grids in the first direction, which can cope with the situation where the user continues to translate a certain distance in this direction, thereby improving the interactive experience.

[0063] In some embodiments, the terminal may update the interest surface data buffer in the following manner: The terminal uses the HTTP client to receive the response data stream from the server, listens to the data reception completion event, and parses the original data stream into structured objects such as JSON and ProtocolBuffer according to the data format and encoding method indicated in the response header. Then, the terminal traverses these objects and extracts fields such as grid row and column numbers, boundary coordinates, and interest surface lists. The terminal compares the row and column numbers of the new grid with the row and column numbers of the original N*N grids to determine the relative position of the new grid in the first direction. Then, the terminal calculates the buffer size that needs to be allocated for the new grid, which is generally equal to the sum of the data sizes of the N grids. The terminal uses malloc, new and other methods to allocate a continuous memory space on the heap memory as a new buffer, and then copies the data of the new grid to the new buffer in the order of row and column numbers, and updates the corresponding index structure.

[0064] In some embodiments, optionally, for the case of multiple consecutive translations in the same direction, the terminal can reuse the existing buffer instead of reallocating memory each time; optionally, the terminal can dynamically adjust the maximum size of the buffer according to the memory capacity and usage scenario of the device instead of using a fixed value N. The terminal can also use other methods to optimize the expansion of the buffer and the reuse of data, which are not limited here.

[0065] Optionally, in some embodiments, after buffering the received interest surface data of the N grids, the terminal may also delete the interest surface data of the N grids at the edges in the opposite direction of the first direction among the N*N grids.

[0066] Specifically, after buffering the data of the N new grids received, the terminal can calculate the row and column number range of the N grids in the original N*N grids that are located in the opposite direction of the first direction. The terminal searches for the grids to be deleted in the buffer and releases the memory space they occupy. This can be achieved by calling methods such as free and delete. The terminal updates the index structure of the buffer, removes the index information of the deleted grid, and ensures that the row and column numbers of the buffer are continuous and orderly. The terminal can selectively perform some memory sorting operations, such as using methods such as realloc and move to rearrange the data of the remaining grids in memory, eliminate memory fragmentation, and improve space utilization.

[0067] In this way, although the position of the buffer is constantly changing, its size is always kept at N*N grids. When the user repeatedly pans the map, the buffer is like a sliding window, constantly moving on the map, always caching the data of the surface of interest around the user's current focus area. Expired data that has moved away from the current area will be automatically deleted to release memory in time.

[0068] In the embodiment of the present application, a progressive AOI data loading strategy is adopted, by pre-fetching data of surrounding additional grids for buffering, and dynamically adjusting the request range during user interaction, bandwidth and computing resources are saved to the maximum extent. Thus, even in complex scenarios, smooth and stable AOI data display and interaction can be achieved.

[0069] In actual applications, there are some more specific optimization requirements in more different scenarios. The display method of the interest surface in the map can also be expanded by introducing mechanisms such as moving speed judgment, data reuse, and cache management, so as to further improve the display performance and user experience of AOI in the map.

[0070] See also Figure 4 , is another flowchart of the method for displaying an interest surface in a map in an embodiment of the present application: S401, when starting a map display interface, the terminal sends a first interest surface data request to a server, the first interest surface data request including a current map position and first map level information displayed in the map display interface, the first interest surface data request being used to request interest surface data of N*N grids centered on the current map position in a first full map division grid; the first full map division grid is obtained by dividing a first level full map storing interest surface data corresponding to the first map level information; N is a preset positive integer greater than 4; S402, after receiving the surface data of interest of the N*N grids returned by the server, the terminal displays the surface data of interest of (N-2)*(N-2) grids centered on the current map position in the map on the map display interface, and buffers the surface data of interest of other grids in the N*N grids outside the (N-2)*(N-2) grids; S403, after detecting that the map in the map display interface moves in the first direction, when the terminal determines that the first part of the map to be updated and displayed corresponds to the edge grid in the first direction among the N*N grids, the terminal displays the buffered interest surface data of the edge grid in the first direction in the map on the map display interface, and sends an interest surface data update request to the server; the interest surface data update request is used to request interest surface data of N grids that are adjacent to the N*N grids in the first direction in the first full map division grid; S404: The terminal buffers the received interest surface data of the N grids in a first direction outside the N*N grids; Steps S401 to S404 and Figure 3 Steps S301 to S304 in the illustrated embodiment are similar, and reference may be made to the descriptions in the relevant steps, which will not be repeated here.

[0071] S405, after detecting that the map in the map display interface is zoomed to the second level, the terminal sends a second interest surface data request to the server, the second interest surface data request including the current map position displayed in the map display interface and second map level information, the second map level information being different from the first map level information; The second interest surface data request is used to request the interest surface data of N*N grids centered on the current map position in the second full map division grid; the second full map division grid is obtained by dividing the second level full map that stores the interest surface data corresponding to the second map level information.

[0072] Among them, "second level" refers to another map zoom level different from the first level. Different zoom levels usually correspond to different map details and interest surface density. For example, when the user zooms from level 10 to level 11, the map will show more details such as roads and buildings, and the number and types of interest surfaces will also increase. However, no matter how the zoom level changes, the full map is always divided into 256*256 grids of equal size. "Second interest surface data request" refers to a new data request initiated by the terminal to the server after detecting that the user zooms the map. It contains the current map location and zoom level information so that the server can locate and query the required interest surface data in a unified grid structure. "Current map position" means the coordinates of the center point of the current display area after the map is zoomed. The coordinates can be longitude and latitude, or pixel offset relative to the upper left corner of the full map.

[0073] Specifically, after the user zooms in and out on the map, the terminal needs to request the interest surface data that matches the new zoom level from the server to update the map display. First, the terminal detects that the user has performed a zoom operation by listening to touch events or gesture events, and obtains the new zoom level (second level) after zooming. Then, the terminal determines whether the level is different from the previous level (first level). If different, it means that new data needs to be requested; if the same, the previously cached data can be used directly without re-requesting. Next, the terminal obtains the center point coordinates of the current map display area (current map position), and constructs a new request object (second interest surface data request) together with the new zoom level information. The parameters of this request are similar to those of the first interest surface data request, including location coordinates, zoom level, requested grid range (N*N grids centered on the current position), etc. Finally, the terminal sends the request object to the server and waits for the server to return the corresponding interest surface data. It should be noted that since the grid structure of the entire map is fixed, the server can use the same algorithm and index to process requests at different zoom levels. This greatly simplifies the design and implementation of the server.

[0074] In some embodiments, the second interest surface data request can be sent in the following manner: the terminal monitors touch events (such as pinching and pinching) or gesture events (such as double-clicking, long pressing), and obtains the scale factor and zoom center point of the map zoom. The terminal can calculate the new zoom level according to the zoom scale factor, for example, the level increases by 1 for each double zoom; optionally, the terminal determines whether the new zoom level is within a preset range, such as level 3-18, and does not process if it exceeds the range. The terminal can compare the new zoom level with the current level, and if they are different, mark the status as "need to update". The terminal can calculate the row and column number of the current map center point in the 256*256 grid as the requested center grid. Then, with the center grid as the origin, calculate the row and column number range of the requested N*N grids. The terminal encapsulates the new zoom level, the row and column number of the center grid, the requested grid range and other information into request parameters, sends the request through a network connection, and monitors the response message and data of the server. It can be understood that other methods can also be used to send requests, such as using different event monitoring methods, request protocols, data formats, etc., which are not limited here.

[0075] In some embodiments, optionally, when the user continuously zooms the map, the terminal can wait for a short period of time (such as 500 milliseconds) before sending a request, instead of requesting immediately every time the map is zoomed; optionally, if the user zooms in the opposite direction during the waiting time, the terminal can cancel the previous request to avoid sending useless requests; optionally, for the case of request failure or timeout, the terminal can set the number of retries and the retry interval to automatically resend the request; optionally, the terminal can also dynamically adjust the request parameters, such as data format, compression algorithm, etc., according to the current network conditions and server load to improve the request success rate and response speed; optionally, when necessary (for example, when the user is detected to be zooming and dragging the map at the same time), the terminal can request data in a larger range than N*N grids to increase the amount of cached data and reduce the request frequency. Other methods can also be used to optimize the timing and frequency of request transmission, which are not limited here.

[0076] S406. After detecting that the map in the map display interface moves in the second direction, the terminal determines that the second part of the map to be updated and displayed is not within the range corresponding to the N*N grids, and the terminal sends a third interest surface data request to the server. The third interest surface data request includes the current map position displayed in the map display interface and the current map level information.

[0077] Movement in the "second direction" usually differs from movement in the first direction in terms of movement speed and distance. "Update the second part of the map displayed" means that after moving in the second direction, a new map area needs to be displayed outside the original display area. "The range corresponding to the N*N grids" refers to the geographical area covered by the currently buffered NN grids. This range is usually slightly larger than the display range of the current map viewport to provide a certain margin. "Third interest surface data request" means that after moving in the second direction, if the new area to be displayed exceeds the current grid range, the terminal will send a new data request. "Current map level" indicates the map zoom level when movement in the second direction occurs.

[0078] Specifically, after the user moves the map, the terminal needs to determine whether the movement will cause the map area to be displayed to exceed the current data buffer range. If it exceeds, it is necessary to send a new request in time to obtain the required new data. First, the terminal calculates the geographic coordinate range of the map area that needs to be newly displayed on the screen (update the second part of the map displayed) according to the distance and direction of this movement. Then, the terminal compares the coordinate range of the newly added area with the coverage range of the N*N grids currently buffered. If the newly added area exceeds the grid range, it means that the current data buffer is not enough to meet the new display requirements, and a request must be sent to obtain additional data. Otherwise, the current buffered data can be directly used to update the display without sending a new request. If it is determined that new data needs to be requested, the terminal will obtain the coordinates of the center point of the map viewport after the second direction is moved (the current map position) and the current map zoom level (the current map level), together with the new grid range, to construct a request object (third interest surface data request) and send it to the server. After receiving the request, the server will search for the requested grid in the corresponding level of the full map grid data, extract the interest surface data therein, and return it to the terminal. After the terminal obtains the new data, it can update the map display and complete the operation of moving in the second direction.

[0079] Optionally, when the user moves the map quickly and continuously, the terminal can accumulate multiple small movements until the accumulated movement distance exceeds a certain threshold (such as half of the screen), and then send a request again; optionally, before sending the request, the terminal can use locally cached historical data to predict the result of the request, and display the predicted interest surface in the newly added area in advance, thereby improving the interactive experience; optionally, the terminal can dynamically adjust the threshold for judging the movement in the second direction according to its own performance and network conditions, and appropriately relax the threshold in low-end devices or weak network environments to reduce the number of requests; optionally, for different areas and interest surface types, the terminal can use different data caching strategies, and give priority to caching important areas or commonly used types of data; optionally, the terminal can also collect user usage behavior and preference data, use machine learning algorithms to predict areas that may be visited in the future, and request data in advance.

[0080] In some embodiments, after detecting that the map in the map display interface moves in a second direction, if the terminal determines that the updated displayed second part of the map is not within the range corresponding to the N*N grids, the terminal can determine whether the speed of moving in the second direction exceeds a preset speed threshold; if it is determined that it exceeds the preset speed threshold, the terminal will send the third interest surface data request to the server, and the third interest surface data request is not only used to request the interest surface data of the N*N grids centered on the current map position in the current full map division grid; but the third interest surface data request is also used to request the interest surface data of the M*N grids adjacent to the N*N grids in the second direction, where M is a positive integer positively correlated with the speed of moving in the second direction.

[0081] The "preset speed threshold" refers to a reference value for judging whether the map movement speed is too fast, which can be set according to factors such as device performance and network conditions. The "third interest surface data request" refers to a new data request sent by the terminal when the movement in the second direction exceeds the preset speed threshold, which is used to obtain raster data of a larger range.

[0082] Specifically, after the user moves the map in the second direction at a faster speed. At this time, the terminal not only needs to determine whether the map movement in the second direction exceeds the current data buffer range, but also needs to determine whether the moving speed exceeds the preset threshold. If the speed exceeds the threshold, it means that the user may want to quickly browse a farther area and needs to cache more data in advance. Therefore, when the terminal sends the third data request, in addition to requesting N*N grid data within the current viewport range, it also requests M*N grid data adjacent to the current grid in the moving direction. The size of M is proportional to the moving speed. The faster the speed, the larger the M, and the larger the requested data range. For example, if N=6 and M=2, in addition to requesting the current 6*6 grids, 2*6 grids will be requested in the moving direction, and a total of 6*8 grids of data will be requested. In this way, when the user continues to move the map quickly, the cached data can be used directly without incomplete display or jamming. At the same time, since the data is requested in advance, the display of the map can also be smoother. It can be seen that by judging the moving speed and requesting additional raster data, the user experience when quickly browsing the map can be significantly improved.

[0083] Optionally, when calculating the moving speed, the terminal may adopt a weighted average method to assign a greater weight to the most recent moving distance, so as to more accurately reflect the current moving trend.

[0084] Optionally, the terminal may determine the value of M by rounding up K*L. K is the value of the mobile speed that exceeds the preset speed threshold, rounded up, and L is a dynamically adjusted constant. The terminal may dynamically adjust the size of L by comprehensively considering factors such as device performance, network bandwidth, and power consumption to balance user experience and resource consumption.

[0085] Optionally, for different zoom levels, the terminal may set different speed thresholds and L values, for example, appropriately lowering the threshold and L value at a low level to reduce the amount of requested data.

[0086] It is understandable that what is described here are only some exemplary optimization strategies. In actual applications, more optimization schemes can be designed according to specific needs and scenarios to further improve the efficiency and reliability of requesting additional raster data.

[0087] It is understandable that after executing step S405 or step S406 and obtaining the data of N*N grids returned by the server, the terminal jumps to execute step S402 based on the data of the N*N grids.

[0088] In the embodiment of the present application, when the map is zoomed to the second level, a request containing the current map position and the second level information is sent to the server to obtain the dynamically adjusted request content of the N*N grid interest surface data in the grid corresponding to the second level full map division. Therefore, the problem that the interest surface data cannot adapt to different zoom levels is effectively solved, and the interest surface data matching the current level can always be obtained at different zoom levels and displayed at an appropriate granularity, thereby improving the accuracy and adaptability of the interest surface display and enhancing the user's browsing experience at different zoom levels.

[0089] Moreover, when the map moves to a new area and the updated map is no longer within the original buffer range, the server is actively requested to provide N*N grid interest surface data centered on the current map position. This effectively solves the problem of not being able to obtain new area data in a timely manner when the map moves beyond the range of buffered data. This enables timely acquisition and processing of new area interest surface data according to established strategies, ensuring the continuity and integrity of the interest surface display and improving the user's browsing experience.

[0090] The above describes the method for displaying a surface of interest in a map in an embodiment of the present application. The following introduces an exemplary terminal 100 provided in an embodiment of the present application.

[0091] Figure 5 It is a schematic diagram of an exemplary hardware structure of the terminal 100 provided in an embodiment of the present application.

[0092] In some embodiments, the terminal 100 is a computer device. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with other external terminals or servers through a network connection. In some embodiments, the network interface can be a wired network interface, and in some embodiments, the network interface can also be a wireless network interface. When the computer program is executed by the processor, the method for displaying the surface of interest in the map in the embodiment of the present application is implemented.

[0093] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0094] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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 cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0095] As used in the above embodiments, the term “when…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.

[0096] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0097] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A method for displaying an interesting surface in a map, characterized in that: include: In the case of starting the map display interface, the terminal sends a first interest surface data request to the server, wherein the first interest surface data request includes the current map position and the first map level information displayed in the map display interface, and the first interest surface data request is used to request the interest surface data of N*N grids centered on the current map position in the first full map division grid; the first full map division grid is obtained by dividing the first level full map storing the interest surface data corresponding to the first map level information; N is a preset positive integer greater than 4; After receiving the surface data of interest of the N*N grids returned by the server, the terminal displays the surface data of interest of (N-2)*(N-2) grids centered on the current map position in the map on the map display interface, and buffers the surface data of interest of other grids in the N*N grids outside the (N-2)*(N-2) grids; After detecting that the map in the map display interface moves in a first direction, when the terminal determines that the first part of the map to be updated and displayed corresponds to an edge grid in a first direction among the N*N grids, the terminal displays the buffered interest surface data of the edge grid in the first direction in the map on the map display interface, and sends an interest surface data update request to the server; the interest surface data update request is used to request interest surface data of N grids that are adjacent to the N*N grids in the first direction in the first full map division grid; The terminal buffers the received surface of interest data of the N grids in a first direction outside the N*N grids.

2. The method according to claim 1, characterized in that The first full map division grid includes 256*256 grids; and N is 6.

3. The method according to claim 1, characterized in that After the step of buffering, by the terminal, the received surface of interest data of the N grids in the first direction outside the N*N grids, the method further comprises: The terminal deletes the surface of interest data of N grids at the edges in the opposite direction of the first direction among the N*N grids.

4. The method according to claim 3, characterized in that The terminal deletes the surface of interest data of N grids at the edges in the opposite direction of the first direction among the N*N grids, specifically including: The terminal calculates the row and column number range of N grids located in the opposite direction of the first direction among the original N*N grids; The terminal searches for and releases the memory space occupied by the N grids in the buffer based on the row and column number ranges of the N grids; The terminal updates the index structure of the buffer and removes the index information of the deleted grid.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: After detecting that the map in the map display interface is zoomed to the second level, the terminal sends a second interest surface data request to the server; the second interest surface data request includes the current map position displayed in the map display interface and second map level information, and the second map level information is different from the first map level information; The second interest surface data request is used to request interest surface data of N*N grids centered on the current map position in the second full map division grid; the second full map division grid is obtained by dividing the second level full map storing the interest surface data corresponding to the second map level information; After receiving the interest surface data of the N*N grids returned by the server, the terminal executes the step of displaying the interest surface data of (N-2)*(N-2) grids centered on the current map position in the map on the map display interface, and buffering the interest surface data of other grids in the N*N grids outside the (N-2)*(N-2) grids.

6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: After detecting that the map in the map display interface moves in the second direction, if the terminal determines that the second part of the map to be updated and displayed is not within the range corresponding to the N*N grids, the terminal sends a third interest surface data request to the server, wherein the third interest surface data request includes the current map position and current map level information displayed in the map display interface; The third interest surface data request is used to request interest surface data of N*N grids centered on the current map position in the current full map division grid; the current full map division grid is obtained by dividing the current level full map storing the interest surface data corresponding to the current map level information; After receiving the interest surface data of the N*N grids returned by the server, the terminal executes the step of displaying the interest surface data of (N-2)*(N-2) grids centered on the current map position in the map on the map display interface, and buffering the interest surface data of other grids in the N*N grids outside the (N-2)*(N-2) grids.

7. The method according to claim 6, characterized in that After detecting that the map in the map display interface moves in the second direction, if the terminal determines that the updated second portion of the map is not within the range corresponding to the N*N grids, the terminal sends a third interest surface data request to the server, specifically including: After detecting that the map in the map display interface moves in a second direction, if the terminal determines that the second portion of the map to be updated and displayed is not within the range corresponding to the N*N grids, the terminal determines whether the speed of moving in the second direction exceeds a preset speed threshold; When it is determined that the speed exceeds the preset speed threshold, the terminal sends a third interest surface data request to the server, and the third interest surface data request is used to request the interest surface data of N*N grids centered on the current map position in the current full map division grid; the third interest surface data request is also used to request the interest surface data of M*N grids adjacent to the N*N grids in the second direction, and M is a positive integer positively correlated with the speed of moving in the second direction.

8. A terminal, characterized in that: The terminal comprises: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the terminal executes the method as described in any one of claims 1 to 7.

9. A computer program product comprising instructions, characterized in that When the computer program product is executed on a terminal, the terminal is enabled to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium comprising instructions, characterized in that: When the instruction is executed on a terminal, the terminal is caused to execute the method according to any one of claims 1 to 7.