An electronic map interaction method, terminal device, server and system
By determining the radiation area information in the terminal device and sending it to the server, and then returning and displaying the target element information, the problem of low interaction efficiency caused by click position errors is solved, and efficient and accurate electronic map interaction is achieved.
Patent Information
- Application Number
- CN202510962033.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-14
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2045-07-14
AI Technical Summary
In existing electronic map interaction methods, errors in latitude and longitude caused by user click location errors prevent the server from accurately querying element information, thus reducing the interaction efficiency of electronic maps.
By determining the radiation area information of the target pixel point in the terminal device 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 this information according to the layer level.
It improves the interactive efficiency of electronic maps, allowing users to obtain the required element information without correcting the click position, thus enhancing the accuracy and efficiency of the interaction.
Smart Images

Figure CN120469601B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of electronic map, and particularly relates to an interactive method of electronic map, a terminal device, a server and a system. BACKGROUND
[0002] In the existing interactive method of electronic map, a user usually clicks in the electronic map displayed by a terminal device, the terminal device determines the corresponding longitude and latitude according to the position clicked by the user, and then sends the longitude and latitude to a server, the server determines the element information corresponding to the longitude and latitude according to the longitude and latitude and sends the element information to the terminal device, and the terminal device displays the element information after receiving the element information.
[0003] However, in actual application, there may be errors between the position the user wants to click and the position actually clicked by the user, so that the longitude and latitude received by the server has errors, which leads to the server being unable to query the corresponding element information, and finally leads to the terminal device being unable to display the element information the user wants to obtain, and the user needs to constantly correct the position actually clicked to obtain the element information the user wants to obtain, thereby reducing the interactive efficiency of the electronic map. SUMMARY
[0004] Therefore, the embodiments of the present application provide an interactive method of electronic map, a terminal device, a server and a system to solve the technical problem of low interactive efficiency of the existing electronic map.
[0005] In a first aspect, the embodiments of the present application provide an interactive method of electronic map, applied to a terminal device, and the method comprises:
[0006] determining the radiation area information corresponding to the target pixel point according to the target pixel point clicked in the electronic map and the actual geographical distance corresponding to the width of the target pixel point;
[0007] 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;
[0008] 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.
[0009] Optionally, the displaying the target point element information, the target line element information and the target surface element information in the electronic map comprises: determining the display order of the target point element information, the target line element information and the target surface element information according to the respective levels of each layer in the electronic map.
[0010] 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.
[0011] Optionally, the target element information is any of the target point element information, the target line element information or the target surface element information; and the determining of the display order corresponding to each of the target point element information, the target line element information and the target surface element information according to the level corresponding to each of the layers in the electronic map comprises:
[0012] For each of the target element information, a target layer corresponding to the target element information in the layers is determined;
[0013] A target display order corresponding to the target element information is determined according to the level of the target layer; and the higher the level is, the earlier the target display order is.
[0014] Optionally, before the determining of the radiation area information corresponding to the target pixel point according to the actual geographic distance corresponding to the target pixel point and the width of the target pixel point, the method further comprises:
[0015] A first screen coordinate of a center pixel point of the electronic map in the terminal device is obtained, a first Cartesian coordinate corresponding to the first screen coordinate in the electronic map is determined, and a first longitude and latitude coordinate corresponding to the center pixel point is determined according to the first Cartesian coordinate;
[0016] A second screen coordinate of an offset pixel point having a distance of one pixel from the center pixel point in the terminal device is obtained, a second Cartesian coordinate corresponding to the second screen coordinate in the electronic map is determined, and a second longitude and latitude coordinate corresponding to the offset pixel point is determined according to the second Cartesian coordinate;
[0017] The actual geographic distance is determined according to the first longitude and latitude coordinate and the second longitude and latitude coordinate.
[0018] In a second aspect, an embodiment of the present application provides an interaction method of an electronic map, applied to a server, and the method comprises:
[0019] Receiving, by the server, radiation area information corresponding to a target pixel point clicked in an electronic map sent by a terminal device; wherein the radiation area information is determined according to an actual geographic distance corresponding to the target pixel point and the width of the target pixel point;
[0020] According to the radiation area information, target point element information, target line element information and target surface element information are sent to the terminal device, so as 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.
[0021] Optionally, the sending of 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 comprises:
[0022] For each point element in the electronic map, a rectangular area centered at an icon center point of the point element is generated according to an icon width, an icon height and the icon center point of the point element, and it is determined whether the rectangular area intersects with a radiation area corresponding to the radiation area information. If the rectangular area intersects with the radiation area, information corresponding to the point element is determined as the target point element information and sent to the terminal device.
[0023] Optionally, the sending of 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 comprises:
[0024] For each line element in the electronic map, it is determined whether the line element intersects with the radiation area corresponding to the radiation area information according to line element information of the line element. If the line element intersects with the radiation area, information corresponding to the line element is determined as the target line element information and sent to the terminal device.
[0025] For each surface element in the electronic map, it is determined whether the surface element intersects with the radiation area corresponding to the radiation area information according to surface element information of the surface element. If the surface element intersects with the radiation area, information corresponding to the surface element is determined as the target surface element information and sent to the terminal device.
[0026] 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 capable of running on the processor. When the processor executes the computer program, the method for interacting with the electronic map according to any one of the first aspect is implemented.
[0027] 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 capable of running on the processor. When the processor executes the computer program, the method for interacting with the electronic map according to any one of the second aspect is implemented.
[0028] In a fifth aspect, the embodiments of the present application provide an electronic map interaction system, which comprises the terminal device of the third aspect and the server of the fourth aspect.
[0029] In a sixth aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the electronic map interaction method of any one of the first aspect and the second aspect are implemented.
[0030] In a seventh aspect, the embodiments of the present application provide a computer program product, which stores a computer program. When the computer program is executed by a processor, the steps of the electronic map interaction method of any one of the first aspect and the second aspect are implemented.
[0031] The electronic map interaction method, the terminal device, the server and the system provided by the embodiments of the present application have the following beneficial effects:
[0032] The electronic map interaction method provided by the embodiments of the present application is applied to a terminal device, which comprises the following steps: first, determining the radiation area information corresponding to the target pixel point according to the target pixel point clicked in the electronic map and 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 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, and displaying 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. Through the method, since the terminal device sends the radiation area information corresponding to the target pixel point clicked to the server to instruct the server to return the target point element information, the target line element information and the target surface element information according to the radiation area information, the terminal device can display the element information in the radiation area, and based on this, as long as the actual clicked position of the user is in 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 that the user wants to obtain without correcting the actual clicked position, and the interaction efficiency of the electronic map is improved. BRIEF DESCRIPTION OF DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0034] Figure 1 The implementation flowchart of the electronic map interaction method provided by the embodiments of the present application is shown in the following figure:
[0035] Figure 2 An implementation flowchart of an interaction method of an electronic map provided by another embodiment of the present application is provided.
[0036] Figure 3 A schematic diagram of a radiation region and each element provided by an embodiment of the present application is provided.
[0037] Figure 4 A structural schematic diagram of a terminal device provided by an embodiment of the present application is provided.
[0038] Figure 5 A structural schematic diagram of a server provided by an embodiment of the present application is provided.
[0039] Figure 6 A structural schematic diagram of a terminal device provided by another embodiment of the present application is provided.
[0040] Figure 7 A structural schematic diagram of a server provided by another embodiment of the present application is provided. DETAILED DESCRIPTION
[0041] 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, "a plurality of" means two or more than two, "at least one", "one or more" means one, two or more than two. The terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features limited by "first", "second" can explicitly or implicitly include one or more features.
[0042] In the present specification, the reference to "one embodiment" or "some embodiments" and the like means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in other some embodiments" and the like appearing in different places in the present specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "include", "contain", "have" and their variants mean "include but not limited to", unless otherwise specifically emphasized.
[0043] The execution subject of the electronic map interaction method provided in the embodiments of the present application can be a terminal device and a server. When the electronic map interaction method is applied to a terminal device, the execution subject of the electronic map interaction method is the terminal device. When the electronic map interaction method is applied to a server, the execution subject of the electronic map interaction method is the server. The terminal device can include, but is not limited to, a mobile phone, a tablet computer, a notebook computer, and a desktop computer.
[0044] The electronic map interaction method provided in the embodiments of the present application can be applied to various scenarios in which electronic map interaction is required. For example, when a user needs to obtain information about a point element (for example, a building) in an electronic map, or information about a line element (for example, a road), or information about a surface element (for example, a region), the user can execute each step of the electronic map interaction method provided in the embodiments of the present application through a terminal device and a server, so that the terminal device can display the corresponding point element information, or line element information, or surface element information in the electronic map.
[0045] Please refer to Figure 1 , Figure 1 The implementation flowchart of the electronic map interaction method provided in the embodiments of the present application can be applied to a terminal device. The electronic map interaction method can include S101-S103, which are described as follows.
[0046] In S101, according to a target pixel point clicked in an electronic map and an actual geographical distance corresponding to the width of the target pixel point, radiation region information corresponding to the target pixel point is determined.
[0047] In the embodiments of the present application, before S101, the terminal device can first determine the actual geographical distance corresponding to the width of each pixel point in the electronic map in the following manner:
[0048] First, the terminal device can first obtain a first screen coordinate of a center pixel point of an electronic map in a terminal device, determine a first Cartesian coordinate corresponding to the first screen coordinate in the electronic map, and determine a first latitude and longitude coordinate corresponding to the center pixel point according to the first Cartesian coordinate.
[0049] For example, the terminal device can first obtain a canvas height height and a canvas width width of the electronic map, and then determine (height / 2, width / 2) as the first screen coordinate of the center pixel point of the electronic map in the terminal device. In addition, the specific implementation method of the terminal device for determining the first Cartesian coordinate corresponding to the first screen coordinate in the electronic map, and the specific implementation method of the terminal device for determining the first latitude and longitude coordinate corresponding to the center pixel point according to the first Cartesian coordinate can be set according to actual requirements, which are not limited herein.
[0050] Then, the terminal device can obtain a second screen coordinate of the offset pixel point with a distance of one pixel from the center pixel point in the terminal device, determine a second Cartesian coordinate corresponding to the second screen coordinate in the electronic map, and determine a second longitude and latitude coordinate corresponding to the offset pixel point according to the second Cartesian coordinate.
[0051] For example, the terminal device can determine (height / 2, width / 2+1) as the second screen coordinate of the offset pixel point in the terminal device. In addition, the specific implementation method of the terminal device for determining the second Cartesian coordinate corresponding to the second screen coordinate in the electronic map, and the specific implementation method of the terminal device for determining the second longitude and latitude coordinate corresponding to the offset pixel point according to the second Cartesian coordinate can be set according to actual needs, which is not limited here.
[0052] Finally, the terminal device can determine the actual geographical distance according to the first longitude and latitude coordinate and the second longitude and latitude coordinate.
[0053] For example, the terminal device can use the distance determination tool in the geographic information toolkit in the electronic map, take the first longitude and latitude coordinate as the starting point, and take the second longitude and latitude coordinate as the ending point, so as to determine the geographical distance between the first longitude and latitude coordinate and the second longitude and latitude coordinate, and then determine the geographical distance between the first longitude and latitude coordinate and the second longitude and latitude coordinate as the actual geographical distance corresponding to the width of each pixel point in the electronic map.
[0054] It should be noted that the actual geographical distance corresponding to the width of each pixel point in the electronic map is the same, so the actual geographical distance corresponding to the width of the target pixel point is equal to the actual geographical distance corresponding to the width of each pixel point in the electronic map. After determining the actual geographical distance corresponding to the width of each pixel point in the electronic map, the terminal device can store the actual geographical distance corresponding to the width of each pixel point in the electronic map, so that after the terminal device detects the target pixel point clicked by the user, the stored actual geographical distance corresponding to the width of each pixel point in the electronic map can be determined as the actual geographical distance corresponding to the width of the target pixel point.
[0055] In a possible implementation, the terminal device can determine the radiation area information corresponding to the target pixel point in the electronic map clicked by the user and the actual geographical distance corresponding to the width of the target pixel point by the following method:
[0056] The terminal device can determine a third longitude and latitude corresponding to the target pixel point according to the target pixel point clicked in the electronic map, and then determine radiation region information corresponding to the target pixel point according to the third longitude and latitude corresponding to the target pixel point, an actual geographic 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, which is not limited here.
[0057] Optionally, the radiation region can be a circular region, the center of the circular region can be determined by the third longitude and latitude corresponding to the target pixel point, and the radius of the circular region can be a product of the actual geographic distance corresponding to the width of the target pixel point and the preset radiation coefficient.
[0058] In S102, the radiation region 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 region information.
[0059] In the embodiments of the present application, the radiation region information can be information for describing the radiation region, which can specifically include the third longitude and latitude corresponding to the target pixel point, the actual geographic distance corresponding to the width of the target pixel point, and the preset radiation coefficient. Based on this, the server can determine the radiation region according to the radiation region information.
[0060] After the server determines the radiation region, the server can send target point element information, target line element information, and target surface element information corresponding to the radiation region to the terminal device according to the radiation region. In actual applications, target point element information corresponding to any radiation region can exist or can not exist, and similarly, target line element information corresponding to any radiation region can exist or can not exist, and target surface element information corresponding to any radiation region can exist or can not exist.
[0061] The point element, the line element, and the surface element are all standard terms in the field of electronic maps. The point element represents a spatial entity with a specific position, which is usually represented by an icon in a map. Exemplarily, the point element can include but is not limited to buildings and the like; the line element represents a spatial entity with length and direction. Exemplarily, the line element can include but is not limited to roads, rivers, and boundary lines; and the surface element represents a continuous area with area and boundary. Exemplarily, the surface element can include but is not limited to administrative regions, lakes, and forests.
[0062] 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 in the electronic map.
[0063] In the embodiments of the present application, 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 following manner:
[0064] Firstly, the terminal device can determine the respective display orders of the target point element information, the target line element information and the target surface element information according to the respective levels of the respective layers in the electronic map.
[0065] Specifically, the terminal device can take any target point element information, any target line element information or any target surface element information as the target 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; the higher the level, the earlier the target display order.
[0066] In a possible implementation, the electronic map can include a vector layer, a tile layer and a model layer, wherein the model layer has the highest level, and the level relationship between the vector layer and the tile layer can be determined by the level instruction input by the user and received by the terminal device, and if the terminal device does not receive the level instruction input by the user, the terminal device can determine the level relationship according to the respective adding orders of the vector layer and the tile layer, wherein the layer corresponding to the later adding order has a higher level, and the layer corresponding to the earlier adding order has a lower level.
[0067] For example, the terminal device receives the target point element information A, the target line element information B and the 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, the layer corresponding to the target surface element information C is the model layer, and the level relationship between the vector layer and the tile layer is that the level of the vector layer is higher than that of the tile layer, based on which the terminal device determines the respective display orders of the target point element information A, the target line element information B and the target surface element information C as follows: the target surface element information C is displayed first, the target point element information A is displayed second, and the target line element information B is displayed last.
[0068] After determining the respective display orders 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.
[0069] Specifically, in the process of displaying the target point element information, the target line element information and the target surface element information in the display order, the terminal device can first determine the layer display state of the layer corresponding to the target point element information, the target line element information and the target surface element information, if the layer display state of the layer corresponding to any target element information is the non-display state, the terminal device does not display the any target element information, if the layer display state of the layer corresponding to any target element information is the display state, the terminal device displays the any target element information.
[0070] 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 displaying the target surface element information C, then displaying the target point element information A, and finally displaying the target line element information B, and the layer display state of the layer corresponding to the target point element information A is the display state, the layer display state of the layer corresponding to the target line element information B is the non-display state, and the layer display state of the layer corresponding to the target surface element information C is the display state, the terminal device can first display the target surface element information C, then display the target point element information A, and does not display the target line element information B.
[0071] As can be seen from the above, the terminal device can display the target element information corresponding to the layer with a higher level and the display state of the layer being the display state, by sorting the target element information, so that the target element information displayed by the terminal device is more likely to be the information that the user wants to obtain, and the interactive accuracy of the electronic map is improved.
[0072] In a possible implementation, the terminal device can display the target point element information, the target line element information and the target surface element information through a pop-up window.
[0073] Specifically, the terminal device can first create a pop-up window including the target point element information, the target line element information and the target surface element information, and set the initial state of the pop-up window to the hidden state, when the state of the pop-up window is the hidden state, the terminal device does not display the pop-up window.
[0074] After the electronic map is clicked and the terminal device obtains the target pixel point clicked in the electronic map, the terminal device can obtain the third latitude and longitude corresponding to the target pixel point clicked, and determine the third screen coordinate currently corresponding to the third latitude and longitude, then the terminal device can modify the position of the pop-up window to the third screen coordinate, and set the state of the pop-up window to the display state, so that the pop-up window can be displayed at the target pixel point clicked.
[0075] If the terminal device detects the user inputted drag instruction and / or zoom instruction for the electronic map, the terminal device can re-determine the fourth screen coordinates corresponding to the third latitude and longitude according to the third latitude and longitude corresponding to the target pixel point, and then the terminal device can modify the position of the pop-up window to the fourth screen coordinates, so as to ensure the correctness of the pop-up window display position. In addition, after re-determining the fourth screen coordinates corresponding to the third latitude and longitude, if the terminal device determines that the fourth screen coordinates have exceeded the current field of view range of the electronic map, the terminal device can set the state of the pop-up window to a non-display state to hide the pop-up window.
[0076] It can be seen from the above that the electronic map interaction method provided by the embodiments of the present application is applied to a terminal device, which includes: first determining the radiation area information corresponding to the target pixel point in the electronic map and 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 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, and displaying 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. 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, the target line element information and the target surface element information according to the radiation area information, the terminal device can display the element information in the radiation area, and based on this, as long as the actual clicked position of the user is in 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 that the user wants to obtain without correcting the actual clicked position, and the interaction efficiency of the electronic map is improved.
[0077] Please refer to Figure 2 , Figure 2 The implementation flowchart of the electronic map interaction method provided by another embodiment of the present application, the electronic map interaction method provided by the embodiments of the present application can be applied to a server. The electronic map interaction method can include S201~S202, which are described in detail as follows:
[0078] In S201, the radiation area information corresponding to the target pixel point clicked in the electronic map sent by the terminal device is received.
[0079] In the embodiments of the present application, the server can receive the radiation area information corresponding to the target pixel point clicked in the electronic map sent by the terminal device. The radiation area information can be determined by the terminal device according to the actual geographical distance corresponding to the target pixel point and the width of the target pixel point.
[0080] In S202, 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, so as 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.
[0081] In the embodiment of the present application, after receiving the radiation area information, the server can send the target point element information, the target line element information and the target surface element information to the terminal device in the following way:
[0082] In a possible implementation, the server can generate a rectangular area with the icon center point as the center for each point element in the electronic map according to the icon width, the icon height and the icon center point corresponding to the point element, judge whether the rectangular area intersects with the radiation area corresponding to the radiation area information, if intersecting, determine the information corresponding to the point element as the target point element information and send to the terminal device.
[0083] In actual application, 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 a certain icon is not a rectangle, the icon width, the icon height and the icon center point corresponding to the icon can be determined according to a preset rule. For example, if a certain icon is an equilateral triangle, the icon width corresponding to the icon can be the length of any side of the equilateral triangle, the icon height corresponding to the icon can be the height of the equilateral triangle, and the icon center point corresponding to the icon can be the intersection point of the three diagonal lines of the equilateral triangle.
[0084] In the implementation, the server can determine whether each line element in the electronic map intersects with the radiation area corresponding to the radiation area information according to the line element information of the line element, if intersecting, determine the information corresponding to the line element as the target line element information and send to the terminal device.
[0085] In the implementation, the server can determine whether each surface element in the electronic map intersects with the radiation area corresponding to the radiation area information according to the surface element information of the surface element, if intersecting, determine the information corresponding to the surface element as the target surface element information and send to the terminal device.
[0086] Please refer to Figure 3 , Figure 3 A schematic diagram of the radiation area and various elements is provided for the embodiment of the present application. As shown in Figure 3As shown, the rectangular region corresponding to the point element A intersects with the radiation region, the rectangular region corresponding to the point element D does not intersect with the radiation region, the line element B intersects with the radiation region, the line element E does not intersect with the radiation region, the surface element C intersects with the radiation region, and the surface element F does not intersect with the radiation region.
[0087] Based on Figure 3 , the server can determine the point element A as a target point element, determine the line element B as a target line element, and determine the surface element C as a target surface element. Therefore, the information of the point element A can be sent to the terminal device as target point element information, the information of the line element B can be sent to the terminal device as target line element information, and the information of the surface element C can be sent to the terminal device as target surface element information.
[0088] Based on the interactive method of the electronic map provided in the above embodiment, the terminal device and the server for implementing the above method embodiment are further provided in the embodiments of the present application.
[0089] Please refer to Figure 4 , Figure 4 The terminal device provided in the embodiments of the present application is shown in FIG. 4. As shown in FIG. 4, the terminal device 40 can include a determination unit 41, a first sending unit 42, and a display unit 43. Figure 4
[0090] The determination unit 41 is configured to determine the radiation region information corresponding to the target pixel point according to the target pixel point clicked in the electronic map and the actual geographical distance corresponding to the width of the target pixel point.
[0091] The first sending unit 42 is configured to send the radiation region information to the server, so as 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 region information.
[0092] The display unit 43 is configured 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.
[0093] Optionally, the display unit 43 is specifically configured to:
[0094] determine the display order of the target point element information, the target line element information, and the target surface element information according to the respective levels of the respective layers in the electronic map;
[0095] 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.
[0096] 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:
[0097] For each target element information, determine a target layer corresponding to the target element information in each layer;
[0098] According to the level at which the target layer is located, determine the target display order corresponding to the target element information; the higher the level, the earlier the target display order.
[0099] Optionally, the determination unit 41 is further configured to:
[0100] Obtain a first screen coordinate of a center pixel point of the electronic map in the terminal device, and determine a first Cartesian coordinate corresponding to the first screen coordinate in the electronic map, and according to the first Cartesian coordinate, determine a first latitude and longitude coordinate corresponding to the center pixel point;
[0101] Obtain a second screen coordinate of an offset pixel point having a distance of one pixel from the center pixel point in the terminal device, and determine a second Cartesian coordinate corresponding to the second screen coordinate in the electronic map, and according to the second Cartesian coordinate, determine a second latitude and longitude coordinate corresponding to the offset pixel point;
[0102] According to the first latitude and longitude coordinate and the second latitude and longitude coordinate, determine the actual geographic distance.
[0103] Please refer to Figure 5 , Figure 5 A server structure schematic diagram provided by the embodiments of the present application. As Figure 5 shown, the server 50 can include a receiving unit 51 and a second sending unit 52. Among them:
[0104] The receiving unit 51 is configured to receive the radiation area information corresponding to the target pixel point clicked in the electronic map sent by the terminal device; wherein the radiation area information is determined according to the actual geographic distance corresponding to the target pixel point and the width of the target pixel point.
[0105] The second sending unit 52 is configured 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, so as 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.
[0106] Optionally, the second sending unit 52 is specifically configured to:
[0107] For each point element in the electronic map, a rectangular region centered on the icon center point is generated according to the icon width, icon height and icon center point corresponding to the point element, it is judged whether the rectangular region intersects with the radiation region corresponding to the radiation region information, if intersecting, the information corresponding to the point element is determined as the target point element information and sent to the terminal device.
[0108] Optionally, the second sending unit 52 is specifically configured to:
[0109] For each line element in the electronic map, it is determined whether the line element intersects with the radiation region corresponding to the radiation region information according to the line element information of the line element, if intersecting, the information corresponding to the line element is determined as the target line element information and sent to the terminal device;
[0110] For each face element in the electronic map, it is determined whether the face element intersects with the radiation region corresponding to the radiation region information according to the face element information of the face element, if intersecting, the information corresponding to the face element is determined as the target face element information and sent to the terminal device.
[0111] Please refer to Figure 6 , Figure 6 A structural schematic diagram of a terminal device provided by another embodiment of the present application is provided. As shown in Figure 6 , the terminal device 6 provided by the embodiment can 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, the program corresponding to the interactive method of the electronic map. The processor 60 implements the steps in the above-mentioned interactive method applied to the electronic map embodiment when executing the computer program 62, for example Figure 1 S101-S103, the processor 60 implements the functions of each module / unit in the above-mentioned terminal device 40 corresponding embodiment when executing the computer program 62, for example Figure 4 the functions of the units 41-43 as shown.
[0112] Illustratively, the computer program 62 can be divided into one or more modules / units, one or more modules / units are stored in the memory 61 and executed by the processor 60 to complete the present application. One or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which is used to describe the execution process of the computer program 62 in the terminal device 6. For example, the computer program 62 can be divided into a determination unit 41, a first sending unit 42 and a display unit 43, and the specific functions of each unit are described in the corresponding embodiment, which will not be described here. Figure 4
[0113] Those skilled in the art can understand, Figure 6 This 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.
[0114] 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.
[0115] 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.
[0116] 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.
[0117] 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.
[0118] The memory 61 and the memory 71 can be internal storage units of the terminal device 6 and the server 7, such as hard disks or memories of the terminal device 6 and the server 7. The memory 61 and the memory 71 can also be external storage devices of the terminal device 6 and the server 7, such as plug-in hard disks, smart media cards (SMC), secure digital (SD) cards, flash cards, and the like equipped on the terminal device 6. Further, the memory 61 and the memory 71 can also include both internal storage units and external storage devices of the terminal device 6 and the server 7. The memory 61 and the memory 71 are used to store computer programs and other programs and data required by electronic devices. The memory 61 and the memory 71 can also be used to temporarily store data that has been output or is to be output.
[0119] It can be clearly understood by those skilled in the art that, for the convenience and brevity of description, only the division of the above functional units is exemplified, and in actual application, the above functions can be completed by different functional units according to needs, that is, the internal structure of the terminal device and the server is divided into different functional units to complete all or part of the functions described above. Each functional unit in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit are only for the convenience of mutual differentiation, and do not serve to limit the protection scope of the present application. The specific working process of the unit in the above system can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0120] The embodiment of the present application also provides an electronic map interaction system, which can include the terminal device 6 and the server 7.
[0121] The embodiment of the present application also provides a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above method embodiments can be implemented.
[0122] The embodiment of the present application provides a computer program product, which, when running on a terminal device, enables the terminal device to implement the steps in the above method embodiments.
[0123] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.
[0124] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software manner depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0125] The above-described embodiments are only used to illustrate the technical solutions of the present application, but not limit the present application; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalent replacements; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. An interaction method of an electronic map, applied to a terminal device, characterized in that, The method comprises: determining 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 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; displaying 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; before determining 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, the method further comprises: obtaining the first screen coordinates of the center pixel point of the electronic map in the terminal device, determining the first Cartesian coordinates corresponding to the first screen coordinates in the electronic map, and determining the first latitude and longitude coordinates corresponding to the center pixel point according to the first Cartesian coordinates; obtaining the second screen coordinates of the offset pixel point with a distance of one pixel from the center pixel point in the terminal device, determining the second Cartesian coordinates corresponding to the second screen coordinates in the electronic map, and determining the second latitude and longitude coordinates corresponding to the offset pixel point according to the second Cartesian coordinates; determining the actual geographical distance according to the first latitude and longitude coordinates and the second latitude and longitude coordinates; determining the radiation area information according to the third latitude and longitude coordinates corresponding to the target pixel point, the actual geographical distance and a preset radiation coefficient; the radiation area corresponding to the radiation area information is a circular area, the center of the circular area is determined by the third latitude and longitude coordinates, and the radius of the circular area is the product of the actual geographical distance and the preset radiation coefficient. displaying the target point element information, the target line element information and the target surface element information in the electronic map comprises:
2. The method of claim 1, wherein, determining the display order of the target point element information, the target line element information and the target surface element information according to the respective levels of each layer in the electronic map; displaying the target point element information, the target line element information and the target surface element information in the electronic map in the display order. Let the target element information be any target point element information, any target line element information or any target surface element information; determining the display order of the target point element information, the target line element information and the target surface element information according to the respective levels of each layer in the electronic map comprises:
3. The method of claim 2, wherein, for each target element information, determining the target layer corresponding to the target element information in the layers; According to a level where the target layer is located, a target display order corresponding to the target element information is determined; the higher the level is, the earlier the target display order is.
4. An interaction method of an electronic map, applied to a server, characterized in that, The method comprises: receiving radiation area information corresponding to a target pixel point clicked in an electronic map sent by a terminal device; wherein the radiation area information is determined according to an actual geographical distance corresponding to the target pixel point and a width of the target pixel point; according to the radiation area information, sending target point element information, target line element information and target surface element information to the terminal device, so as 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; the actual geographical distance is determined by the terminal device in the following way: obtaining a first screen coordinate of a center pixel point of the electronic map in the terminal device, and determining a first Cartesian coordinate corresponding to the first screen coordinate in the electronic map, and according to the first Cartesian coordinate, determining a first longitude and latitude coordinate corresponding to the center pixel point; obtaining a second screen coordinate of an offset pixel point with a distance of one pixel from the center pixel point in the terminal device, and determining a second Cartesian coordinate corresponding to the second screen coordinate in the electronic map, and according to the second Cartesian coordinate, determining a second longitude and latitude coordinate corresponding to the offset pixel point; determining the actual geographical distance according to the first longitude and latitude coordinate and the second longitude and latitude coordinate; the radiation area information is specifically determined by the terminal device in the following way: determining the radiation area information according to a third longitude and latitude coordinate corresponding to the target pixel point, the actual geographical distance and a preset radiation coefficient; the radiation area corresponding to the radiation area information is a circular area, the center of the circular area is determined by the third longitude and latitude coordinate, and the radius of the circular area is the product of the actual geographical distance and the preset radiation coefficient.
5. The method of claim 4, wherein, the method of sending target point element information, target line element information and target surface element information to the terminal device according to the radiation area information comprises: for each point element in the electronic map, generating a rectangular area with the icon center point as the center according to the icon width, icon height and icon center point corresponding to the point element, judging whether the rectangular area intersects with the radiation area corresponding to the radiation area information, if intersecting, determining the information corresponding to the point element as the target point element information and sending to the terminal device.
6. The method according to claim 4 or 5, characterized in that, the method of sending target point element information, target line element information and target surface element information to the terminal device according to the radiation area information comprises: for each line element in the electronic map, determining whether the line element intersects with the radiation area corresponding to the radiation area information according to the line element information of the line element, if intersecting, determining the information corresponding to the line element as the target line element information and sending to the terminal device; For each face element in the electronic map, according to face element information of the face element, it is determined whether the face element intersects with a radiation area corresponding to the radiation area information, and if so, information corresponding to the face element is determined as the target face element information and sent to the terminal device.
7. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the interactive method of the electronic map according to any one of claims 1 to 3 when executing the computer program.
8. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the interactive method of the electronic map according to any one of claims 4 to 6 when executing the computer program.
9. An interactive system of electronic maps, characterized by The terminal device according to claim 7 and the server according to claim 8 are included.
Citation Information
Patent Citations
Map display method and device, storage medium and electronic device
CN116841448A