Electronic map interaction method, terminal device, server and system

By determining the radiation area of the target pixel point in the electronic map and obtaining the corresponding element information, the problem of low interaction efficiency caused by user click error is solved, and efficient and accurate element display is achieved.

CN120469601AActive Publication Date: 2025-08-12LAY-OUT PLANNING CONSULTANTS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510962033.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-14
Publication Date
2025-08-12
Estimated Expiration
2045-07-14

AI Technical Summary

Technical Problem

In the existing electronic map interaction method, the latitude and longitude error caused by the user clicking position error, and the element information cannot be accurately queried, which reduces the interaction efficiency.

Method used

By determining the radiation area information of the target pixel point being clicked in the electronic map and sending it to the server, the server returns the target point, line, and surface element information based on the radiation area information, and the terminal device displays these information at the level of the graph.

Benefits of technology

It improves the interaction efficiency of electronic maps, allowing users to obtain the required element information without correcting the click position, and enhances the accuracy and efficiency of interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469601A_ABST
    Figure CN120469601A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of electronic maps, and provides an electronic map interaction method, terminal equipment, a server and a system. The method is applied to the terminal equipment, and comprises the following steps: determining radiation area information corresponding to a target pixel point according to the clicked target pixel point in an electronic map and an actual geographic distance corresponding to the width of the target pixel point; sending the radiation area information to a server to instruct the server to send target point element information, target line element information and target surface element information to the terminal equipment according to the radiation area information; and after receiving the target point element information, the target line element information and the target surface element information, displaying the target point element information, the target line element information and the target surface element information in the electronic map. Through the method, under the condition that an error exists between the position where the user wants to click and the position where the user actually clicks, the terminal equipment can also display the element information which the user wants to obtain, and the interaction efficiency of the electronic map is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic maps, and in particular relates to an electronic map interaction method, terminal equipment, server, and system. Background Art

[0002] In the existing electronic map interaction method, the user usually clicks on the electronic map displayed on the terminal device. The terminal device determines the corresponding longitude and latitude based on the location clicked by the user, and then sends the longitude and latitude to the server. The server determines the element information corresponding to the longitude and latitude based on the longitude and latitude and sends it to the terminal device. The terminal device displays the element information after receiving it.

[0003] However, in actual applications, there may be an error between the location the user wants to click and the location the user actually clicks, resulting in an error in the longitude and latitude received by the server, which in turn causes the server to be unable to query the corresponding element information, and ultimately causes the terminal device to be unable to display the element information the user wants to obtain. The user needs to constantly correct the actual click location to obtain the element information they want, which reduces the interactive efficiency of the electronic map. Summary of the Invention

[0004] In view of this, embodiments of the present application provide an electronic map interaction method, terminal device, server, and system to solve the technical problem of low interaction efficiency of existing electronic maps.

[0005] In a first aspect, an embodiment of the present application provides an electronic map interaction method, applied to a terminal device, the method comprising: Determine the radiation area information corresponding to the target pixel point according to the actual geographical distance corresponding to the clicked target pixel point in the electronic map and the width of the target pixel point; Sending the radiation area information to a server to instruct the server to send target point element information, target line element information, and target surface element information to the terminal device according to the radiation area information; After receiving the target point element information, the target line element information, and the target surface element information, the target point element information, the target line element information, and the target surface element information are displayed on the electronic map.

[0006] Optionally, displaying the target point element information, the target line element information, and the target surface element information in the electronic map includes: determining a display order corresponding to the target point element information, the target line element information, and the target surface element information according to a level corresponding to each layer in the electronic map; In the electronic map, the target point element information, the target line element information, and the target surface element information are displayed in sequence according to the display order.

[0007] Optionally, the target element information is any of the target point element information, any of the target line element information, or any of the target surface element information; and determining, according to the levels corresponding to the respective layers in the electronic map, the display order of the target point element information, the target line element information, and the target surface element information, respectively, includes: For each target element information, determining a target layer corresponding to the target element information in each layer; The target display order corresponding to the target element information is determined according to the level of the target layer; wherein, the higher the level, the higher the target display order.

[0008] Optionally, before determining the radiation area information corresponding to the target pixel point clicked on the electronic map and the actual geographical distance corresponding to the width of the target pixel point, the method further includes: Obtaining first screen coordinates of a central pixel point of the electronic map in the terminal device, determining first Cartesian coordinates corresponding to the first screen coordinates in the electronic map, and determining first latitude and longitude coordinates corresponding to the central pixel point based on the first Cartesian coordinates; Obtaining second screen coordinates of an offset pixel point that is one pixel away from the center pixel point in the terminal device, determining second Cartesian coordinates corresponding to the second screen coordinates in the electronic map, and determining second latitude and longitude coordinates corresponding to the offset pixel point based on the second Cartesian coordinates; The actual geographical distance is determined according to the first longitude and latitude coordinates and the second longitude and latitude coordinates.

[0009] In a second aspect, an embodiment of the present application provides an electronic map interaction method, applied to a server, the method comprising: Receiving radiation area information corresponding to a clicked target pixel point in an electronic map sent by a terminal device; wherein the radiation area information is determined based on an actual geographical distance corresponding to the target pixel point and a width of the target pixel point; According to the radiation area information, the target point element information, the target line element information and the target surface element information are sent to the terminal device to instruct the terminal device to display the target point element information, the target line element information and the target surface element information in the electronic map after receiving the target point element information, the target line element information and the target surface element information.

[0010] Optionally, the sending target point element information, target line element information, and target surface element information to the terminal device according to the radiation area information includes: For each point element in the electronic map, a rectangular area centered on the icon center point is generated based on the icon width, icon height and icon center point corresponding to the point element, and it is determined whether the rectangular area intersects with the radiation area corresponding to the radiation area information. If so, the information corresponding to the point element is determined as the target point element information and sent to the terminal device.

[0011] Optionally, the sending target point element information, target line element information, and target surface element information to the terminal device according to the radiation area information includes: For each line element in the electronic map, determining, based on the line element information of the line element, whether the line element intersects with the radiation area corresponding to the radiation area information; if so, determining the information corresponding to the line element as the target line element information and sending it to the terminal device; For each surface element in the electronic map, determine whether the surface element intersects with the radiation area corresponding to the radiation area information based on the surface element information of the surface element. If so, determine the information corresponding to the surface element as the target surface element information and send it to the terminal device.

[0012] In a third aspect, an embodiment of the present application provides a terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic map interaction method as described in any one of the first aspects is implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic map interaction method as described in any one of the second aspects is implemented.

[0014] In a fifth aspect, an embodiment of the present application provides an interactive system for an electronic map, comprising the terminal device as described in the third aspect and the server as described in the fourth aspect.

[0015] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the electronic map interaction method as described in any one of the first and second aspects above.

[0016] In a seventh aspect, an embodiment of the present application provides a computer program product, which, when executed by a processor, implements the steps of the electronic map interaction method as described in any one of the first and second aspects above.

[0017] The electronic map interaction method, terminal device, server, and system provided in the embodiments of the present application have the following beneficial effects: The electronic map interaction method provided in an embodiment of the present application is applied to a terminal device, comprising: first, determining the radiation area information corresponding to the target pixel point clicked in the electronic map based on the actual geographical distance corresponding to the width of the target pixel point; then sending the radiation area information to a server to instruct the server to send target point element information, target line element information, and target surface element information to the terminal device based on the radiation area information; and after receiving the target point element information, the target line element information, and target surface element information, displaying the target point element information, target line element information, and target surface element information in the electronic map. Through this method, since the terminal device sends the radiation area information corresponding to the clicked target pixel point to the server to instruct the server to return the target point element information, target line element information, and target surface element information based on the radiation area information, the terminal device can display the element information in the radiation area. Based on this, as long as the location actually clicked by the user is within the radiation area, the terminal device can display the element information the user wants to obtain, so that the user can obtain the element information they want without having to correct the actual click location, thereby improving the interaction efficiency of the electronic map. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0019] Figure 1 A flowchart of the implementation of the electronic map interaction method provided in the embodiment of the present application; Figure 2 A flowchart of an implementation method of an electronic map interaction method provided in another embodiment of the present application; Figure 3 A schematic diagram of a radiation area and various elements provided in an embodiment of the present application; Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application; Figure 5 A schematic diagram of the structure of a server provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of a terminal device provided in another embodiment of the present application; Figure 7 A schematic diagram of the structure of a server provided in another embodiment of the present application. DETAILED DESCRIPTION

[0020] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two, and "at least one" and "one or more" refer to one, two or more. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the definition of "first" and "second" features can explicitly or implicitly include one or more of the features.

[0021] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0022] The electronic map interaction method provided in the embodiments of the present application can be executed by a terminal device or a server. When the electronic map interaction method is applied to a terminal device, the electronic map interaction method is executed by the terminal device. When the electronic map interaction method is applied to a server, the electronic map interaction method is executed by the server. The terminal device may include, but is not limited to, a mobile phone, a tablet computer, a laptop computer, and a desktop computer.

[0023] The electronic map interaction method provided in the embodiments of the present application can be applied to various scenarios requiring electronic map interaction. For example, when a user needs to obtain information about a point element (e.g., a building), a line element (e.g., a road), or a surface element (e.g., an area) on an electronic map, the user can execute the various steps of the electronic map interaction method provided in the embodiments of the present application through a terminal device and a server, thereby displaying the corresponding point element information, line element information, or surface element information on the electronic map through the terminal device.

[0024] See also Figure 1 , Figure 1 This is a flowchart of an implementation of the electronic map interaction method provided in an embodiment of the present application. The electronic map interaction method provided in an embodiment of the present application can be applied to a terminal device. The electronic map interaction method can include S101 to S103, which are described in detail as follows: In S101 , the radiation area information corresponding to the target pixel point is determined based on the actual geographical distance corresponding to the clicked target pixel point and the width of the target pixel point in the electronic map.

[0025] In the embodiment of the present application, before S101, the terminal device may first determine the actual geographical distance corresponding to the width of each pixel in the electronic map by the following method: First, the terminal device can obtain the first screen coordinates of the center pixel point of the electronic map in the terminal device, and determine the first Cartesian coordinates corresponding to the first screen coordinates in the electronic map, and determine the first latitude and longitude coordinates corresponding to the center pixel point based on the first Cartesian coordinates.

[0026] For example, the terminal device may first obtain the canvas height (height) and width (width) of the electronic map, and then determine (height / 2, width / 2) as the first screen coordinates of the center pixel of the electronic map on the terminal device. Furthermore, the specific implementation method for the terminal device to determine the first Cartesian coordinates corresponding to the first screen coordinates on the electronic map, and the specific implementation method for determining the first latitude and longitude coordinates corresponding to the center pixel based on the first Cartesian coordinates, can be configured based on actual needs and are not limited here.

[0027] Afterwards, the terminal device can obtain the second screen coordinates of the offset pixel point with a distance of one pixel from the center pixel point in the terminal device, and determine the second Cartesian coordinates corresponding to the second screen coordinates in the electronic map, and determine the second latitude and longitude coordinates corresponding to the offset pixel point based on the second Cartesian coordinates.

[0028] For example, the terminal device may determine (height / 2, width / 2+1) as the second screen coordinates of the offset pixel point in the terminal device. Furthermore, the specific implementation method for the terminal device to determine the second Cartesian coordinates corresponding to the second screen coordinates in the electronic map, and the specific implementation method for determining the second latitude and longitude coordinates corresponding to the offset pixel point based on the second Cartesian coordinates, can be configured based on actual needs and are not limited here.

[0029] Finally, the terminal device can determine the actual geographical distance based on the first longitude and latitude coordinates and the second longitude and latitude coordinates.

[0030] For example, the terminal device can use the distance determination tool in the geographic information toolkit in the electronic map to determine the geographic distance between the first longitude and latitude coordinates and the second longitude and latitude coordinates, with the first longitude and latitude coordinates as the starting point and the second longitude and latitude coordinates as the end point, and then determine the geographic distance between the first longitude and latitude coordinates and the second longitude and latitude coordinates as the actual geographic distance corresponding to the width of each pixel point in the electronic map.

[0031] It should be noted that the actual geographic distance corresponding to the width of each pixel in the electronic map is the same. Therefore, the actual geographic distance corresponding to the width of the target pixel is equal to the actual geographic distance corresponding to the width of each pixel in the electronic map. After determining the actual geographic distance corresponding to the width of each pixel in the electronic map, the terminal device can store the actual geographic distance corresponding to the width of each pixel in the electronic map. Then, after the terminal device detects the target pixel clicked by the user, the actual geographic distance corresponding to the stored width of each pixel in the electronic map can be determined as the actual geographic distance corresponding to the width of the target pixel.

[0032] In one possible implementation, the terminal device may determine the radiation area information corresponding to the target pixel point according to the actual geographical distance corresponding to the clicked target pixel point and the width of the target pixel point in the electronic map in the following manner: The terminal device can determine the third longitude and latitude corresponding to the target pixel point clicked on the electronic map, and then determine the radiation area information corresponding to the target pixel point based on the third longitude and latitude corresponding to the target pixel point, the actual geographical distance corresponding to the width of the target pixel point, and a preset radiation coefficient. The preset radiation coefficient can be set according to actual needs and is not limited here.

[0033] Optionally, the radiation area can be a circular area, the center of the circular area can be determined by the third longitude and latitude corresponding to the target pixel point, and the radius of the circular area can be the product of the actual geographical distance corresponding to the width of the target pixel point and the preset radiation coefficient.

[0034] In S102, the radiation area information is sent to the server to instruct the server to send target point element information, target line element information, and target surface element information to the terminal device according to the radiation area information.

[0035] In an embodiment of the present application, the radiation area information may be information used to describe the radiation area, which may specifically include the third longitude and latitude corresponding to the target pixel point, the actual geographical distance corresponding to the width of the target pixel point, and a preset radiation coefficient. Based on this, the server can determine the radiation area according to the radiation area information.

[0036] After the server determines the radiation area, it can send the target point element information, target line element information, and target surface element information corresponding to the radiation area to the terminal device based on the radiation area. In actual applications, the target point element information corresponding to any radiation area may or may not exist. Similarly, the target line element information corresponding to any radiation area may or may not exist, and the target surface element information corresponding to any radiation area may or may not exist.

[0037] Among them, point elements, line elements, and surface elements are all standard terms in the field of electronic maps. Point elements represent spatial entities with specific locations and are usually represented by icons in maps. For example, point elements may include but are not limited to buildings. Line elements represent spatial entities with length and direction. For example, line elements may include but are not limited to roads, rivers, and boundaries. Surface elements represent continuous areas with area and boundaries. For example, surface elements may include but are not limited to administrative regions, lakes, and forests.

[0038] In S103 , after receiving the target point element information, the target line element information, and the target surface element information, the target point element information, the target line element information, and the target surface element information are displayed on the electronic map.

[0039] In an embodiment of the present application, the terminal device may display target point element information, target line element information, and target surface element information on an electronic map in the following manner: First, the terminal device may determine the display order of the target point element information, the target line element information, and the target surface element information according to the levels of the layers in the electronic map.

[0040] Specifically, the terminal device can make the target element information any target point element information, any target line element information or any target surface element information, and then determine the target layer corresponding to the target element information in each layer for each target element information, and then determine the target display order corresponding to the target element information according to the level of the target layer; among which, the higher the level, the higher the target display order.

[0041] In one possible implementation, the electronic map may include a vector layer, a tile layer, and a model layer, wherein the model layer has the highest level. The hierarchical relationship between the vector layer and the tile layer can be determined by a hierarchical instruction input by the user received by the terminal device. If the terminal device does not receive a hierarchical instruction input by the user, the terminal device can determine the hierarchical relationship based on the order of addition of the vector layer and the tile layer, wherein the layer with a later addition order has a larger corresponding level, and the layer with an earlier addition order has a smaller corresponding level.

[0042] Exemplarily, if the terminal device receives target point element information A, target line element information B, and target surface element information C, the layer corresponding to the target point element information A is the vector layer, the layer corresponding to the target line element information B is the tile layer, and the layer corresponding to the target surface element information C is the model layer, and the hierarchical relationship between the vector layer and the tile layer is that the hierarchical level of the vector layer is higher than the hierarchical level of the tile layer. Based on this, the terminal device determines that the display order corresponding to the target point element information A, target line element information B, and target surface element information C is: first display the target surface element information C, then display the target point element information A, and finally display the target line element information B.

[0043] After determining the corresponding display order of the target point element information, the target line element information and the target surface element information, the terminal device can display the target point element information, the target line element information and the target surface element information in the electronic map in the display order.

[0044] Specifically, in the process of displaying the target point element information, target line element information and target surface element information in sequence according to the display order, the terminal device can first determine the layer display status of the layers corresponding to the target point element information, target line element information and target surface element information. If the layer display status of the layer corresponding to any target element information is a non-display state, the arbitrary target element information will not be displayed. If the layer display status of the layer corresponding to any target element information is a display state, the arbitrary target element information will be displayed.

[0045] For example, if the display order of the target point element information A, the target line element information B and the target surface element information C is: first display the target surface element information C, then display the target point element information A, and finally display the target line element information B, and the layer display status of the layer corresponding to the target point element information A is the display status, the layer display status of the layer corresponding to the target line element information B is the non-display status, and the layer display status of the layer corresponding to the target surface element information C is the display status, then the terminal device can display the target surface element information C first, then display the target point element information A, and not display the target line element information B.

[0046] From the above, it can be seen that the terminal device sorts the target element information so as to give priority to displaying the target element information of the corresponding layer with a higher level and the layer display status is displayed, so that the target element information displayed by the terminal device is more likely to be the information that the user wants to obtain, thereby improving the interactive accuracy of the electronic map.

[0047] In a possible implementation, the target point element information, target line element information, and target surface element information may be displayed on the terminal device through a pop-up window.

[0048] Specifically, the terminal device can first create a pop-up window including target point element information, target line element information and target surface element information, and set the initial state of the pop-up window to a hidden state. When the state of the pop-up window is a hidden state, the terminal device may not display the pop-up window.

[0049] After the electronic map is clicked and the terminal device obtains the clicked target pixel point in the electronic map, the terminal device can obtain the third longitude and latitude corresponding to the clicked target pixel point, and determine the third screen coordinates currently corresponding to the third longitude and latitude. After that, the terminal device can modify the position of the pop-up window to the third screen coordinates, and set the status of the pop-up window to the display status, so that the pop-up window can be displayed at the clicked target pixel point.

[0050] If the terminal device detects a user input of a drag command and / or zoom command for the electronic map, the terminal device can re-determine the fourth screen coordinates currently corresponding to the third longitude and latitude corresponding to the target pixel point based on the third longitude and latitude. The terminal device can then modify the position of the pop-up window to the fourth screen coordinates, thereby ensuring the correct display position of the pop-up window. In addition, after re-determining the fourth screen coordinates currently corresponding to the third longitude and latitude, if the terminal device determines that the fourth screen coordinates have exceeded the current field of view of the electronic map, the terminal device can set the status of the pop-up window to a non-display state to hide the pop-up window.

[0051] As can be seen from the above, the electronic map interaction method provided in the embodiment of the present application is applied to a terminal device, including: first, determining the radiation area information corresponding to the target pixel point clicked in the electronic map based on the actual geographical distance corresponding to the width of the target pixel point, and then sending the radiation area information to the server to instruct the server to send the target point element information, target line element information, and target surface element information to the terminal device based on the radiation area information. After receiving the target point element information, target line element information, and target surface element information, the target point element information, target line element information, and target surface element information are displayed in the electronic map. Through this method, since the terminal device sends the radiation area information corresponding to the clicked target pixel point to the server to instruct the server to return the target point element information, target line element information, and target surface element information based on the radiation area information, the terminal device can display the element information in the radiation area. Based on this, as long as the position actually clicked by the user is within the radiation area, the terminal device can display the element information that the user wants to obtain, so that the user can obtain the element information they want without having to correct the actual click position, thereby improving the interaction efficiency of the electronic map.

[0052] See also Figure 2 , Figure 2This is a flowchart of an implementation of an electronic map interaction method provided in another embodiment of the present application. The electronic map interaction method provided in this embodiment of the present application can be applied to a server. The electronic map interaction method can include S201 to S202, which are described in detail as follows: In S201, the radiation area information corresponding to the clicked target pixel point in the electronic map sent by the terminal device is received.

[0053] In an embodiment of the present application, the server may receive radiation area information corresponding to a clicked target pixel in an electronic map sent by a terminal device, wherein the radiation area information may be determined by the terminal device based on the actual geographical distance corresponding to the target pixel and the width of the target pixel.

[0054] In S202, target point element information, target line element information and target surface element information are sent to the terminal device according to the radiation area information to instruct the terminal device to display the target point element information, target line element information and target surface element information in the electronic map after receiving the target point element information, target line element information and target surface element information.

[0055] In the embodiment of the present application, after receiving the radiation area information, the server can send the target point element information, target line element information, and target surface element information to the terminal device in the following manner: In one possible implementation, the server can generate a rectangular area centered on the icon center point for each point element in the electronic map based on the icon width, icon height and icon center point corresponding to the point element, and determine whether the rectangular area intersects with the radiation area corresponding to the radiation area information. If so, the information corresponding to the point element is determined as the target point element information and sent to the terminal device.

[0056] In actual applications, each point element corresponds to an icon, and each icon has its corresponding icon width, icon height, and icon center point. It should be noted that if an icon is not rectangular, the icon width, icon height, and icon center point of the icon can be determined according to preset rules. For example, if an icon is an equilateral triangle, the icon width of the icon can be the length of any side of the equilateral triangle, the icon height of the icon can be the height of the equilateral triangle, and the icon center point of the icon can be the intersection of the three diagonals of the equilateral triangle.

[0057] In this implementation, the server can determine, for each line element in the electronic map, whether the line element intersects with the radiation area corresponding to the radiation area information based on the line element information of the line element. If so, the information corresponding to the line element is determined as the target line element information and sent to the terminal device.

[0058] In this implementation, the server can determine, for each surface element in the electronic map, whether the surface element intersects with the radiation area corresponding to the radiation area information based on the surface element information of the surface element. If so, the information corresponding to the surface element is determined as the target surface element information and sent to the terminal device.

[0059] See also Figure 3 , Figure 3 This is a schematic diagram of a radiation area and various elements provided in an embodiment of the present application. Figure 3 As shown, the rectangular area corresponding to the point element A intersects with the radiation area, the rectangular area corresponding to the point element D does not intersect with the radiation area, the line element B intersects with the radiation area, the line element E does not intersect with the radiation area, the surface element C intersects with the radiation area, and the surface element F does not intersect with the radiation area.

[0060] based on Figure 3 , the server can determine the point element A as the target point element, the line element B as the target line element, and the surface element C as the target surface element. Therefore, the information of the point element A can be sent to the terminal device as the target point element information, and the information of the line element B can be sent to the terminal device as the target line element information, and the information of the surface element C can be sent to the terminal device as the target surface element information.

[0061] Based on the electronic map interaction method provided in the above embodiment, the embodiment of the present application further provides a terminal device and a server for implementing the above method embodiment.

[0062] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 4 As shown, the terminal device 40 may include a determining unit 41, a first sending unit 42, and a display unit 43. The determining unit 41 is configured to determine the radiation area information corresponding to the target pixel point according to the actual geographical distance corresponding to the clicked target pixel point and the width of the target pixel point in the electronic map.

[0063] The first sending unit 42 is used to send the radiation area information to the server to instruct the server to send the target point element information, the target line element information and the target surface element information to the terminal device according to the radiation area information.

[0064] The display unit 43 is configured to display the target point element information, the target line element information, and the target surface element information on the electronic map after receiving the target point element information, the target line element information, and the target surface element information.

[0065] Optionally, the display unit 43 is specifically configured to: Determine the display order of target point element information, target line element information, and target surface element information according to the corresponding levels of each layer in the electronic map; In the electronic map, target point element information, target line element information, and target surface element information are displayed in sequence.

[0066] Optionally, the target element information is any target point element information, any target line element information, or any target surface element information, and the display unit 43 is specifically configured to: For each target element information, determine the target layer corresponding to the target element information in each layer; The target display order corresponding to the target element information is determined according to the level of the target layer; the higher the level, the higher the target display order.

[0067] Optionally, the determining unit 41 is further configured to: Obtaining first screen coordinates of a central pixel point of the electronic map on the terminal device, determining first Cartesian coordinates corresponding to the first screen coordinates in the electronic map, and determining first latitude and longitude coordinates corresponding to the central pixel point based on the first Cartesian coordinates; Obtaining second screen coordinates of an offset pixel point that is one pixel away from the center pixel point on the terminal device, determining second Cartesian coordinates corresponding to the second screen coordinates on the electronic map, and determining second latitude and longitude coordinates corresponding to the offset pixel point based on the second Cartesian coordinates; The actual geographical distance is determined according to the first longitude and latitude coordinates and the second longitude and latitude coordinates.

[0068] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. Figure 5 As shown, the server 50 may include a receiving unit 51 and a second sending unit 52. The receiving unit 51 is used to receive the radiation area information corresponding to the clicked target pixel point in the electronic map sent by the terminal device; wherein the radiation area information is determined according to the actual geographical distance corresponding to the target pixel point and the width of the target pixel point.

[0069] The second sending unit 52 is used to send target point element information, target line element information and target surface element information to the terminal device according to the radiation area information, so as to instruct the terminal device to display the target point element information, target line element information and target surface element information in the electronic map after receiving the target point element information, target line element information and target surface element information.

[0070] Optionally, the second sending unit 52 is specifically configured to: For each point element in the electronic map, a rectangular area centered on the icon center point is generated based on the icon width, icon height and icon center point corresponding to the point element, and it is determined whether the rectangular area intersects with the radiation area corresponding to the radiation area information. If so, the information corresponding to the point element is determined as the target point element information and sent to the terminal device.

[0071] Optionally, the second sending unit 52 is specifically configured to: For each line element in the electronic map, determine whether the line element intersects with the radiation area corresponding to the radiation area information based on the line element information of the line element. If so, determine the information corresponding to the line element as the target line element information and send it to the terminal device; For each surface element in the electronic map, determine whether the surface element intersects with the radiation area corresponding to the radiation area information based on the surface element information of the surface element. If so, determine the information corresponding to the surface element as the target surface element information and send it to the terminal device.

[0072] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of a terminal device provided in another embodiment of the present application. Figure 6 As shown, the terminal device 6 provided in this embodiment may include: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. For example, a program corresponding to the electronic map interaction method. When the processor 60 executes the computer program 62, the steps in the above-mentioned electronic map interaction method embodiment are implemented, such as Figure 1 In S101 to S103 shown, the processor 60 executes the computer program 62 to implement the functions of each module / unit in the embodiment corresponding to the terminal device 40, such as Figure 4 The functions of units 41 to 43 are shown.

[0073] Exemplarily, the computer program 62 may be divided into one or more modules / units, one or more modules / units being stored in the memory 61 and executed by the processor 60 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the terminal device 6. For example, the computer program 62 may be divided into a determination unit 41, a first sending unit 42, and a display unit 43. The specific functions of each unit may be described in detail in the following. Figure 4 The relevant descriptions in the corresponding embodiments are not repeated here.

[0074] Those skilled in the art will understand that Figure 6This is merely an example of the terminal device 6 and does not constitute a limitation on the terminal device 6 , which may include more or fewer components than shown in the figure, or a combination of certain components, or different components.

[0075] See also Figure 7 , Figure 7 This is a structural diagram of a server provided in another embodiment of the present application. Figure 7 As shown, the server 7 provided in this embodiment may include: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. For example, a program corresponding to the electronic map interaction method. When the processor 70 executes the computer program 72, the steps in the above-mentioned electronic map interaction method embodiment are implemented, such as Figure 2 In S201 to S202 shown, the processor 70 executes the computer program 72 to implement the functions of each module / unit in the embodiment corresponding to the above server 50, for example Figure 5 The functions of the units 51~52 shown.

[0076] For example, the computer program 72 may be divided into one or more modules / units, one or more modules / units being stored in the memory 71 and executed by the processor 70 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 72 in the server 7. For example, the computer program 72 may be divided into a receiving unit 51 and a second sending unit 52. The specific functions of each unit can be found in FIG. Figure 5 The relevant descriptions in the corresponding embodiments are not repeated here.

[0077] Those skilled in the art will understand that Figure 7 This is only an example of the server 7 and does not constitute a limitation on the server 7. The server 7 may include more or fewer components than shown in the figure, or combine certain components, or different components. Processors 60 and 70 may be central processing units (CPUs), other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0078] Memory 61 and memory 71 can be internal storage units of terminal device 6 and server 7, such as the hard disk or memory of terminal device 6 and server 7. Memory 61 and memory 71 can also be external storage devices of terminal device 6 and server 7, such as plug-in hard disks, smart media cards (SMCs), secure digital (SD) cards, or flash cards equipped on terminal device 6. Furthermore, memory 61 and memory 71 can include both internal storage units and external storage devices of terminal device 6 and server 7. Memory 61 and memory 71 are used to store computer programs and other programs and data required by electronic devices. Memory 61 and memory 71 can also be used to temporarily store data that has been output or is about to be output.

[0079] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units as needed, that is, the internal structure of the terminal device and the server can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0080] The embodiment of the present application further provides an electronic map interactive system, which may include a terminal device 6 and a server 7 .

[0081] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0082] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device implements the steps in the above-mentioned various method embodiments.

[0083] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0084] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0085] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. An electronic map interaction method, applied to a terminal device, characterized in that: The method comprises: Determine the radiation area information corresponding to the target pixel point according to the actual geographical distance corresponding to the clicked target pixel point in the electronic map and the width of the target pixel point; Sending the radiation area information to a server to instruct the server to send target point element information, target line element information, and target surface element information to the terminal device according to the radiation area information; After receiving the target point element information, the target line element information, and the target surface element information, the target point element information, the target line element information, and the target surface element information are displayed on the electronic map.

2. The method according to claim 1, characterized in that The displaying of the target point element information, the target line element information, and the target surface element information in the electronic map includes: Determining the display order of the target point element information, the target line element information, and the target surface element information according to the levels corresponding to the layers in the electronic map; In the electronic map, the target point element information, the target line element information, and the target surface element information are displayed in sequence according to the display order.

3. The method according to claim 2, characterized in that Let the target element information be any of the target point element information, any of the target line element information, or any of the target surface element information; and determine the display order of the target point element information, the target line element information, and the target surface element information according to the levels corresponding to the layers in the electronic map, including: For each target element information, determining a target layer corresponding to the target element information in each layer; The target display order corresponding to the target element information is determined according to the level of the target layer; wherein, the higher the level, the higher the target display order.

4. The method according to any one of claims 1 to 3, characterized in that Before determining the radiation area information corresponding to the target pixel point clicked on the electronic map and the actual geographical distance corresponding to the width of the target pixel point, the method further includes: Obtaining first screen coordinates of a central pixel point of the electronic map in the terminal device, determining first Cartesian coordinates corresponding to the first screen coordinates in the electronic map, and determining first latitude and longitude coordinates corresponding to the central pixel point based on the first Cartesian coordinates; Obtaining second screen coordinates of an offset pixel point that is one pixel away from the center pixel point in the terminal device, determining second Cartesian coordinates corresponding to the second screen coordinates in the electronic map, and determining second latitude and longitude coordinates corresponding to the offset pixel point based on the second Cartesian coordinates; The actual geographical distance is determined according to the first longitude and latitude coordinates and the second longitude and latitude coordinates.

5. An electronic map interaction method, applied to a server, characterized in that: The method comprises: Receiving radiation area information corresponding to a clicked target pixel point in an electronic map sent by a terminal device; wherein the radiation area information is determined based on an actual geographical distance corresponding to the target pixel point and a width of the target pixel point; According to the radiation area information, the target point element information, the target line element information and the target surface element information are sent to the terminal device to instruct the terminal device to display the target point element information, the target line element information and the target surface element information in the electronic map after receiving the target point element information, the target line element information and the target surface element information.

6. The method according to claim 5, characterized in that The sending target point element information, target line element information, and target surface element information to the terminal device according to the radiation area information includes: For each point element in the electronic map, a rectangular area centered on the icon center point is generated based on the icon width, icon height and icon center point corresponding to the point element, and it is determined whether the rectangular area intersects with the radiation area corresponding to the radiation area information. If so, the information corresponding to the point element is determined as the target point element information and sent to the terminal device.

7. The method according to claim 5 or 6, characterized in that The sending target point element information, target line element information, and target surface element information to the terminal device according to the radiation area information includes: For each line element in the electronic map, determining, based on the line element information of the line element, whether the line element intersects with the radiation area corresponding to the radiation area information; if so, determining the information corresponding to the line element as the target line element information and sending it to the terminal device; For each surface element in the electronic map, determine whether the surface element intersects with the radiation area corresponding to the radiation area information based on the surface element information of the surface element. If so, determine the information corresponding to the surface element as the target surface element information and send it to the terminal device.

8. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the electronic map interaction method according to any one of claims 1 to 4 is implemented.

9. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the electronic map interaction method according to any one of claims 4 to 6 is implemented.

10. An interactive system for electronic maps, characterized in that: It comprises the terminal device as claimed in claim 8 and the server as claimed in claim 9.

Citation Information

Patent Citations

  • Map display method and device, storage medium and electronic device

    CN116841448A

  • Map generation method and system, electronic equipment and storage medium

    CN119444923A

  • Map display method and device, client device and server

    CN119474426A

  • Human-machine interaction method, computer-readable medium, and electronic device

    WO2023040613A1