Map and table interaction method and device

By detecting the table click event and passing the identification code, the two-way linkage display of maps and tables is realized, which solves the problem of cumbersome interaction between maps and tables in the existing technology, and improves the interaction efficiency and data analysis capabilities.

CN119127016APending Publication Date: 2024-12-13BEIJING LONGZHI DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411186400.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the prior art, the linkage interaction between maps and tables is complicated and expensive, and users need to search or filter frequently, resulting in low data comparison and analysis efficiency.

Method used

By detecting click events on the table, obtaining the identification code of the target location, and passing it to the map through message events, retrieving the corresponding map area using the map's application program interface, realizing the two-way linkage display of the table and map, and supporting multiple map areas exhibit.

Benefits of technology

It reduces the operational cost of map and table interaction, improves interaction efficiency, enables users to understand the correlation between data and geographical location more intuitively, provides more comprehensive data analysis and spatial visualization capabilities, and simplifies the data comparison and analysis process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127016A_ABST
    Figure CN119127016A_ABST
Patent Text Reader

Abstract

The invention provides a map and table interaction method and device. The method comprises the steps that when a click event is detected on a table, a target position where the click event occurs on the table is displayed in a first mode; obtaining an identification code corresponding to the target position from the data source, and transmitting the identification code to a map in a mode of publishing a message event; a map area corresponding to the identification code is retrieved from the data source through an application program interface of a map, and the map comprises a plurality of map areas; and displaying the map area corresponding to the identification code in a second mode. By means of the technical means, the problems that in the prior art, linkage interaction of maps and tables is complex in operation and high in operation cost are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data interaction, and in particular to a method and device for interacting with maps and tables. Background Art

[0002] Linking table data with map data can help users perform spatial correlation analysis, enabling users to more efficiently understand the spatial relationship between data and make relevant decisions. Currently, the linkage between maps and tables is through search or filtering, and the results of associations are displayed on the map and table. This method relies on users to enter search terms. If users need to compare multiple sets of data in the map and table, they need to search or filter frequently, which is cumbersome and costly. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for interacting with maps and tables to solve the problem of complicated operation and high operation cost in the linkage interaction between maps and tables in the prior art.

[0004] In a first aspect of an embodiment of the present application, a method for interacting between a map and a table is provided, comprising: when a click event is detected on a table, displaying a target location where the click event occurs on the table in a first manner; obtaining an identification code corresponding to the target location from a data source, and passing the identification code to the map by publishing a message event; retrieving a map area corresponding to the identification code from the data source through an application programming interface of the map, wherein the map includes multiple map areas; and displaying the map area corresponding to the identification code in a second manner.

[0005] According to a second aspect of an embodiment of the present application, there is provided an interactive device for a map and a table, comprising: a detection module, configured to display a target location where the click event occurs on the table in a first manner when a click event is detected on the table; a transmission module, configured to obtain an identification code corresponding to the target location from a data source, and transmit the identification code to the map by publishing a message event; a retrieval module, configured to retrieve a map area corresponding to the identification code from the data source through an application program interface of the map, wherein the map contains multiple map areas; and a display module, configured to display the map area corresponding to the identification code in a second manner.

[0006] According to a third aspect of an embodiment of the present application, a method for interacting between a map and a table is provided, comprising: when a click event is detected on a map, displaying the map area on the map where the click event occurs in a second manner, wherein the map includes multiple map areas; retrieving an identification code corresponding to the map area where the click event occurs from a data source through an application program interface of the map; obtaining a target location on the table corresponding to the identification code from the data source, and passing the identification code to the table by publishing a message event; and displaying the target location in a first manner.

[0007] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0008] According to a fifth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0009] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when a click event is detected on a table, the target location where the click event occurs on the table is displayed in a first manner; an identification code corresponding to the target location is obtained from a data source, and the identification code is passed to a map by publishing a message event; a map area corresponding to the identification code is retrieved from a data source through the map's application program interface, wherein the map contains multiple map areas; and the map area corresponding to the identification code is displayed in a second manner. The above technical means can solve the problem of complicated and high cost of the linkage interaction between maps and tables in the prior art, thereby reducing the interaction cost between maps and tables and improving interaction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying any creative work.

[0011] Figure 1 It is a flowchart of a map and table interaction method provided in an embodiment of the present application;

[0012] Figure 2 It is a flowchart of another map and table interaction method provided in an embodiment of the present application;

[0013] Figure 3It is a structural schematic diagram of a map and table interaction device provided in an embodiment of the present application;

[0014] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0015] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0016] A map and table interaction method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0017] Figure 1 It is a flowchart of a map and table interaction method provided in an embodiment of the present application. Figure 1 The interactive method of the map and table can be executed by a computer or server, or software on the computer or server. Figure 1 As shown, the interactive methods of the map and table include:

[0018] S101, when a click event is detected on a table, displaying a target position where the click event occurs on the table in a first manner;

[0019] S102, obtaining an identification code corresponding to the target location from a data source, and passing the identification code to the map by publishing a message event;

[0020] S103, retrieving a map area corresponding to the identification code from a data source through an application program interface of the map, wherein the map includes a plurality of map areas;

[0021] S104: Display the map area corresponding to the identification code in a second manner.

[0022] The table registers its own click event, and the map subscribes to the table's message event. The data source stores the latitude and longitude information and identification code of each location on the table, as well as the latitude and longitude information of the map area corresponding to the location. The data source is constructed in the form of List. The List type is part of the generic collection class. It provides dynamic array functionality and can store any number of elements. The types of these elements are specified when creating the list.

[0023] When a click event is detected on the table, the target location where the click event occurred on the table is displayed in a set manner. The latitude and longitude information of the target location is determined, and the identification code corresponding to the target location is obtained from the data source based on the latitude and longitude information of the target location. A message event is generated based on the identification code, and the message event is published. When the map receives the message event, the identification code is obtained. The map area corresponding to the identification code is retrieved from the data source through the application program interface of the map, and the map area corresponding to the identification code is displayed in a set manner. The first method and the second method can be highlights or marks of different colors.

[0024] Through the above technical solutions, users can seamlessly switch and link between tables and maps. This interactive linkage method allows users to more intuitively understand the correlation and comparison between data and geographic locations, providing more comprehensive data analysis and spatial visualization capabilities. In order to compare the spatial relationships of different data dimensions at the same time, multiple data levels can be displayed in one view, providing richer data comparison and analysis capabilities.

[0025] The above technical solutions effectively shorten the operation path of finding data and spatial location relationships, making user operations more efficient and convenient. At the same time, through two-way highlighting and automatic positioning, information noise is effectively reduced, helping users better focus on the data subsets of interest, thereby improving the efficiency of user spatial relationship recognition and analysis.

[0026] According to the technical solution provided by the embodiment of the present application, when a click event is detected on a table, the target location where the click event occurs on the table is displayed in a first manner; an identification code corresponding to the target location is obtained from a data source, and the identification code is passed to a map by publishing a message event; a map area corresponding to the identification code is retrieved from a data source through the map's application program interface, wherein the map includes multiple map areas; and the map area corresponding to the identification code is displayed in a second manner. The above technical means can solve the problem of complicated operation and high operation cost in the linkage interaction between maps and tables in the prior art, thereby reducing the interaction cost between maps and tables and improving interaction efficiency.

[0027] In some embodiments: when a click event is detected on the table, the related position to be merged with the target position is determined; the target position and the related position are displayed in a first manner; the identification codes corresponding to the target position and the related position are obtained from the data source, and the identification codes corresponding to the target position and the related position are passed to the map by publishing a message event; the map areas corresponding to the identification codes corresponding to the target position and the related position are retrieved from the data source through an application program interface; and the map areas corresponding to the identification codes corresponding to the target position and the related position are displayed in a second manner.

[0028] When a click event is detected on a table, it is first necessary to determine whether the target position where the click event occurs on the table is in merge mode, that is, to determine whether there is a related position that is merged with the target position. If there is no related position, only the identification code corresponding to the target position is determined, the map area corresponding to the identification code corresponding to the target position is determined, and the map area corresponding to the identification code corresponding to the target position is displayed. If there is a related position, the identification codes corresponding to the target position and the related position are determined, the map areas corresponding to the identification codes corresponding to the target position and the related position are determined, and the map areas corresponding to the identification codes corresponding to the target position and the related position are displayed. The target position can be a row, a column, or a cell of a table. If there is a related position, it actually means that multiple rows, columns, or cells of the table are in merge mode, and multiple rows, columns, or cells of the table need to be displayed together.

[0029] Furthermore, when a click event is detected on the table, before displaying the target location where the click event occurred on the table in a first manner, the method also includes: obtaining the longitude and latitude information of each location on the table and generating an identification code for each location; obtaining the longitude and latitude information of each map area on the map; and creating a data source by taking the longitude and latitude information and identification code of each location and the longitude and latitude information of the map area corresponding to the location as a set of data.

[0030] Each location on the table can be a row, a column or a cell in the table. Each map area on the map is actually made into a map card, and multiple map cards form a map. The longitude and latitude information and identification code of each location and the longitude and latitude information of the map area corresponding to the location are a set of data. Each set of data is constructed in the form of List, and multiple sets of data constitute a data source.

[0031] In some embodiments: the following loop is executed: determine whether the i-th click event is detected within a preset time length; if the i-th click event is detected within the preset time length, obtain the i-th identification code corresponding to the target position where the i-th click event occurred on the table from the data source; pass the i-th identification code to the map by publishing the i-th message event; retrieve the i-th map area corresponding to the i-th identification code from the data source through the application program interface, and update i with the value of i plus 1; if the i-th click event is not detected within the preset time length, display the 1st map area to the i-1th map area in the second manner, and exit the loop.

[0032] The initial value of i is 1. The embodiment of the present application is actually detecting multiple consecutive click events. If the i-th click event is detected within the preset time after the i-1-th click event is detected, it is considered that the i-th click event and the previous i-1-th click event are consecutive click events, and the corresponding map areas of the consecutive click events are displayed in the same way. For example, if the time interval between the i-1-th click event and the i-th click event is less than or equal to the preset time, then continue to detect whether the time interval between the i-th click event and the i+1-th click event is less than or equal to the preset time. If the time interval between the i-th click event and the i+1-th click event is greater than the preset time, then the previous i-th click events are consecutive click events, and the first map area to the i-th map area are displayed in the second way. If the time interval between the i-1-th click event and the i-th click event is greater than the preset time, then the previous i-1-th click event is a consecutive click event, and the first map area to the i-1-th map area are displayed in the second way.

[0033] In some embodiments: when multiple consecutive click events are detected, the multiple consecutive click events are divided into multiple event groups according to the interval time between each two adjacent click events, wherein each event group contains one or more click events; the map area corresponding to each event group is determined; and the map area corresponding to each event group is displayed in different ways.

[0034] For example, the time intervals between the 1st click event, the 2nd click event, and the 3rd click event are less than or equal to the preset time length, the time interval between the 3rd click event and the 4th click event is greater than the preset time length, the time interval between the 4th click event and the 5th click event is less than or equal to the preset time length, the time interval between the 5th click event and the 6th click event is greater than the preset time length, and there is no subsequent click event after the 6th click event. Then the 1st click event, the 2nd click event, and the 3rd click event are taken as the first event group, the 4th click event and the 5th click event are taken as the second event group, and the 6th click event is taken as the third event group. The map areas corresponding to the first event group, the second event group, and the third event group are displayed in different ways. The display method of one or more click events in each event group is the same.

[0035] Determining the map area corresponding to each event group is to determine the map area corresponding to the click event in each event group. Specifically: obtaining an identification code corresponding to the location where the click event occurs from the data source, passing the identification code to the map by publishing a message event; and retrieving the map area corresponding to the identification code from the data source through the map's application program interface.

[0036] In some embodiments: when a click event is detected at the target location, it is determined whether the status of the target location is being displayed; if the status of the target location is being displayed, the target location and the map area corresponding to the identification code are no longer displayed; if the status of the target location is not being displayed, the target location is displayed in a first manner, and the map area corresponding to the identification code is displayed in a second manner.

[0037] If the status of the target location is being displayed, the map area corresponding to the target location and the identification code is canceled; if the status of the target location is not being displayed, the map area corresponding to the target location and the identification code is displayed in a set manner.

[0038] Figure 2 It is a flowchart of another map and table interaction method provided in an embodiment of the present application.

[0039] like Figure 2 As shown, the method includes:

[0040] S201, when a click event is detected on a map, displaying a map area where the click event occurs on the map in a second manner, wherein the map includes a plurality of map areas;

[0041] S202, retrieving an identification code corresponding to the map area where the click event occurs from a data source through a map application program interface;

[0042] S203, obtaining the target position on the table corresponding to the identification code from the data source, and passing the identification code to the table by publishing a message event;

[0043] S204: Display the target position in a first manner.

[0044] The map registers its own click event, and the table subscribes to the map's published message event. The data source stores the latitude and longitude information and identification code of each location on the table, as well as the latitude and longitude information of the map area corresponding to the location. When a click event is detected on the map, the map area where the click event occurred is displayed in a set manner. Determine the longitude and latitude information of the map area, and obtain the identification code corresponding to the map area from the data source based on the longitude and latitude information of the map area. Generate a message event based on the identification code, publish the message event, and the table receives the message event, and also obtains the identification code. Retrieve the target location corresponding to the identification code from the data source, and display the target location corresponding to the identification code in a set manner. The first method and the second method can be highlights or marks of different colors.

[0045] Through this application, when the user clicks on a location in the table, the clicked location is displayed, the map automatically locates to the map area related to the location, and displays the map area; when clicking another location on the table again, the map is relocated to the map area corresponding to the other location.

[0046] When the user clicks on a map area on the map, the table will automatically locate to a position related to the map area and display in the set manner; click another map area again, the table will relocate to a position related to another map area and display in the set manner.

[0047] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0048] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0049] Figure 3 Schematic diagram of a map and table interaction device provided in an embodiment of the present application. Figure 3 As shown, the interactive device of the map and table includes:

[0050] The detection module 301 is configured to display a target position where the click event occurs on the table in a first manner when a click event is detected on the table;

[0051] The transmission module 302 is configured to obtain an identification code corresponding to the target location from a data source, and transmit the identification code to the map by publishing a message event;

[0052] A retrieval module 303 is configured to retrieve a map area corresponding to the identification code from a data source through an application program interface of the map, wherein the map includes multiple map areas;

[0053] The display module 304 is configured to display the map area corresponding to the identification code in a second manner.

[0054] The table registers its own click event, and the map subscribes to the table's message event. The data source stores the latitude and longitude information and identification code of each location on the table, as well as the latitude and longitude information of the map area corresponding to the location. The data source is constructed in the form of List. The List type is part of the generic collection class. It provides dynamic array functionality and can store any number of elements. The types of these elements are specified when creating the list.

[0055] When a click event is detected on the table, the target location where the click event occurred on the table is displayed in a set manner. The latitude and longitude information of the target location is determined, and the identification code corresponding to the target location is obtained from the data source based on the latitude and longitude information of the target location. A message event is generated based on the identification code, and the message event is published. When the map receives the message event, the identification code is obtained. The map area corresponding to the identification code is retrieved from the data source through the application program interface of the map, and the map area corresponding to the identification code is displayed in a set manner. The first method and the second method can be highlights or marks of different colors.

[0056] Through the above technical solutions, users can seamlessly switch and link between tables and maps. This interactive linkage method allows users to more intuitively understand the correlation and comparison between data and geographic locations, providing more comprehensive data analysis and spatial visualization capabilities. In order to compare the spatial relationships of different data dimensions at the same time, multiple data levels can be displayed in one view, providing richer data comparison and analysis capabilities.

[0057] The above technical solutions effectively shorten the operation path of finding data and spatial location relationships, making user operations more efficient and convenient. At the same time, through two-way highlighting and automatic positioning, information noise is effectively reduced, helping users better focus on the data subsets of interest, thereby improving the efficiency of user spatial relationship recognition and analysis.

[0058] According to the technical solution provided by the embodiment of the present application, when a click event is detected on a table, the target location where the click event occurs on the table is displayed in a first manner; an identification code corresponding to the target location is obtained from a data source, and the identification code is passed to a map by publishing a message event; a map area corresponding to the identification code is retrieved from a data source through the map's application program interface, wherein the map includes multiple map areas; and the map area corresponding to the identification code is displayed in a second manner. The above technical means can solve the problem of complicated operation and high operation cost in the linkage interaction between maps and tables in the prior art, thereby reducing the interaction cost between maps and tables and improving interaction efficiency.

[0059] In some embodiments, the display module 304 is also configured to determine the related positions to be merged with the target position when a click event is detected on the table; display the target position and the related positions in a first manner; obtain the identification codes corresponding to the target position and the related positions from the data source, and pass the identification codes corresponding to the target position and the related positions to the map by publishing a message event; retrieve the map areas corresponding to the identification codes corresponding to the target position and the related positions from the data source through an application program interface; and display the map areas corresponding to the identification codes corresponding to the target position and the related positions in a second manner.

[0060] When a click event is detected on a table, it is first necessary to determine whether the target position where the click event occurs on the table is in merge mode, that is, to determine whether there is a related position that is merged with the target position. If there is no related position, only the identification code corresponding to the target position is determined, the map area corresponding to the identification code corresponding to the target position is determined, and the map area corresponding to the identification code corresponding to the target position is displayed. If there is a related position, the identification codes corresponding to the target position and the related position are determined, the map areas corresponding to the identification codes corresponding to the target position and the related position are determined, and the map areas corresponding to the identification codes corresponding to the target position and the related position are displayed. The target position can be a row, a column, or a cell of a table. If there is a related position, it actually means that multiple rows, columns, or cells of the table are in merge mode, and multiple rows, columns, or cells of the table need to be displayed together.

[0061] In some embodiments, the transmission module 302 is also configured to obtain the longitude and latitude information of each location on the table and generate an identification code for each location; obtain the longitude and latitude information of each map area on the map; and use the longitude and latitude information and identification code of each location and the longitude and latitude information of the map area corresponding to the location as a set of data to create a data source.

[0062] Each location on the table can be a row, a column or a cell in the table. Each map area on the map is actually made into a map card, and multiple map cards form a map. The longitude and latitude information and identification code of each location and the longitude and latitude information of the map area corresponding to the location are a set of data. Each set of data is constructed in the form of List, and multiple sets of data constitute a data source.

[0063] In some embodiments, the display module 304 is also configured to execute the following loop: determine whether the i-th click event is detected within a preset time length; if the i-th click event is detected within the preset time length, obtain the i-th identification code corresponding to the target position where the i-th click event occurred on the table from the data source; pass the i-th identification code to the map by publishing the i-th message event; retrieve the i-th map area corresponding to the i-th identification code from the data source through the application program interface, and update i with the value of i plus 1; if the i-th click event is not detected within the preset time length, display the 1st map area to the i-1th map area in the second manner, and exit the loop.

[0064] The initial value of i is 1. The embodiment of the present application is actually detecting multiple consecutive click events. If the i-th click event is detected within the preset time after the i-1-th click event is detected, it is considered that the i-th click event and the previous i-1-th click event are consecutive click events, and the corresponding map areas of the consecutive click events are displayed in the same way. For example, if the time interval between the i-1-th click event and the i-th click event is less than or equal to the preset time, then continue to detect whether the time interval between the i-th click event and the i+1-th click event is less than or equal to the preset time. If the time interval between the i-th click event and the i+1-th click event is greater than the preset time, then the previous i-th click events are consecutive click events, and the first map area to the i-th map area are displayed in the second way. If the time interval between the i-1-th click event and the i-th click event is greater than the preset time, then the previous i-1-th click event is a consecutive click event, and the first map area to the i-1-th map area are displayed in the second way.

[0065] In some embodiments, the display module 304 is also configured to, when multiple consecutive click events are detected, divide the multiple consecutive click events into multiple event groups according to the interval time between each two adjacent click events, wherein each event group contains one or more click events; determine the map area corresponding to each event group; and display the map area corresponding to each event group in different ways.

[0066] For example, the time intervals between the 1st click event, the 2nd click event, and the 3rd click event are less than or equal to the preset time length, the time interval between the 3rd click event and the 4th click event is greater than the preset time length, the time interval between the 4th click event and the 5th click event is less than or equal to the preset time length, the time interval between the 5th click event and the 6th click event is greater than the preset time length, and there is no subsequent click event after the 6th click event. Then the 1st click event, the 2nd click event, and the 3rd click event are taken as the first event group, the 4th click event and the 5th click event are taken as the second event group, and the 6th click event is taken as the third event group. The map areas corresponding to the first event group, the second event group, and the third event group are displayed in different ways. The display method of one or more click events in each event group is the same.

[0067] Determining the map area corresponding to each event group is to determine the map area corresponding to the click event in each event group. Specifically: obtaining an identification code corresponding to the location where the click event occurs from the data source, passing the identification code to the map by publishing a message event; and retrieving the map area corresponding to the identification code from the data source through the map's application program interface.

[0068] In some embodiments, the display module 304 is also configured to determine whether the status of the target location is being displayed when a click event is detected at the target location; if the status of the target location is being displayed, the target location and the map area corresponding to the identification code are no longer displayed; if the status of the target location is not being displayed, the target location is displayed in a first manner, and the map area corresponding to the identification code is displayed in a second manner.

[0069] If the status of the target location is being displayed, the map area corresponding to the target location and the identification code is canceled; if the status of the target location is not being displayed, the map area corresponding to the target location and the identification code is displayed in a set manner.

[0070] The detection module 301 is further configured to, when a click event is detected on the map, display the map area where the click event occurs on the map in a second manner, wherein the map includes a plurality of map areas;

[0071] The transmission module 302 is further configured to retrieve an identification code corresponding to the map area where the click event occurs from the data source through the map application program interface;

[0072] The retrieval module 303 is further configured to obtain the target position on the table corresponding to the identification code from the data source, and pass the identification code to the table by publishing a message event;

[0073] The display module 304 is further configured to display the target location in a first manner.

[0074] The map registers its own click event, and the table subscribes to the map's published message event. The data source stores the latitude and longitude information and identification code of each location on the table, as well as the latitude and longitude information of the map area corresponding to the location. When a click event is detected on the map, the map area where the click event occurred is displayed in a set manner. Determine the longitude and latitude information of the map area, and obtain the identification code corresponding to the map area from the data source based on the longitude and latitude information of the map area. Generate a message event based on the identification code, publish the message event, and the table receives the message event, and also obtains the identification code. Retrieve the target location corresponding to the identification code from the data source, and display the target location corresponding to the identification code in a set manner. The first method and the second method can be highlights or marks of different colors.

[0075] Through this application, when the user clicks on a location in the table, the clicked location is displayed, the map automatically locates to the map area related to the location, and displays the map area; when clicking another location on the table again, the map is relocated to the map area corresponding to the other location.

[0076] When the user clicks on a map area on the map, the table will automatically locate to a position related to the map area and display in the set manner; click another map area again, the table will relocate to a position related to another map area and display in the set manner.

[0077] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0078] Figure 4 Schematic diagram of an electronic device 4 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0079] The electronic device 4 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 , and may include more or less components than those shown in the figure, or different components.

[0080] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0081] The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. The memory 402 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 402 is used to store computer programs and other programs and data required by the electronic device.

[0082] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, 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.

[0083] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

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

Claims

1. A method for interacting with maps and tables, It is characterized in that include: When a click event is detected on the table, a target position where the click event occurs on the table is displayed in a first manner; Obtaining an identification code corresponding to the target location from a data source, and transmitting the identification code to a map by publishing a message event; Retrieving a map area corresponding to the identification code from a data source through an application program interface of the map, wherein the map includes a plurality of map areas; The map area corresponding to the identification code is displayed in a second manner.

2. The method according to claim 1, further comprising: include: When the click event is detected on the table, determining a related position to be merged with the target position; displaying the target location and the related locations in the first manner; Acquire the identification codes corresponding to the target location and the related location from the data source, and transmit the identification codes corresponding to the target location and the related location to the map by publishing the message event; Retrieving from the data source through the application program interface the map areas corresponding to the identification codes corresponding to the target location and the related location respectively; The map areas corresponding to the identification codes corresponding to the target location and the related locations are displayed in the second manner.

3. The method according to claim 1, It is characterized in that When a click event is detected on the table, before displaying the target position where the click event occurs on the table in a first manner, the method further includes: Obtaining the latitude and longitude information of each location on the table, and generating an identification code for each location; Obtaining the latitude and longitude information of each map area on the map; The data source is created by taking the latitude and longitude information and identification code of each location and the latitude and longitude information of the map area corresponding to the location as a set of data.

4. The method according to claim 1, It is characterized in that The method further comprises: Execute the following loop: Determine whether the i-th click event is detected within a preset time period; If the i-th click event is detected within the preset time period, obtaining the i-th identification code corresponding to the target position where the i-th click event occurs on the table from the data source; The i-th identification code is passed to the map by publishing the i-th message event; Retrieving the i-th map area corresponding to the i-th identification code from the data source through the application program interface, and updating i with the value i plus 1; If the i-th click event is not detected within the preset time period, the first map area to the i-1-th map area are displayed in the second manner, and the loop is exited.

5. The method according to claim 1, It is characterized in that The method further comprises: When multiple consecutive click events are detected, the multiple consecutive click events are divided into multiple event groups according to the interval time between every two adjacent click events, wherein each event group contains one or more click events; Determine the map area corresponding to each event group; The map area corresponding to each event group is displayed in different ways.

6. The method according to claim 1, It is characterized in that The method further comprises: When the click event is detected at the target position, determining whether the state of the target position is being displayed; If the state of the target location is being displayed, the map area corresponding to the target location and the identification code is no longer displayed; If the status of the target location is not being displayed, the target location is displayed in the first manner, and the map area corresponding to the identification code is displayed in the second manner.

7. A method for interacting with maps and tables, It is characterized in that include: When a click event is detected on the map, displaying the map area where the click event occurs on the map in a second manner, wherein the map includes a plurality of map areas; Retrieving an identification code corresponding to the map area where the click event occurs from a data source through the application program interface of the map; Obtaining a target position on the table corresponding to the identification code from the data source, and passing the identification code to the table by publishing a message event; The target location is displayed in a first manner.

8. An interactive device for maps and tables, It is characterized in that include: a detection module, configured to, when a click event is detected on a table, display a target position where the click event occurs on the table in a first manner; A transmission module is configured to obtain an identification code corresponding to the target location from a data source, and transmit the identification code to the map by publishing a message event; A retrieval module is configured to retrieve the map area corresponding to the identification code from a data source through an application program interface of the map, wherein the map includes a plurality of map areas; The display module is configured to display the map area corresponding to the identification code in a second manner.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 or 7 are implemented.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 or 7 are implemented.