Map-based grid display method and device, terminal equipment and storage medium
By receiving instructions to create grids on the electronic map and displaying overlap prompts, the problem of grid overlap was solved, achieving both accuracy and user interactivity in grid labeling.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- RICHFIT INFORMATION TECH
- Filing Date
- 2024-12-17
- Publication Date
- 2026-06-19
AI Technical Summary
Manually drawn polygonal grid areas on electronic maps may overlap, resulting in insufficient accuracy of grid labeling, which prevents users from being aware of and making timely adjustments.
By receiving instructions to create a grid, the system generates the grid's area and display style, and displays a prompt message when there are overlapping areas between grids. Users can adjust the grid's area to avoid overlap.
It improves the accuracy of grid labeling on electronic maps, avoids overlap between grids at the same level, and enhances the accuracy of grid division and user experience.
Smart Images

Figure CN122240733A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of application development technology, and in particular to a map-based grid display method, apparatus, terminal device, and storage medium. Background Technology
[0002] An electronic map is a map whose information has been digitized and displayed on a terminal device.
[0003] In related technologies, the area of a grid is determined by manually drawing polygons on an electronic map. However, in this technology, grid areas drawn at the same level may overlap, and users may not be aware of this in a timely manner, thus affecting the accuracy of grid labeling on the electronic map. Summary of the Invention
[0004] This application provides a map-based grid display method, apparatus, terminal device, and storage medium, which can improve the accuracy of grid annotations on electronic maps. The technical solution provided by this application is as follows:
[0005] According to one aspect of the embodiments of this application, a map-based grid display method is provided, the method comprising:
[0006] Receive the instruction to create the first grid on the electronic map;
[0007] According to the instructions, the area range of the first grid on the electronic map and the display style of the first grid are generated;
[0008] If there is an overlapping area between the first grid and other grids at the same level, a first prompt message is displayed to prompt the user to adjust the area range of the first grid.
[0009] In some embodiments, the electronic map includes a parent grid and at least one child grid corresponding to the parent grid, wherein the child grid is located within the area of the parent grid.
[0010] In some embodiments, the method further includes:
[0011] If the area of the parent grid changes, the area of the child grid is compared with the changed area of the parent grid.
[0012] If the child grid has a region outside the changed region of the parent grid, the region of the child grid is adjusted to obtain a changed child grid, which is located within the changed region of the parent grid.
[0013] In some embodiments, comparing the region of the child grid with the changed region of the parent grid when the region of the parent grid changes includes:
[0014] If the edge coordinates of the parent mesh change, the edge coordinates of the child mesh are compared with the changed edge coordinates of the parent mesh.
[0015] When the child grid contains a region outside the changed region of the parent grid, adjusting the region of the child grid to obtain the changed child grid includes:
[0016] If there are coordinate points in the child grid that are outside the area of the parent grid after the change, the coordinate points of the child grid that are outside the area of the parent grid after the change are reassigned to obtain the changed child grid.
[0017] In some embodiments, after comparing the region of the child grid with the changed region of the parent grid, if the child grid is still within the changed region of the parent grid, the region of the child grid remains unchanged.
[0018] In some embodiments, after displaying the first prompt information, the method further includes:
[0019] In response to a first operation on the first grid, an automatically adjusted region extent for the first grid is generated;
[0020] Display the first grid according to the area range automatically adjusted by the first grid.
[0021] Specifically, the area range of the first grid after automatic adjustment is different from the area range indicated by the instruction, except that the overlapping area is removed.
[0022] In some embodiments, the method further includes:
[0023] Obtain the region extent of the first grid and other grids at the same level;
[0024] The regions of the first grid are compared with the regions of other grids at the same level. If there is a point in the first grid that is located within the region of another grid at the same level, it is determined that there is an overlapping region between the first grid and other grids at the same level.
[0025] According to one aspect of the embodiments of this application, a map-based grid display device is provided, the device comprising:
[0026] The instruction receiving module is used to receive instructions to create the first grid on the electronic map;
[0027] The generation module is used to generate the area range of the first grid on the electronic map and the display style of the first grid according to the instructions;
[0028] The information display module is used to display a first prompt message when there is an overlapping area between the first grid and other grids at the same level. The first prompt message is used to prompt the user to adjust the area range of the first grid.
[0029] In some embodiments, the electronic map includes a parent grid and at least one child grid corresponding to the parent grid, wherein the child grid is located within the area of the parent grid.
[0030] In some embodiments, the apparatus further includes:
[0031] The region comparison module is used to compare the region range of the child grid with the changed region range of the parent grid when the region range of the parent grid changes.
[0032] The region adjustment module is used to adjust the region range of the child grid when there is a region outside the region range of the parent grid after the change, so as to obtain a changed child grid, wherein the changed child grid is located within the region range of the parent grid after the change.
[0033] In some embodiments, the region comparison module is used to compare the edge coordinates of the child grid with the changed edge coordinates of the parent grid when the edge coordinates of the parent grid change.
[0034] The region adjustment module is used to reassign the coordinates of the child grid located outside the changed region of the parent grid when the child grid has coordinates located outside the changed region of the parent grid, so as to obtain the changed child grid.
[0035] In some embodiments, after comparing the region of the child grid with the changed region of the parent grid, if the child grid is still within the changed region of the parent grid, the region of the child grid remains unchanged.
[0036] In some embodiments, the apparatus further includes:
[0037] A region generation module is used to generate an automatically adjusted region range of the first grid in response to a first operation on the first grid.
[0038] A grid display module is used to display the first grid according to the area range automatically adjusted by the first grid.
[0039] Specifically, the area range of the first grid after automatic adjustment is different from the area range indicated by the instruction, except that the overlapping area is removed.
[0040] In some embodiments, the apparatus further includes:
[0041] The range acquisition module is used to acquire the area range of the first grid and other grids at the same level.
[0042] The region comparison module is further configured to compare the region range of the first grid with the region range of other grids at the same level, and if there is a point in the first grid that is located within the region range of other grids at the same level, determine that there is an overlapping region between the first grid and other grids at the same level.
[0043] According to one aspect of the embodiments of this application, a terminal device is provided, the terminal device including a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-described map-based grid display method.
[0044] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the above-described map-based grid display method.
[0045] According to one aspect of the embodiments of this application, a computer program product is provided, which is loaded and executed by a processor to implement the above-described map-based grid display method.
[0046] The technical solutions provided in this application embodiment may have the following beneficial effects:
[0047] By setting up logic to determine overlap between grids, overlap between grids at the same level on the electronic map is avoided, thereby improving the accuracy of grid labeling on the electronic map.
[0048] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a flowchart of a map-based grid display method provided in one embodiment of this application;
[0051] Figure 2 This is a schematic diagram of an electronic map provided in one embodiment of this application;
[0052] Figure 3 This is a flowchart of a map-based grid display method provided in another embodiment of this application;
[0053] Figure 4 This is a block diagram of a map-based grid display device provided in one embodiment of this application;
[0054] Figure 5 This is a block diagram of a terminal device provided in one embodiment of this application. Detailed Implementation
[0055] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of methods consistent with some aspects of this application as detailed in the appended claims.
[0056] The method provided in this application embodiment can be executed by a terminal device, which refers to an electronic device with data computing, processing and storage capabilities, such as a PC (Personal Computer), tablet computer, smartphone, wearable device, intelligent robot, vehicle terminal, etc.
[0057] The technical solution of this application will be described and illustrated below through several embodiments.
[0058] Please refer to Figure 1 This document illustrates a flowchart of a map-based grid display method according to an embodiment of this application. In this embodiment, the method is primarily illustrated by its application to the terminal device described above. The method may include at least one of the following steps (110-130).
[0059] Step 110: Receive the instruction to create the first grid on the electronic map.
[0060] In some embodiments, an electronic map is a map that can be stored and displayed on a terminal device (such as on the display screen of the terminal device). An electronic map may include photographs of real maps, as well as elements such as lines, graphics, images, and text. In some embodiments, by performing operations such as zooming in, zooming out, and moving the displayed map, display changes such as zooming in, zooming out, and moving the electronic map can be achieved, i.e., controlling the display scale and display area of the electronic map.
[0061] The technical solutions provided in this application aim to play a key role in the grid-based management of intelligent platforms. This application relates to Geographic Information Systems (GIS) and digital map production. By integrating map services, this application can achieve efficient division of jurisdictional areas, creating multiple grid-like units. Each grid-like unit can contain geographic location information, as well as information on population, land, resources, events, and organizations. All this information can be organized systematically in the unit's attribute information column, facilitating quick access and effective management of relevant information for users.
[0062] In some embodiments, in response to a user's grid editing operation, an instruction is generated to create a first grid on an electronic map. In some embodiments, the instruction may carry the area range and display style of the first grid to be generated. In some embodiments, the display style may include the grid's border width, color, line style, etc., and may also include the grid's internal color, transparency, etc.
[0063] Step 120: As instructed, generate the area range of the first grid on the electronic map and the display style of the first grid.
[0064] In some embodiments, a first grid is generated on an electronic map according to the area and display style of the first grid indicated in the instruction. In some embodiments, the first grid is displayed above the display hierarchy of the electronic map. In some embodiments, the instruction may also include labeling content facing the first grid, such as at least one of text labels, image labels, and numerical labels.
[0065] Step 130: If there is an overlapping area between the first grid and other grids at the same level, display a first prompt message to prompt the user to adjust the area range of the first grid.
[0066] In some embodiments, the mesh can be divided into multiple different levels, and there should be no overlapping areas between meshes of the same level. Therefore, if there is an overlapping area between the area range of the first mesh indicated in the instruction and other meshes, the mesh cannot be generated directly according to the area range indicated in the instruction.
[0067] In some embodiments, the method further includes:
[0068] 1. Obtain the area range of the first grid and other grids at the same level;
[0069] 2. Compare the area of the first grid with the area of other grids at the same level. If there is a point in the first grid that is located within the area of other grids at the same level, then it is determined that there is an overlapping area between the first grid and other grids at the same level.
[0070] In this embodiment, if there is a point in the first grid that is located in another grid of the same level, it means that the first grid and the other grid of the same level have an overlapping area. In order to avoid grid division confusion, the overlapping area of the first grid and other grids can be removed, thereby improving the accuracy of grid division.
[0071] In some embodiments, the first prompt message may be displayed in the form of text and / or voice. In some embodiments, when the first prompt message contains text, the first prompt message may be displayed as a pop-up window.
[0072] In some embodiments, when a user clicks the save button, the system will determine whether the user meets the criteria for adding a grid map based on the corresponding method. If the user does not meet the criteria, a pop-up message (i.e., the first prompt message) will be sent to remind the user. After the user successfully saves the map, the map's coordinate data will be associated with the corresponding grid data on the left.
[0073] In some embodiments, after a user adds a grid, the system will automatically locate the largest grid within the user's permissions each time they enter the electronic map, allowing the user to edit, drag, zoom, and perform other operations on the electronic map containing the grid. In some embodiments, richer interactive effects can be achieved by listening to relevant events (such as listening to user operations on the electronic map containing the grid).
[0074] In summary, the technical solution provided in this application, by setting up overlap judgment logic between grids, avoids overlap between grids of the same level on the electronic map, thereby improving the accuracy of grid labeling on the electronic map.
[0075] In some possible implementations, the electronic map includes a parent grid and at least one child grid corresponding to the parent grid, with the child grid located within the area of the parent grid.
[0076] In some embodiments, there may be a parent-child relationship (or a superior-subordinate relationship) between different levels of grids. A lower-level grid must be located within its corresponding higher-level grid (such as a parent grid); or in other words, each grid with a lower-level grid (i.e., a child grid) must have its lower-level grid located within the area of that grid, thereby avoiding grid information confusion.
[0077] In some embodiments, the method further includes the following steps:
[0078] 1. When the area of the parent grid changes, compare the area of the child grid with the changed area of the parent grid;
[0079] 2. If there is a region in the child mesh that is outside the changed region of the parent mesh, adjust the region of the child mesh to obtain the changed child mesh, which is located within the changed region of the parent mesh.
[0080] In some embodiments, if the area of the parent mesh changes, the area of the child mesh of the parent mesh is compared with the changed area of the parent mesh. If the comparison result indicates that there is a child mesh outside the changed area of the parent mesh, the child mesh also needs to be adjusted accordingly to ensure that the child mesh is still within the changed area of the parent mesh and does not exceed the parent mesh, thereby ensuring the containment relationship between the parent mesh and the child mesh, avoiding mesh information confusion, and improving the accuracy of mesh division.
[0081] In some embodiments, when the area of the parent mesh changes, comparing the area of the child mesh with the changed area of the parent mesh includes: when the edge coordinates of the parent mesh change, comparing the edge coordinates of the child mesh with the changed edge coordinates of the parent mesh.
[0082] In some embodiments, when there are regions in the child grid that are outside the changed region of the parent grid, adjusting the region of the child grid to obtain the changed child grid includes: when there are coordinate points in the child grid that are outside the changed region of the parent grid, reassigning the coordinate points in the child grid that are outside the changed region of the parent grid to obtain the changed child grid.
[0083] In some embodiments, child grids are automatically planned to ensure they always remain within the parent grid's area. In other embodiments, a listener event is added to the parent grid. When the parent grid's coordinates change, the changed coordinates are compared with those of the child grid. If the child grid's coordinates exceed those of the parent grid, the child grid's coordinates are reassigned. This automatically adjusts the child grid to fit within the parent grid's area, improving grid partitioning efficiency.
[0084] In some embodiments, after comparing the region extent of the child grid with the changed region extent of the parent grid, if the child grid is still within the changed region extent of the parent grid, the region extent of the child grid remains unchanged.
[0085] In some embodiments, automatic adjustment of sub-mesh can be achieved through the following steps:
[0086] (1) A change in the region extent of the parent grid was detected;
[0087] (2) Obtain the coordinates of each point of the parent grid and the coordinates of each point of the child grid after the change and compare them;
[0088] (3) If the coordinates of the child grid exceed the changed parent grid, the coordinates of the child grid that exceeds the parent grid will be assigned new coordinate values so that the coordinates of the new child grid form a new child grid and the new child grid is located within the area of the changed parent grid.
[0089] (4) If none of the coordinate points of the child grid exceed the area of the changed parent grid, then retain the original coordinate points of the child grid, and retain the child grid formed by the coordinate points of these child grids.
[0090] In the above embodiments, a specific implementation method is provided for determining whether a child grid needs to be adjusted when the area of the parent grid changes: by comparing and calculating with each coordinate point of the child grid, it is determined whether the area of the child grid needs to be adjusted, thereby making a simple and convenient judgment and adjusting the grid.
[0091] In some embodiments, after displaying the first prompt message, the method may further include the following steps:
[0092] 1. In response to the first operation on the first grid, generate the automatically adjusted area of the first grid;
[0093] 2. Display the first grid according to the area range automatically adjusted by the first grid;
[0094] Among them, the area range of the first grid after automatic adjustment has removed the overlapping area compared to the area range indicated by the command.
[0095] In some embodiments, if there is an overlapping area between the first grid and other grids at the same level, the overlapping area is determined as the area of the other grid according to the first-come-first-served principle, and the overlapping area is automatically removed from the area range of the first grid indicated in the instruction, so as to obtain the area range of the first grid after automatic adjustment, thereby avoiding the overlap of the same grid.
[0096] In some embodiments, such as Figure 2 As shown, the data on the left is displayed within the polygon component of the electronic map. The displayed organizational tree and the grid area displayed on the electronic map are determined based on the permissions of the currently logged-in user. In some embodiments, functions such as location retrieval, map grid area editing, and storage can be added.
[0097] In some embodiments, such as Figure 3 As shown, the method may also include the following steps:
[0098] 1. Import and configure amap-jsapi-loader;
[0099] 2. Load the plugin and set the map parameters;
[0100] 3. Determine if a grid map has been added. If yes, proceed to step 4; otherwise, proceed to step 6.
[0101] 4. Display the electronic fence;
[0102] 5. The page will locate the current city;
[0103] 6. Search for and locate the city;
[0104] 7. Create and display a grid map;
[0105] 8. Add text markers;
[0106] 9. Encapsulate methods for determining network overlap, etc.
[0107] 10. The user clicks "Save";
[0108] 11. Determine if the conditions for adding are met. If yes, proceed to step 12; otherwise, proceed to step 13.
[0109] 12. Link grid data with map coordinates;
[0110] 13. Pop-up notification;
[0111] 14. Allows editing of grid maps.
[0112] In some embodiments, the electronic map's API (Application Programming Interface) is introduced into the project and the map API key is configured. The necessary plugins, such as map address auto-completion plugin, address retrieval plugin, map polygon editing plugin, and map polygon drawing plugin, are loaded on the page, and the map center point and initial zoom level are set.
[0113] In some embodiments, clicking the "Add" button on the left-hand tree structure node allows users to add a grid name, grid responsibilities, and associate the added information with the organization. Clicking "Save" saves the data to the server. Users can also perform editing and deletion operations using other buttons.
[0114] In some embodiments, the current company's grid structure tree is returned based on the data interface. If grids have been added, the corresponding electronic fences will be displayed on the electronic map; if no grids have been added, the electronic map can add the corresponding grid information and grids through the Add Map button.
[0115] In some embodiments, when a user enters the page, the company and address of the currently logged-in user will be obtained based on the user's information. The map will automatically locate the current city based on the obtained address information. If the company and address are not obtained, the user can search for the city through the search box and display the searched information through address retrieval and address completion. After selection, the user will be located in the currently selected area.
[0116] In some embodiments, a map drawing polygon plugin is used to create a grid map. The style of the grid map can be set, such as border color, border width, fill color, and fill transparency. The created polygon object is added to the map by calling the map object's `add` method. After the grid is added to the map and displayed, users can intuitively see its position and shape. Users can also add text markers to the grid on the map based on the created grid name. A marker or overlay can be added at the center of the grid or a specific location, and its displayed text content can be set so that the target grid can be quickly located even when the electronic map is zoomed out to a certain level.
[0117] In some embodiments, a grid can also be added to the 3D (three-dimensional) view. In some embodiments, a custom map layer is created in the electronic map, and WebGL is used to draw 3D graphics in the custom map layer. The acquired 3D coordinate data is then fused with the grid data so that the grid can also be displayed in the 3D view.
[0118] In some embodiments, users can switch to a 3D satellite layer by clicking the satellite view function in the map toolbar, thereby optimizing the user experience.
[0119] In some embodiments, a grid can be drawn in a 3D satellite layer by plotting 3D graphics. The grid in the 3D view also includes parent and child grids. However, the coordinates that form these grids require the addition of Z-axis data. Furthermore, the Z-axis data needs to be considered during actual parent grid monitoring and automatic planning.
[0120] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0121] Please refer to Figure 4 This diagram illustrates a block diagram of a map-based grid display device according to an embodiment of this application. The device has the functionality to implement the map-based grid display method example described above; this functionality can be implemented in hardware or by hardware executing corresponding software. The device can be the terminal device described above, or it can be mounted on a terminal device. The device 400 may include:
[0122] The instruction receiving module 410 is used to receive the instruction to create the first grid on the electronic map;
[0123] The generation module 420 is used to generate the area range of the first grid on the electronic map and the display style of the first grid according to the instructions;
[0124] The information display module 430 is used to display a first prompt message when there is an overlapping area between the first grid and other grids at the same level. The first prompt message is used to prompt the user to adjust the area range of the first grid.
[0125] In some embodiments, the electronic map includes a parent grid and at least one child grid corresponding to the parent grid, wherein the child grid is located within the area of the parent grid.
[0126] In some embodiments, the apparatus further includes:
[0127] The region comparison module is used to compare the region range of the child grid with the changed region range of the parent grid when the region range of the parent grid changes.
[0128] The region adjustment module is used to adjust the region range of the child grid when there is a region outside the region range of the parent grid after the change, so as to obtain a changed child grid, wherein the changed child grid is located within the region range of the parent grid after the change.
[0129] In some embodiments, the region comparison module is used to compare the edge coordinates of the child grid with the changed edge coordinates of the parent grid when the edge coordinates of the parent grid change.
[0130] The region adjustment module is used to reassign the coordinates of the child grid located outside the changed region of the parent grid when the child grid has coordinates located outside the changed region of the parent grid, so as to obtain the changed child grid.
[0131] In some embodiments, after comparing the region of the child grid with the changed region of the parent grid, if the child grid is still within the changed region of the parent grid, the region of the child grid remains unchanged.
[0132] In some embodiments, the apparatus further includes:
[0133] A region generation module is used to generate an automatically adjusted region range of the first grid in response to a first operation on the first grid.
[0134] A grid display module is used to display the first grid according to the area range automatically adjusted by the first grid.
[0135] Specifically, the area range of the first grid after automatic adjustment is different from the area range indicated by the instruction, except that the overlapping area is removed.
[0136] In some embodiments, the apparatus further includes:
[0137] The range acquisition module is used to acquire the area range of the first grid and other grids at the same level.
[0138] The region comparison module is further configured to compare the region range of the first grid with the region range of other grids at the same level, and if there is a point in the first grid that is located within the region range of other grids at the same level, determine that there is an overlapping region between the first grid and other grids at the same level.
[0139] In summary, the technical solution provided in this application, by setting up overlap judgment logic between grids, avoids overlap between grids of the same level on the electronic map, thereby improving the accuracy of grid labeling on the electronic map.
[0140] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0141] Please refer to Figure 5 This diagram illustrates a structural block diagram of a terminal 500 provided in one embodiment of this application. The terminal 500 can be an electronic device such as a mobile phone, tablet computer, game console, e-book reader, multimedia playback device, wearable device, or PC. This terminal is used to implement the map-based grid display method provided in the above embodiments. The terminal can be... Figure 1 Terminal 10 in the implementation environment shown. Specifically:
[0142] Typically, terminal 500 includes a processor 501 and a memory 502.
[0143] Processor 501 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 501 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 501 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 501 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0144] The memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 502 are used to store a computer program and are configured to be executed by one or more processors to implement the map-based grid display method described above.
[0145] In some embodiments, the terminal 500 may also optionally include a peripheral device interface 503 and at least one peripheral device. The processor 501, memory 502, and peripheral device interface 503 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 503 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 504, a display screen 505, an audio circuit 506, and a power supply 407.
[0146] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on terminal 500, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0147] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored therein, which, when executed by a processor, implements the map-based grid display method described above.
[0148] In an exemplary embodiment, a computer program product is also provided, which is loaded and executed by a processor to implement the map-based grid display method described above.
[0149] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0150] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A map-based grid display determination method, characterized in that, The method includes: Receive the instruction to create the first grid on the electronic map; According to the instructions, the area range of the first grid on the electronic map and the display style of the first grid are generated; If there is an overlapping area between the first grid and other grids at the same level, a first prompt message is displayed to prompt the user to adjust the area range of the first grid.
2. The method according to claim 1, characterized in that, The electronic map includes a parent grid and at least one child grid corresponding to the parent grid, wherein the child grid is located within the area of the parent grid.
3. The method according to claim 2, characterized in that, The method further includes: If the area of the parent grid changes, the area of the child grid is compared with the changed area of the parent grid. If the child grid has a region outside the changed region of the parent grid, the region of the child grid is adjusted to obtain a changed child grid, which is located within the changed region of the parent grid.
4. The method according to claim 3, characterized in that, When the area of the parent grid changes, comparing the area of the child grid with the changed area of the parent grid includes: If the edge coordinates of the parent mesh change, the edge coordinates of the child mesh are compared with the changed edge coordinates of the parent mesh. When the child grid contains a region outside the changed region of the parent grid, adjusting the region of the child grid to obtain the changed child grid includes: If there are coordinate points in the child grid that are outside the area of the parent grid after the change, the coordinate points of the child grid that are outside the area of the parent grid after the change are reassigned to obtain the changed child grid.
5. The method according to claim 2, characterized in that, After comparing the region of the child grid with the changed region of the parent grid, if the child grid is still within the changed region of the parent grid, the region of the child grid remains unchanged.
6. The method according to claim 1, characterized in that, The method further includes: Obtain the region extent of the first grid and other grids at the same level; The regions of the first grid are compared with the regions of other grids at the same level. If there is a point in the first grid that is located within the region of another grid at the same level, it is determined that there is an overlapping region between the first grid and other grids at the same level.
7. The method according to claim 1, characterized in that, After displaying the first prompt message, the following is also included: In response to a first operation on the first grid, an automatically adjusted region extent for the first grid is generated; Display the first grid according to the area range automatically adjusted by the first grid. Specifically, the area range of the first grid after automatic adjustment is different from the area range indicated by the instruction, except that the overlapping area is removed.
8. A map-based grid display device, characterized in that, The device includes: The instruction receiving module is used to receive instructions to create the first grid on the electronic map; The generation module is used to generate the area range of the first grid on the electronic map and the display style of the first grid according to the instructions; The information display module is used to display a first prompt message when there is an overlapping area between the first grid and other grids at the same level. The first prompt message is used to prompt the user to adjust the area range of the first grid.
9. A terminal device, characterized in that, The terminal device includes a processor and a memory, the memory storing a computer program, which is loaded and executed by the processor to implement the map-based grid display method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the map-based grid display method according to any one of claims 1 to 7.