Map Loading Method and Device, Electronic Device, Storage Medium

By listening to the zoom instructions and loading the fine map, the problem of poor continuity of non-continuous fine maps when loading in the graphical user interface is solved, and a smoother map switching and loading effect is achieved.

CN116370951BActive Publication Date: 2025-06-13NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310288719.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2025-06-13
Estimated Expiration
2043-03-20

AI Technical Summary

Technical Problem

Discontinuous fine maps have poor continuity when loading in the graphical user interface, and their operation forms are cumbersome and fragmented.

Method used

By listening to the zoom command for the first level map, determine the zoomed map area, and in response to the existence of a capture target in the map area, load the second level map corresponding to the capture target. The fineness of the second level map is greater than the fineness of the first level map.

Benefits of technology

It effectively improves the continuity and smoothness when switching between conventional maps and discontinuous fine maps, avoids the cumbersome and fragmented switching operations, and allows the second-level map to be continuously loaded in the graphical user interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116370951B_ABST
    Figure CN116370951B_ABST
Patent Text Reader

Abstract

The present disclosure provides a map loading method, apparatus, electronic device, and storage medium, relating to the field of computer technology. The map loading method loads a first-level map in an interface running program, including: listening for a zoom instruction for the first-level map, and zooming the first-level map according to the zoom instruction to obtain a zoomed first-level map; determining a map area displayed by the zoomed first-level map in a graphical user interface; and in response to the presence of a capture target in the map area, loading a second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map. The technical solution of the embodiments of the present disclosure can overcome the problem of poor continuity when a discontinuous fine map is loaded in a graphical user interface.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the interface map distribution in a game scenario, it generally includes a regular map with less terrain content and a detailed map with detailed terrain content. The detailed map can be further divided into two types: a fully continuous detailed map and a discontinuous detailed map according to requirements. For the discontinuous detailed map, that is, multiple detailed maps are relatively independent, and even not connected geographically. For a large-scale world project with a large map area, a discontinuous detailed map is generally selected as a detail supplement.

[0003] However, due to the lack of connection and association between the discontinuous detailed map and the corresponding regular map in the related technology, and the cumbersome and fragmented operation form of the discontinuous detailed map, there is a problem of poor continuity when the discontinuous detailed map is loaded in the graphical user interface.

[0004] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0005] The purpose of the embodiments of the present disclosure is to provide a map loading method, a map loading device, an electronic device, and a computer-readable storage medium, so as to at least overcome to some extent the problem of poor continuity when a discontinuous detailed map is loaded in a graphical user interface.

[0006] Other features and advantages of the present disclosure will become apparent through the following detailed description, or be learned in part through the practice of the present disclosure.

[0007] According to the first aspect of the embodiments of the present disclosure, a map loading method is provided. By listening to the zoom instruction for the first-level map and zooming the first-level map according to the zoom instruction, the zoomed first-level map is obtained; determining the map area displayed by the zoomed first-level map in the graphical user interface; in response to the presence of a capture target in the map area, loading the second-level map corresponding to the capture target, where the fineness of the second-level map is greater than the fineness of the first-level map.

[0008] In some exemplary embodiments of the present disclosure, based on the foregoing solution, in response to the presence of a capture target in the map area, loading the second-level map corresponding to the capture target includes: determining at least one map aggregation identifier in the zoomed first-level map; in response to an association relationship existing between the map area and the map aggregation identifier, using the map aggregation identifier as the capture target in the map area; loading the second-level map corresponding to the capture target.

[0009] In some exemplary embodiments of the present disclosure, based on the foregoing solution, when there are at least two map aggregation identifiers, in response to an association relationship existing between the map area and the map aggregation identifiers, taking the map aggregation identifiers as capture targets in the map area includes: obtaining the central position of the map area; determining the distance data between the central position and the map aggregation identifiers; determining the target map aggregation identifier among the map aggregation identifiers according to the distance data; and taking the target map aggregation identifier as the capture target.

[0010] In some exemplary embodiments of the present disclosure, based on the foregoing solution, determining the target map aggregation identifier among the map aggregation identifiers according to the distance data includes: if the numerical values of the distance data are all different, taking the map aggregation identifier corresponding to the distance data with the smallest numerical value as the target map aggregation identifier; if there are at least two identical target distance data, obtaining the identification numbers of the map aggregation identifiers corresponding to the target distance data, and determining the target map aggregation identifier according to the identification numbers.

[0011] In some exemplary embodiments of the present disclosure, based on the foregoing solution, in response to a capture target existing in the map area, loading the second-level map corresponding to the capture target includes: setting a preset loading time; and performing a preloading operation on the second-level map corresponding to the capture target within the preset loading time.

[0012] In some exemplary embodiments of the present disclosure, based on the foregoing solution, when there are at least two map aggregation identifiers, loading the second-level map corresponding to the capture target includes: loading the second-level maps corresponding to each map aggregation identifier in sequence according to a preset loading order; if the second-level map corresponding to the capture target has not been loaded, updating the preset loading order to preferentially load the second-level map corresponding to the capture target through the updated preset loading order.

[0013] In some exemplary embodiments of the present disclosure, based on the foregoing solution, after loading the second-level map corresponding to the capture target in response to a capture target existing in the map area, the method further includes: obtaining the regular point information in the first-level map; in response to a magnification instruction for the zoomed first-level map, setting a preset switching time, and after the preset switching time, in response to the magnification instruction again, switching the regular point information to the fine point information in the second-level map, and prompting in the graphical user interface that the current interface area is the display area of the second-level map.

[0014] In some exemplary embodiments of the present disclosure, based on the foregoing solution, after prompting in the graphical user interface that the current interface area is the display area of the second-level map, it further includes: in response to a reduction instruction for the second-level map, setting a preset switching time; and after the preset switching time, in response to the reduction instruction again, switching the second-level map to the first-level map.

[0015] In some exemplary embodiments of the present disclosure, based on the foregoing solution, after the map aggregation identifier is used as the capture target in the map area when there is an association relationship between the response map area and the map aggregation identifier, the method further includes: in response to a capture prompt instruction for the capture target, prompting the map aggregation identifier to enter the map area within a preset prompt time.

[0016] According to a second aspect of the embodiments of the present disclosure, there is provided a map loading device, including: a listening unit, configured to listen for a zoom instruction for a first-level map and zoom the first-level map according to the zoom instruction to obtain a zoomed first-level map; a determining unit, configured to determine a map area displayed in a graphical user interface for the zoomed first-level map; and a response unit, configured to respond to the presence of a capture target in the map area and load a second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map.

[0017] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including: a processor; and a memory, where a computer-readable instruction is stored on the memory, and when the computer-readable instruction is executed by the processor, the map loading method according to any one of the above is implemented.

[0018] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the map loading method according to any one of the above is implemented.

[0019] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0020] In the map loading method in the exemplary embodiments of the present disclosure, by listening for a zoom instruction for a first-level map and zooming the first-level map according to the zoom instruction to obtain a zoomed first-level map; determining a map area displayed in a graphical user interface for the zoomed first-level map; and responding to the presence of a capture target in the map area and loading a second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map. On the one hand, by determining whether there is a capture target in the map area, when it is determined that there is a capture target, it can be considered that the current user needs to load the second-level map corresponding to the capture target, and then switch the first-level map to the second-level map corresponding to the capture target, realizing the detection of the connection and relationship between the discontinuous fine map and the corresponding conventional map. In this way, the continuity and smoothness during the switch between the conventional map and the discontinuous fine map can be effectively improved, and the cumbersome and fragmented situation of the switch operation can be avoided; on the other hand, in response to the presence of a capture target in the map area, by preferentially loading the second-level map corresponding to the capture target, the second-level map can be continuously loaded in the graphical user interface.

[0021] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts. In the drawings:

[0023] Figure 1 FIG. shows a schematic diagram of an exemplary system architecture in which a map loading method and apparatus according to the present disclosure can be applied in an exemplary embodiment;

[0024] Figure 2 FIG. schematically shows a schematic diagram of a map loading method according to some embodiments of the present disclosure;

[0025] Figure 3 FIG. schematically shows a schematic diagram of a map level according to some embodiments of the present disclosure;

[0026] Figure 4 FIG. schematically shows a schematic diagram of an association relationship according to some embodiments of the present disclosure Figure 1 ;

[0027] Figure 5 FIG. schematically shows a schematic diagram of an association relationship according to some embodiments of the present disclosure Figure 2 ;

[0028] Figure 6 FIG. schematically shows a schematic diagram of an association relationship according to some embodiments of the present disclosure Figure 3 ;

[0029] Figure 7 FIG. schematically shows a schematic diagram of an association relationship according to some embodiments of the present disclosure Figure 4 ;

[0030] Figure 8 FIG. schematically shows a schematic diagram of an association relationship according to some embodiments of the present disclosure Figure 5 ;

[0031] Figure 9 FIG. schematically shows a schematic diagram of an association relationship according to some embodiments of the present disclosure Figure 6 ;

[0032] Figure 10 FIG. schematically shows a schematic diagram of an association relationship according to some embodiments of the present disclosure Figure 7 ;

[0033] Figure 11 A schematic diagram showing the priority loading order according to some embodiments of the present disclosure;

[0034] Figure 12 A schematic diagram showing the entry into the second-level map according to some embodiments of the present disclosure;

[0035] Figure 13 A schematic diagram showing the operation of the second-level map according to some embodiments of the present disclosure;

[0036] Figure 14 A schematic diagram showing the exit from the second-level map according to some embodiments of the present disclosure;

[0037] Figure 15 A schematic diagram showing a map loading device according to some embodiments of the present disclosure;

[0038] Figure 16 A schematic diagram showing the structure of a computer system of an electronic device according to some embodiments of the present disclosure.

[0039] In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed implementation manners

[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.

[0041] In addition, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or can be implemented using other methods, components, devices, steps, etc. In other cases, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the present disclosure.

[0042] In addition, the drawings are only schematic diagrams and are not necessarily drawn to scale. The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0043] Figure 1 The figure shows a schematic diagram of an exemplary system architecture to which a map loading method and apparatus according to embodiments of the present disclosure can be applied.

[0044] As Figure 1 shown, the system architecture 100 may include one or more of the terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with a display screen, including but not limited to desktop computers, portable computers, smartphones, and tablet computers, etc. It should be understood that Figure 1 the numbers of terminal devices, networks, and servers in

[0045] are merely illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, and servers. For example, the server 105 may be a server cluster composed of multiple servers, etc.

[0046] The map loading method provided by the embodiments of the present disclosure can be executed by the terminal devices 101, 102, 103. Correspondingly, the map loading apparatus can also be set in the terminal devices 101, 102, 103. The map loading method provided by the embodiments of the present disclosure can also be jointly executed by the terminal devices 101, 102, 103 and the server 105. Correspondingly, the map loading apparatus can be set in the terminal devices 101, 102, 103 and the server 105. In addition, the map loading method provided by the embodiments of the present disclosure can also be executed by the server 105. Correspondingly, the map loading apparatus can be set in the server 105. No special limitation is made in this exemplary embodiment.

[0046] For example, in this exemplary embodiment, a zoom instruction for the first-level map can be obtained by listening through the terminal devices 101, 102, 103 from the server 105 deployed on the game platform; then, the map area to be displayed in the graphical user interface for the zoomed first-level map is determined; after that, the server 105 continues to respond to the presence of a capture target in the map area and loads the second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map.

[0047] However, those skilled in the art can easily understand that the above operations are only for illustration and are not limited thereto in this exemplary embodiment.

[0048] In one embodiment of the present disclosure, the map loading method can run on a terminal device or a server. Hereinafter, an example of the terminal device executing the map loading method in the present disclosure is used for illustration. Figure 2A schematic diagram showing a map loading method according to some embodiments of the present disclosure is schematically illustrated. Refer to Figure 2 As shown, the map loading method loads a first-level map in an interface running program, which may include the following steps:

[0049] Step S210, listen for a zoom instruction for the first-level map, and zoom the first-level map according to the zoom instruction to obtain a zoomed first-level map.

[0050] The zoom instruction refers to an instruction for enlarging or reducing the map content. For example, when the terminal device is a smart phone, the zoom instruction is a two-finger sliding operation on the screen corresponding to the graphical user interface, or it can also be a two-finger click operation on the screen. When the terminal device is a PC, the zoom instruction is an enlargement or reduction operation achieved by the mouse wheel or the left and right keys. This embodiment is not limited thereto.

[0051] The first-level map and the second-level map can be maps of different representation forms of the same map content in the game scene. Among them, the first-level map is a large map with continuous boundaries, and the second-level map is a discontinuous segmented map corresponding to different regions in the first-level map. For example, the first-level map can be a map with rough content, and the second-level map can be a discontinuous map that details some parts of the rough map. The number of second-level maps can be equal to the number of regions divided in the first-level map, and the second-level maps correspond one by one to the regions divided in the first-level map.

[0052] For example, the first-level map can be a regular map in a game scene as shown in Figure 3 As shown, this regular map can map multiple discontinuous second-level detailed maps. Among them, when executing the zoom instruction for the first-level map, based on the graphical user interface, the first-level map displayed in the graphical user interface is zoomed to obtain a zoomed first-level map. Among them, the zoom instruction can be an enlargement of the first-level map or a reduction of the first-level map, depending on the current zoom ratio of the first-level map in the graphical user interface. Generally speaking, when the first-level map is at the initial loading moment, the zoom instruction refers to a reduction operation of the first-level map. The present disclosure does not make a limitation. It should be noted that when loading the first-level map in different scenarios, due to the large loading area, the first-level map cannot be completely displayed in the graphical user interface. For example, as shown in Figure 3 As shown, at the initial loading moment of the first-level map of the present disclosure, only part of the content of the regular map is displayed in the graphical user interface.

[0053] Step S220, determine the map area displayed by the zoomed first-level map in the graphical user interface.

[0054] For example, when the scaling ratio of the scaling instruction is Z1, obtain the scaled map of the first-level map at the moment of Z1, and determine the display area image of the scaled first-level map in the graphical user interface (corresponding to the map area in the present disclosure).

[0055] Step S230, in response to the presence of a capture target in the map area, load the second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map.

[0056] The capture target may be a map aggregation identifier aggregated together according to rules. For example, the identifier may be a road marker or a building marker in a certain area on the map. The rule may be that when the distance value between road markers or building markers in a certain area point on the map is less than a certain distance value, these markers are aggregated to obtain the map aggregation identifier in the present disclosure.

[0057] Specifically, the specific implementation steps of loading the second-level map corresponding to the capture target in response to the presence of the capture target in the map area in this step include: determining at least one map aggregation identifier in the scaled first-level map; in response to the existence of an association relationship between the map area and the map aggregation identifier, using the map aggregation identifier as the capture target in the map area; and loading the second-level map corresponding to the capture target.

[0058] The map aggregation identifier may be a regular marker of a block area or a special graphic, and the association relationship may be an inclusion relationship or an intersection relationship.

[0059] For example, when there is at least one map aggregation identifier in the scaled first-level map, in response to the scaling instruction, when the game player changes the scaling ratio of the first-level map through the scaling operation so that the scaling ratio of the map reaches a specific value Z, determine whether there is an inclusion relationship between the map area and the map aggregation identifier. As Figure 4 shown, if the map area 402 includes the map aggregation identifier 403, then use the map aggregation identifier as the capture target in the map area. Or, when the scaling ratio of the map reaches the specific value Z, determine whether there is an intersection relationship between the map area and the map aggregation identifier. As Figure 5 shown, if the map area 402 intersects with the map aggregation identifier 403, then use the map aggregation identifier as the capture target in the map area. On the contrary, if the scaling ratio of the map does not reach the specific value Z, or there is no association relationship between the map area and the map aggregation identifier, specific examples can be seen in Figure 6 and Figure 7 shown, then the map aggregation identifier will not be used as the capture target. Further, as Figure 8As shown, if the zoom ratio of the map does not reach a specific value Z and there is no association relationship between the map area 402 and the map aggregation identifier 403, then the map aggregation identifiers will not be used as capture targets. Through the target capture judgment mechanism of the present disclosure, preloading of the captured refined map resources will be performed during capture. In the case where the map area is large, there are many non - continuous refined maps and frequent real - time updates and changes, and resource loading is slow, the refined map resources can be connected more smoothly, improving the player experience.

[0060] Optionally, when there are at least two map aggregation identifiers in the first - level map after zooming, in response to the existence of an association relationship between the map area and the map aggregation identifier, the map aggregation identifier can be used as a capture target in the map area, and it can be obtained through the following steps: obtain the central position of the map area; determine the distance data between the central position and the map aggregation identifier; determine the target map aggregation identifier among the map aggregation identifiers according to the distance data; use the target map aggregation identifier as the capture target.

[0061] For example, when multiple map aggregation identifiers are captured in the map area, the target map aggregation identifier among the multiple map aggregation identifiers is identified as the capture target according to the distance data from the center point of the map area or the aggregate identification code. The specific identification steps are as follows: if the numerical values of the distance data are all different, then the map aggregation identifier corresponding to the smallest distance data value is used as the target map aggregation identifier; if there are at least two identical target distance data, then obtain the identification number of the map aggregation identifier corresponding to the target distance data, and determine the target map aggregation identifier according to the identification number.

[0062] For example, as Figure 9 shown, the distance value of the map aggregation identifier 4031 from the center position 406 of the map area 402 is greater than the distance value corresponding to the marked aggregated map aggregation identifier 4032, then the map aggregation identifier 4032 is used as the target map aggregation identifier. Additionally, as Figure 10 shown, if there are two identical distance values in the distance data, compare them according to the identification number of the aggregate, and the one with the earlier label is used as the capture target. As Figure 10 marked in, the map aggregation identifier 4031 is used as the capture target. Through the target capture judgment mechanism of the present disclosure, preloading of the captured refined map resources will be performed during capture. In the case where the map area is large, there are many non - continuous refined maps and frequent real - time updates and changes, and resource loading is slow, the refined map resources can be connected more smoothly, improving the player experience.

[0063] Specifically, after using the map aggregation identifier as the capture target in the map area in response to the existence of an association relationship between the map area and the map aggregation identifier, the method further includes: in response to the capture prompt instruction for the capture target, prompt that the map aggregation identifier enters the map area within a preset prompt time.

[0064] For example, when the preset prompt time is t, as Figure 4 shown, in response to the capture prompt instruction for the capture target, the prompt identifier aggregates into the graphical user interface corresponding to map area 402. The response to the capture prompt instruction for the capture target in other schematic diagrams is similar and will not be elaborated here.

[0065] Next, the specific implementation steps for loading the second-level map corresponding to the capture target in response to the presence of the capture target in the map area include: setting a preset loading time; performing a preloading operation on the second-level map corresponding to the capture target within the preset loading time.

[0066] For example, when the map aggregation identifier is captured, a time interval t is set so that the game player can enter the detailed map (second-level map) only after the time interval t. The purpose is to reserve time for loading and prevent accidental touch caused by too fast mouse wheel operation.

[0067] Finally, loading the second-level map corresponding to the capture target is achieved through the following steps: loading the second-level maps corresponding to each map aggregation identifier in sequence according to the preset loading order; if the second-level map corresponding to the capture target has not been loaded, update the preset loading order to preferentially load the second-level map corresponding to the capture target through the updated preset loading order.

[0068] For example, when there are at least two map aggregation identifiers, the preset loading order can be as Figure 11 shown in the loading order, where Figure 11 - The position of the selected circle at -01 indicates that the second-level map corresponding to the capture target has not been loaded. At this time, the loading order needs to be updated to preferentially load the position of the selected circle at 11-01 to obtain the loaded second-level map corresponding to the capture target. The example diagram is shown in 11-02. Based on target capture, the present disclosure performs priority calculation and loading of the corresponding detailed map. If the detailed map corresponding to the captured target has not been calculated and loaded before the player captures the target, after the target is captured, the server will preferentially calculate the corresponding detailed map and load the cache on the client. Then continue to calculate in the established order. The example diagram is shown in 11-03, further improving the player experience.

[0069] After loading the second-level map, the specific implementation steps for switching the first-level map to the second-level map include the following: obtaining the regular point information in the first-level map; in response to the zoom-in instruction for the zoomed first-level map, setting a preset switching time, and after the preset switching time, in response to the zoom-in instruction again, switching the regular point information to the detailed point information in the second-level map and prompting in the graphical user interface that the current interface area is the display area of the second-level map.

[0070] For example, when a capture prompt instruction exists, a gamer can perform a zoom-in operation (zoom-in instruction) to trigger a preset switching time t. After the preset switching time t, in response to the gamer performing a zoom-in operation on the first-level map in the PC graphical user interface again, as Figure 12 shown, when the zoom ratio is Z1 while the first-level map is switched to the second-level map, the display background map of the regular first-level map is replaced with the corresponding second-level map 1200 in the graphical user interface, and multiple markers are displayed in the second-level map area 1202. Among them, the regular point icon information is replaced with the point information in the detailed map, and the gamer is prompted in the graphical user interface that they are currently in the detailed map corresponding to the second-level map. A section is added to the map scroll bar and the gamer is prompted that they are currently within this section. The gamer can zoom in and out, drag, and view the map within the detailed map, and perform general point operations. Through the setting of the preset switching time t, the present disclosure can effectively prevent accidental touches during interaction through time damping, greatly improving the user experience.

[0071] Optionally, after prompting in the graphical user interface that the current interface area is the display area of the second-level map, the embodiments of the present disclosure also implement map switching through the following steps: in response to a zoom-out instruction for the second-level map, set a preset switching time; after the preset switching time, in response to the zoom-out instruction again, switch the second-level map to the first-level map.

[0072] For example, as Figure 13 shown, when the zoom ratio of the detailed map (i.e., the second-level map) reaches Z2, an exit prompt will appear after a time interval t (i.e., the preset switching time in the present disclosure). When the exit prompt exists within the detailed map, a gamer can perform a zoom-out operation (zoom-out instruction) to exit the detailed map. As Figure 14 shown, when the second-level map is exited and switched to the first-level map, and the zoom ratio reaches Z again, the marker aggregation point 407 appears in the center of the map area 402. Through the setting of the time interval t, the present disclosure can effectively prevent accidental touches during interaction through time damping, greatly improving the user experience.

[0073] In summary, in this exemplary embodiment, by listening to the zoom instruction for the first-level map and zooming the first-level map according to the zoom instruction, a zoomed first-level map is obtained; the map area displayed by the zoomed first-level map in the graphical user interface is determined; in response to the presence of a capture target in the map area, a second-level map corresponding to the capture target is loaded, where the fineness of the second-level map is greater than that of the first-level map. On the one hand, by determining whether there is a capture target in the map area, when it is determined that there is a capture target, it can be considered that the current user needs to load the second-level map corresponding to the capture target, and then switch the first-level map to the second-level map corresponding to the capture target, realizing the detection of the connection and relationship between the non-continuous fine map and the corresponding conventional map. In this way, the continuity and smoothness during the switch between the conventional map and the non-continuous fine map can be effectively improved, avoiding the cumbersome and fragmented situation of the switch operation. On the other hand, in response to the presence of a capture target in the map area, by preferentially loading the second-level map corresponding to the capture target, the second-level map can be continuously loaded in the graphical user interface.

[0074] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that these steps must be executed in that specific order, or that all the steps shown must be executed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.

[0075] In addition, in this exemplary embodiment, a map loading device is provided. Referring to Figure 15 as shown, the map loading device 1500 includes: a listening unit 1501, a determining unit 1502, and a responding unit 1503.

[0076] Specifically, the listening unit 1501 is configured to listen to the zoom instruction for the first-level map and zoom the first-level map according to the zoom instruction to obtain a zoomed first-level map;

[0077] The determining unit 1502 is configured to determine the map area displayed by the zoomed first-level map in the graphical user interface;

[0078] The responding unit 1503 is configured to respond to the presence of a capture target in the map area and load the second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map.

[0079] In summary, in the example embodiment of the present disclosure, the monitoring unit 1501 monitors the zoom instruction for the first-level map and zooms the first-level map according to the zoom instruction to obtain the zoomed first-level map; the determination unit 1502 determines the map area displayed by the zoomed first-level map in the graphical user interface; the response unit 1503 responds to the presence of a capture target in the map area and loads the second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map. On the one hand, by determining whether there is a capture target in the map area, when it is determined that there is a capture target, it can be considered that the current user needs to load the second-level map corresponding to the capture target, and then switch the first-level map to the second-level map corresponding to the capture target, realizing the detection of the connection and relationship between the discontinuous fine map and the corresponding conventional map. In this way, the continuity and smoothness during the switch between the conventional map and the discontinuous fine map can be effectively improved, and the cumbersome and fragmented situation of the switch operation can be avoided; on the other hand, in response to the presence of a capture target in the map area, by preferentially loading the second-level map corresponding to the capture target, the second-level map can be continuously loaded in the graphical user interface.

[0080] In some example embodiments of the present disclosure, based on the foregoing solution, the response unit 1503 includes: a determination subunit, configured to determine at least one map aggregation identifier in the zoomed first-level map; a response subunit, configured to respond to the existence of an association relationship between the map area and the map aggregation identifier, and use the map aggregation identifier as the capture target in the map area; a first loading subunit, configured to load the second-level map corresponding to the capture target.

[0081] In some example embodiments of the present disclosure, based on the foregoing solution, when there are at least two map aggregation identifiers, the response subunit includes: an acquisition module, configured to acquire the central position of the map area; a first determination module, configured to determine the distance data between the central position and the map aggregation identifier; a second determination module, configured to determine the target map aggregation identifier in the map aggregation identifier according to the distance data; a third determination module, configured to use the target map aggregation identifier as the capture target.

[0082] In some example embodiments of the present disclosure, based on the foregoing solution, the second determination module includes: a first determination sub-module, configured to, if the numerical sizes of the distance data are all different, use the map aggregation identifier corresponding to the distance data with the smallest numerical value as the target map aggregation identifier; a second determination sub-module, configured to, if there are at least two identical target distance data, acquire the identifier number of the map aggregation identifier corresponding to the target distance data, and determine the target map aggregation identifier according to the identifier number.

[0083] In some exemplary embodiments of the present disclosure, based on the foregoing solution, the response unit includes: a setting subunit configured to set a preset loading time; and an execution subunit configured to perform a preloading operation on the second-level map corresponding to the capture target within the preset loading time.

[0084] In some exemplary embodiments of the present disclosure, based on the foregoing solution, the response subunit includes: a second loading subunit configured to, when there are at least two map aggregation identifiers, load the second-level maps corresponding to each map aggregation identifier in sequence according to a preset loading order; and an update subunit configured to, if the second-level map corresponding to the capture target has not been loaded, update the preset loading order to preferentially load the second-level map corresponding to the capture target through the updated preset loading order.

[0085] In some exemplary embodiments of the present disclosure, based on the foregoing solution, the method further includes: a point position acquisition unit configured to acquire the general point position information in the first-level map; and a first map switching unit configured to, in response to a magnification instruction for the magnified first-level map, set a preset switching time, and after the preset switching time, in response to the magnification instruction again, switch the general point position information to the fine point position information in the second-level map and prompt in the graphical user interface that the current interface area is the display area of the second-level map.

[0086] In some exemplary embodiments of the present disclosure, based on the foregoing solution, the device further includes: a setting unit configured to, after prompting in the graphical user interface that the current interface area is the display area of the second-level map, set a preset switching time in response to a reduction instruction for the second-level map; and a second map switching unit configured to, after the preset switching time, in response to the reduction instruction again, switch the second-level map to the first-level map.

[0087] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the device further includes: a prompting unit configured to, after determining that there is an association relationship between the response map area and the map aggregation identifier and using the map aggregation identifier as the capture target in the map area, in response to a capture prompt instruction for the capture target, prompt that the map aggregation identifier enters the map area within a preset prompt time.

[0088] The specific details of each module of the above map loading device have been described in detail in the corresponding map loading method, and thus will not be elaborated herein.

[0089] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0090] In addition, although the steps of the methods in the present disclosure are described in a specific order in the drawings, this does not require or imply that these steps must be executed in that specific order, or that all the steps shown must be executed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.

[0091] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of the present disclosure.

[0092] In an exemplary embodiment of the present disclosure, a computer storage medium capable of implementing the above method is also provided. A program product capable of implementing the above method of this specification is stored thereon. In some possible embodiments, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps described in the "exemplary method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the following steps can be executed: by listening for a zoom instruction for the first-level map and zooming the first-level map according to the zoom instruction to obtain a zoomed first-level map; determining the map area of the zoomed first-level map displayed in the graphical user interface; in response to the presence of a capture target in the map area, loading a second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map.

[0093] In an alternative embodiment, in response to the presence of a capture target in the map area, loading the second-level map corresponding to the capture target includes: determining at least one map aggregation identifier in the scaled first-level map; in response to an association relationship existing between the map area and the map aggregation identifier, using the map aggregation identifier as the capture target in the map area; and loading the second-level map corresponding to the capture target.

[0094] In an alternative embodiment, when there are at least two map aggregation identifiers, in response to an association relationship existing between the map area and the map aggregation identifiers, using the map aggregation identifiers as the capture target in the map area includes: obtaining the central position of the map area; determining the distance data between the central position and the map aggregation identifiers; determining the target map aggregation identifier among the map aggregation identifiers according to the distance data; and using the target map aggregation identifier as the capture target.

[0095] In an alternative embodiment, determining the target map aggregation identifier among the map aggregation identifiers according to the distance data includes: if the numerical values of the distance data are all different, using the map aggregation identifier corresponding to the distance data with the smallest numerical value as the target map aggregation identifier; if there are at least two identical target distance data, obtaining the identifier numbers of the map aggregation identifiers corresponding to the target distance data, and determining the target map aggregation identifier according to the identifier numbers.

[0096] In an alternative embodiment, in response to the presence of a capture target in the map area, loading the second-level map corresponding to the capture target includes: setting a preset loading time; and performing a preloading operation on the second-level map corresponding to the capture target within the preset loading time.

[0097] In an alternative embodiment, when there are at least two map aggregation identifiers, loading the second-level map corresponding to the capture target includes: sequentially loading the second-level maps corresponding to each map aggregation identifier according to a preset loading order; if the second-level map corresponding to the capture target has not been loaded, updating the preset loading order to preferentially load the second-level map corresponding to the capture target through the updated preset loading order.

[0098] In an alternative embodiment, after loading the second-level map corresponding to the capture target in response to the presence of the capture target in the map area, the method further includes: obtaining the regular point information in the first-level map; in response to a zoom-in instruction on the scaled first-level map, setting a preset switching time, and after the preset switching time, in response to the zoom-in instruction again, switching the regular point information to the fine point information in the second-level map, and prompting in the graphical user interface that the current interface area is the display area of the second-level map.

[0099] In an alternative embodiment, after prompting in the graphical user interface that the current interface area is the display area of the second-level map, the method further includes: setting a preset switching time in response to a zoom-out instruction for the second-level map; and after the preset switching time, in response to the zoom-out instruction again, switching the second-level map to the first-level map.

[0100] In an alternative embodiment, after determining an association relationship between a map area and a map aggregation identifier and using the map aggregation identifier as a capture target in the map area, the method further includes: in response to a capture prompt instruction for the capture target, prompting that the map aggregation identifier enters the map area within a preset prompt time.

[0101] In an alternative embodiment, an embodiment of the present disclosure may further include a program product for implementing the above method. The program product may be a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0102] The program product may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0103] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0104] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the above.

[0105] The program code for performing the operations of the present disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., by connecting through the Internet using an Internet service provider).

[0106] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0107] Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, a method, or a program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuitry", "module", or "system" here.

[0108] The following refers to Figure 16 to describe the electronic device 1600 according to this embodiment of the present disclosure. Figure 16 The electronic device 1600 shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.

[0109] As Figure 16 shown, the electronic device 1600 is presented in the form of a general-purpose computing device. The components of the electronic device 1600 may include, but are not limited to: the at least one processing unit 1610 described above, the at least one storage unit 1620 described above, a bus 1630 connecting different system components (including the storage unit 1620 and the processing unit 1610), and a display unit 1640.

[0110] Among them, the storage unit stores program code that can be executed by the processing unit 1610, enabling the processing unit 1610 to execute the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section of this specification. For example, the processing unit 1610 may execute the following steps: by listening for a zoom instruction for the first-level map and zooming the first-level map according to the zoom instruction to obtain a zoomed first-level map; determining the map area displayed by the zoomed first-level map in the graphical user interface; in response to the presence of a capture target in the map area, loading a second-level map corresponding to the capture target, where the fineness of the second-level map is greater than that of the first-level map.

[0111] In an alternative embodiment, in response to the presence of a capture target in the map area, loading a second-level map corresponding to the capture target includes: determining at least one map aggregation identifier in the zoomed first-level map; in response to an association relationship existing between the map area and the map aggregation identifier, using the map aggregation identifier as the capture target in the map area; loading the second-level map corresponding to the capture target.

[0112] In an alternative embodiment, when there are at least two map aggregation identifiers, in response to an association relationship existing between the map area and the map aggregation identifier, using the map aggregation identifier as the capture target in the map area includes: obtaining the central position of the map area; determining the distance data between the central position and the map aggregation identifier; determining the target map aggregation identifier among the map aggregation identifiers according to the distance data; using the target map aggregation identifier as the capture target.

[0113] In an alternative embodiment, determining the target map aggregation identifier among the map aggregation identifiers according to the distance data includes: if the numerical sizes of the distance data are all different, using the map aggregation identifier corresponding to the smallest numerical distance data as the target map aggregation identifier; if there are at least two identical target distance data, obtaining the identifier numbers of the map aggregation identifiers corresponding to the target distance data and determining the target map aggregation identifier according to the identifier numbers.

[0114] In an alternative embodiment, in response to the presence of a capture target in the map area, loading a second-level map corresponding to the capture target includes: setting a preset loading time; performing a preloading operation on the second-level map corresponding to the capture target within the preset loading time.

[0115] In an alternative embodiment, when there are at least two map aggregation identifiers, loading the second-level map corresponding to the capture target includes: loading the second-level maps corresponding to each map aggregation identifier in sequence according to a preset loading order; if the second-level map corresponding to the capture target has not been loaded, updating the preset loading order to preferentially load the second-level map corresponding to the capture target through the updated preset loading order.

[0116] In an alternative embodiment, after there is a capture target in the response map area and the second-level map corresponding to the capture target is loaded, the method further includes: obtaining the regular point information in the first-level map; in response to a zoom-in instruction on the scaled first-level map, setting a preset switching time, and after the preset switching time, in response to the zoom-in instruction again, switching the regular point information to the fine point information in the second-level map, and prompting in the graphical user interface that the current interface area is the display area of the second-level map.

[0117] In an alternative embodiment, after prompting in the graphical user interface that the current interface area is the display area of the second-level map, it further includes: in response to a zoom-out instruction on the second-level map, setting a preset switching time; after the preset switching time, in response to the zoom-out instruction again, switching the second-level map to the first-level map.

[0118] In an alternative embodiment, after there is an association relationship between the response map area and the map aggregation identifier and the map aggregation identifier is used as the capture target in the map area, the method further includes: in response to a capture prompt instruction for the capture target, prompting that the map aggregation identifier enters the map area within a preset prompt time.

[0119] The storage unit 1620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 16201 and / or a cache storage unit 16202, and may further include a read-only storage unit (ROM) 16203.

[0120] The storage unit 1620 may further include a program / utilities 16204 having a set (at least one) of program modules 16205. Such program modules 16205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment.

[0121] The bus 1630 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any bus structure in a variety of bus structures.

[0122] The electronic device 1600 can also communicate with one or more external devices 1700 (such as a keyboard, a pointing device, a Bluetooth device, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 1600, and / or communicate with any device that enables the electronic device 1600 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 1650. Moreover, the electronic device 1600 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 1660. As shown in the figure, the network adapter 1660 communicates with other modules of the electronic device 1600 through the bus 1630. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 1600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0123] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by the way of software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on the network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0124] In addition, the above drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, rather than for limiting purposes. It is easy to understand that the processes shown in the above drawings do not indicate or limit the time sequence of these processes. Additionally, it is also easy to understand that these processes can be executed, for example, synchronously or asynchronously in multiple modules.

[0125] After considering the specification and practicing the invention disclosed herein, those skilled in the art will easily think of other embodiments of the present disclosure. The present disclosure aims to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include the common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and the embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.

Claims

1. A map loading method, characterized in that, loading a first-level map in an interface running program, the method comprising: listening for a zoom instruction for the first-level map, and zooming the first-level map according to the zoom instruction to obtain a zoomed first-level map; determining a map area displayed in the graphical user interface for the zoomed first-level map; determining at least one map aggregation identifier in the zoomed first-level map; in response to an association relationship existing between the map area and the map aggregation identifier, using the map aggregation identifier as a capture target in the map area, the association relationship including one of an inclusion relationship and an intersection relationship; loading second-level maps corresponding to each map aggregation identifier in sequence according to a preset loading order; if the second-level map corresponding to the capture target has not been loaded, updating the preset loading order to preferentially load the second-level map corresponding to the capture target through the updated preset loading order, wherein the fineness of the second-level map is greater than that of the first-level map.

2. The method according to claim 1, characterized in that, when there are at least two map aggregation identifiers, in response to an association relationship existing between the map area and the map aggregation identifier, using the map aggregation identifier as the capture target in the map area, includes: obtaining the central position of the map area; determining distance data between the central position and the map aggregation identifier; determining a target map aggregation identifier among the map aggregation identifiers according to the distance data; using the target map aggregation identifier as the capture target.

3. The method according to claim 2, characterized in that, determining a target map aggregation identifier among the map aggregation identifiers according to the distance data, includes: if the numerical values of the distance data are all different, using the map aggregation identifier corresponding to the smallest numerical value of the distance data as the target map aggregation identifier; if there are at least two identical target distance data, obtaining the identification numbers of the map aggregation identifiers corresponding to the target distance data, and determining the target map aggregation identifier according to the identification numbers.

4. The method according to claim 1, characterized in that, in response to a capture target existing in the map area, loading the second-level map corresponding to the capture target, includes: setting a preset loading time; performing a preloading operation on the second-level map corresponding to the capture target within the preset loading time.

5. The method according to claim 1, characterized in that, after loading the second-level map corresponding to the capture target in response to a capture target existing in the map area, the method further includes: obtaining conventional point information in the first-level map; In response to a zoom-in instruction for the scaled first-level map, a preset switching time is set. After the preset switching time, in response to the zoom-in instruction again, the general point information is switched to the detailed point information in the second-level map, and it is prompted in the graphical user interface that the current interface area is the display area of the second-level map.

6. The method according to claim 5, wherein, after it is prompted in the graphical user interface that the current interface area is the display area of the second-level map, it further includes: in response to a zoom-out instruction for the second-level map, setting the preset switching time; after the preset switching time, in response to the zoom-out instruction again, switching the second-level map to the first-level map.

7. The method according to claim 1, wherein, after, in response to an association relationship existing between the map area and the map aggregation identifier, taking the map aggregation identifier as the capture target in the map area, the method further includes: in response to a capture prompt instruction for the capture target, prompting that the map aggregation identifier enters the map area within a preset prompt time.

8. A map loading device, wherein, when loading a first-level map during the operation of a program in a graphical interface, the device includes: a monitoring unit, configured to monitor a zoom instruction for the first-level map and perform zooming on the first-level map according to the zoom instruction to obtain a scaled first-level map; a determination unit, configured to determine a map area displayed in the graphical user interface for the scaled first-level map; a response unit, configured to determine at least one map aggregation identifier in the scaled first-level map; in response to an association relationship existing between the map area and the map aggregation identifier, taking the map aggregation identifier as the capture target in the map area, where the association relationship includes one of an inclusion relationship and an intersection relationship; loading the second-level map corresponding to each map aggregation identifier in sequence according to a preset loading order; if the second-level map corresponding to the capture target has not been loaded, updating the preset loading order to preferentially load the second-level map corresponding to the capture target through the updated preset loading order, where the fineness of the second-level map is greater than that of the first-level map.

9. An electronic device, including: a processor; and a memory, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, the map loading method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the map loading method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Engineering map display method and device

    CN108491132A

  • Method for optimizing map tile loading, terminal equipment and storage medium

    CN114116943A