An industrial map configuration method, system, device and storage medium
By generating industrial maps and tracking cursor events in the industrial management platform, the problem of unconfigurable industrial maps was solved, enabling visual configuration of equipment and optimizing user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD
- Filing Date
- 2023-02-23
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, the industrial maps displayed on industrial management platforms cannot respond to user configuration operations, making it difficult to meet customers' needs for configuring on-site layouts on industrial maps.
By acquiring map information, an industrial map is generated on the configuration page, and the cursor position is tracked in real time. Cursor events are listened to, and corresponding configuration operations are executed according to the cursor's position on the configuration page and the event type, including querying, editing, and configuring equipment components.
It enables the visual configuration of equipment on industrial maps, optimizes the user experience of equipment management, and meets customers' configuration needs for on-site layout.
Smart Images

Figure CN116069204B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software development technology, and specifically to a method, system, device, and storage medium for configuring industrial maps. Background Technology
[0002] Maps are an indispensable component of enterprise applications, widely used in resource management, resource allocation, and resource planning systems across various industries. For example, in a factory's energy management system, the layout of the energy system within the factory can be visualized as an industrial map on the energy management platform based on the collection and monitoring of on-site data. However, while the industrial map displayed on the energy management platform can provide users with intuitive information about factory energy management, it cannot meet the customer's need to configure equipment on the industrial map based on on-site conditions.
[0003] Therefore, it is necessary to design an industrial map configuration method, system, device, and storage medium to solve the above problems. Summary of the Invention
[0004] In view of the shortcomings of the prior art, the present invention provides a method, system, device, storage medium and vehicle for configuring industrial maps, which solves the technical problem that the industrial maps displayed on the industrial management platform cannot respond to user configuration operations and are difficult to meet customers' needs for configuring the site layout on the industrial map.
[0005] To achieve the above and other related objectives, the present invention provides a method for configuring an industrial map, comprising the following steps:
[0006] Obtain map information;
[0007] An industrial map is generated in the design area of the configuration page based on the map information.
[0008] The cursor position is tracked in real time and cursor events are listened to on the configuration page so that when a cursor event is triggered, the corresponding configuration event is executed based on the cursor's position on the configuration page and the type of the cursor event.
[0009] In one example of the present invention, generating an industrial map in the design area of the configuration page based on the map information includes:
[0010] Based on the scene information in the map information, a scene map is generated in the design area of the configuration page; based on the device information in the map information, multiple device elements are constructed in the scene map, and connection relationships are generated between the multiple device elements.
[0011] In one example of the present invention, the step of constructing multiple device elements in the scene map based on device information in the map information, and generating connection relationships among the multiple device elements, includes:
[0012] Based on the attribute and location information of each device in the device information, device elements with adapted icons are constructed at the corresponding locations on the scene map; based on the application information of each device in the device information, corresponding connection relationships are established between the multiple device elements in the scene map.
[0013] In one example of the present invention, the step of tracking the cursor position in real time and listening to cursor events on the configuration page, so as to execute the corresponding configuration event based on the cursor's position on the configuration page and the type of the cursor event when the cursor event is triggered, includes:
[0014] When the cursor points to a device entry in the device list area of the configuration page, the cursor event triggered by the cursor is listened to. If a long press event is detected, the device information corresponding to the device entry is displayed at the device entry pointed to by the cursor in the device list area. If a drag event is detected, the drag event is responded to, making the device entry an editable device element and moving it to a specified position on the industrial map with the cursor, thereby configuring the device element at the specified position on the industrial map.
[0015] In one example of the present invention, the step of tracking the cursor position in real time and listening to cursor events on the configuration page, so as to execute the corresponding configuration event based on the cursor's position on the configuration page and the type of the cursor event when the cursor event is triggered, includes:
[0016] When the cursor points to a device component in the industrial map, the cursor event triggered by the cursor is listened to. If a long press event is detected, the device information corresponding to the device component is displayed at the location where the cursor points to the device component in the industrial map. If a drag event is detected, the device component is made editable in response to the drag event and moves to the specified location on the industrial map with the cursor, thereby configuring the device component at the specified location on the industrial map.
[0017] In one example of the invention, in response to the drag event, the device entry becomes an editable device element and moves with the cursor to a specified location on the industrial map.
[0018] When the cursor is detected to be outside the design area of the configuration page, the device component that follows the cursor is displayed as the model diagram of the corresponding device; when the cursor is detected to be inside the design area of the configuration page, the device component that follows the cursor is displayed as the component diagram of the corresponding device.
[0019] In one example of the present invention, the implementation of configuring the device element at a designated location on the industrial map includes:
[0020] When a device element coincides with a configured device element at a designated location on the industrial map, it is confirmed whether the device element and the configured device element are a combined device. If so, the device element is configured independently at the designated location or combined with the configured device element, depending on the cursor rotation gesture. If not, the device element is prohibited from being configured at the designated location.
[0021] In one embodiment of the present invention, the present invention also provides an industrial map configuration system, the system comprising:
[0022] The information acquisition module is used to acquire map information;
[0023] The map loading module generates an industrial map in the design area of the configuration page based on the map information.
[0024] The event response module tracks the cursor position and listens for cursor events in real time on the configuration page, so as to execute the corresponding configuration event based on the cursor's position on the configuration page and the type of the cursor event when the cursor event is triggered.
[0025] In one embodiment of the present invention, a computer device is also provided, including a processor coupled to a memory storing program instructions, wherein the processor executes the program instructions stored in the memory to implement the method described in any of the preceding claims.
[0026] In one embodiment of the present invention, a computer-readable storage medium is also provided, including a program that, when run on a computer, causes the computer to perform the method described in any one of the above descriptions.
[0027] This invention discloses an industrial map configuration method, system, device, and storage medium. It enables complete mapping of the factory onto an industrial map based on the equipment layout within the factory. Simultaneously, it tracks the cursor position on the configuration page displaying the industrial map and responds to cursor events to query, edit, and configure equipment components on the industrial map within the configuration page. This industrial map configuration method fully utilizes cursor interaction gestures to respond to user cursor operations on the configuration page, thereby completing the equipment configuration on the industrial map and further optimizing the user experience of equipment management. Therefore, this invention effectively overcomes some practical problems in the prior art and thus has high utilization value and practical significance. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 This is a flowchart illustrating an industrial map configuration method according to an embodiment of the present invention;
[0030] Figure 2 This is a flowchart illustrating step S2 in one embodiment of the present invention;
[0031] Figure 3 This is a flowchart illustrating step S22 in one embodiment of the present invention;
[0032] Figure 4 This is a flowchart illustrating step S3 in one embodiment of the present invention;
[0033] Figure 5 This is a flowchart illustrating step S3 in another embodiment of the present invention;
[0034] Figure 6 This is a flowchart illustrating step S31 in one embodiment of the present invention;
[0035] Figure 7 This is a flowchart illustrating step S33 in one embodiment of the present invention;
[0036] Figure 8 This is a structural block diagram of an industrial map configuration system according to an embodiment of the present invention;
[0037] Figure 9 This is a schematic diagram of the structure of a computer device according to an embodiment of the present invention.
[0038] Component designation explanation
[0039] 10. Industrial map configuration system; 11. Information acquisition module; 12. Map loading module; 13. Event response module. Detailed Implementation
[0040] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and features can be combined with each other. It should also be understood that the terminology used in the embodiments of the present invention is for describing specific implementation schemes and not for limiting the scope of protection of the present invention. Test methods in the following embodiments that do not specify specific conditions are generally performed under conventional conditions or according to the conditions recommended by the respective manufacturers.
[0041] It should be noted that the terms such as "upper", "lower", "left", "right", "middle" and "one" used in this specification are only for clarity of description and are not intended to limit the scope of the invention. Changes or adjustments to their relative relationships, without substantially altering the technical content, should also be considered as part of the scope of the invention.
[0042] Please see Figures 1 to 7 This invention provides a method, system, device, storage medium, and vehicle for configuring industrial maps, which solves the technical problem in the prior art that industrial maps displayed on industrial management platforms cannot respond to user configuration operations and are difficult to meet customers' needs for configuring on-site layouts on industrial maps.
[0043] This invention provides a method for configuring an industrial map. This method is applied to a factory resource management system. It can collect data on the layout of equipment on-site in the factory and generate an industrial map in a configuration page on the industrial management platform. At the same time, it tracks the cursor position and listens for cursor events on the configuration page. In response to the cursor events, it executes corresponding configuration operations at different locations on the configuration page, thereby helping customers to perform equipment configuration operations on the industrial map in the configuration page.
[0044] Furthermore, the industrial map configuration method of the present invention can be specifically applied to a test system comprising terminal devices, a network, and a server. The network is a medium for providing a communication link directly between the terminal devices and the server, and can include various connection types, such as wired or wireless communication links or fiber optic cables. The operating system on the terminal devices can include a handheld device operating system (iOS system), an Android system, or other operating systems. The terminal devices connect to the server through the network to achieve interaction, thereby performing operations such as receiving or sending data. Specifically, it can be various electronic devices with a display screen and supporting web browsing, including but not limited to smartphones, tablets, portable computers, and desktop servers.
[0045] Please see Figure 1 , Figure 1 The diagram illustrates a flowchart of an industrial map configuration method according to an embodiment of the present invention, including the following steps:
[0046] S1. Obtain map information;
[0047] In step S1, the map information is obtained by collecting data on the layout of equipment at a specified factory site. The map information includes scene information and equipment information of the factory site. The scene information includes a plan view of the factory. The equipment information includes the location information, attribute information, and application information of each piece of equipment set up at the factory site. The attribute information of the equipment includes the equipment type, floor area, and safety range of the equipment. The application information of the equipment includes the connection relationship between the equipment and other equipment at the factory site.
[0048] Next, step S2 is executed: an industrial map is generated in the design area of the configuration page based on the map information.
[0049] In step S2, map information is loaded into the configuration page of the industrial management platform. Digital twins are used to visualize and map the map information into an industrial map in the design area of the configuration page, thereby highly restoring the factory floor plan in the design area to help users quickly understand the equipment layout in a specified factory through the industrial map.
[0050] In one embodiment of the present invention, in step S2, a scene map is constructed using JavaScript, and device components are modeled within the scene map, establishing relevant abstract base classes. Specifically, features such as map component initialization, mapping and transformation between map events and frame events, and coordinate systems are added to the AbstractMapComponent. Based on AbstractMapComponent, each map component is modeled, defining unified attributes, methods, and events for each map component, thus enabling adaptation to various maps. These map components include, but are not limited to, the following: map (AbstractMap), point (AbstractPoint), line (AbstractPolyline), polygon (AbstractPolygon), marker (AbstractMarker), map control (AbstractControl), message window (AbstractInfoWindow), etc., and features such as how these map components are added and displayed on the map are also provided. Finally, map overlays are managed in batches using map layers, providing control over overlay data sources, symbol display styles, and batch rendering features, thereby enabling the visualization and mapping of industrial maps onto the design area.
[0051] Specifically, such as Figure 2 As shown, in step S2, that is, generating an industrial map in the design area of the configuration page based on the map information, the following steps are included:
[0052] S21. Based on the scene information in the map information, generate a scene map in the design area of the configuration page; wherein, the scene map fully maps the factory floor plan thumbnail in the design area, and intuitively displays the open areas of configurable equipment and the obstacle areas of non-configurable equipment on the industrial map.
[0053] S22. Based on the device information in the map information, construct multiple device elements in the scene map and generate connection relationships between the multiple device elements.
[0054] Furthermore, such as Figure 3 As shown, in step S22, that is, based on the device information in the map information, multiple device elements are constructed in the scene map, and connection relationships are generated between the multiple device elements, including the following steps:
[0055] S221. Based on the attribute information and location information of each device in the device information, construct device elements with adapted icons at the corresponding locations on the scene map, and configure the device elements with responsive trigger attribute information and warning range in the scene map.
[0056] S222. Based on the application information of each device in the device information, establish corresponding connection relationships among the multiple device components in the scene map.
[0057] Next, step S3 is executed: the cursor position is tracked in real time and cursor events are listened to in the configuration page, so that when a cursor event is triggered, the corresponding configuration event is executed based on the cursor position in the configuration page and the type of cursor event.
[0058] like Figure 4 As shown, in one embodiment of the present invention, when the cursor is detected to be in the device list area of the configuration page, step S3, which involves tracking the cursor position in real time and listening to cursor events on the configuration page, and executing the corresponding configuration event based on the cursor's position on the configuration page and the type of the cursor event when the cursor event is triggered, includes the following steps:
[0059] S31. When the cursor points to a device entry in the device list area of the configuration page, listen for the cursor event triggered by the cursor.
[0060] S32. If a long press event is detected, the device information corresponding to the device entry is displayed at the device entry pointed to by the cursor in the device list area; wherein, the device information includes a text description of the device and three views of the actual device;
[0061] S33. If a cursor-triggered drag event is detected, the drag event is responded to so that the device entry becomes an editable device element and moves with the cursor to a specified position on the industrial map, thereby configuring the device element at the specified position on the industrial map.
[0062] In step S33 of this embodiment, when the device entry responds to the cursor drag event and is in different areas of the configuration page, it can be displayed with different appearances. Specifically, it includes: when the cursor is not detected to be in the design area of the configuration page, the device element that follows the cursor is displayed as the model diagram of the corresponding device; when the cursor is detected to be in the design area of the configuration page, the device element that follows the cursor is displayed as the component diagram of the corresponding device, wherein the component diagram is a planar graphic corresponding to the device type.
[0063] In addition, such as Figure 5 As shown, in another embodiment of the present invention, when the cursor is detected to be in the design area of the configuration page, step S3, which involves tracking the cursor position in real time and listening to cursor events on the configuration page, so as to execute the corresponding configuration event based on the cursor's position on the configuration page and the type of the cursor event when the cursor event is triggered, includes the following steps:
[0064] S31. When the cursor points to a device component in the industrial map, listen for the cursor event triggered by the cursor.
[0065] S32. If a long press event is detected, the corresponding equipment information of the equipment component is displayed at the location where the cursor points to the equipment component in the industrial map; wherein, the equipment information includes a textual description of the equipment and three views of the actual object;
[0066] S33. If a cursor-triggered drag event is detected, the device component is made editable in response to the drag event, and moves to a specified position on the industrial map following the cursor, thereby configuring the device component at the specified position on the industrial map.
[0067] Furthermore, such as Figure 6 As shown, in step S31 of the above embodiment, the step of listening to the cursor event triggered by the cursor includes the following steps:
[0068] S311, Listen for cursor press events, such as the "mousedown" event of the mouse in a computer system;
[0069] S312, Respond to the cursor press event and detect the event triggered by the next cursor move;
[0070] S313. When a cursor release event is detected, such as the "mouseup" event of the mouse in a computer system, the time interval between the cursor press event and the release event is obtained; and it is further determined whether the time interval is greater than a preset time threshold. If so, it is determined that the cursor has triggered a long press event.
[0071] S314. When a cursor movement event is detected (i.e., the cursor moves relative to the configuration page), such as the "mousemove" event of the mouse in the computer system, it is determined that the cursor has triggered a drag event.
[0072] And, as Figure 7 As shown, in step S33 of the above embodiment, the implementation of configuring the device element at the designated location on the industrial map includes:
[0073] S331. When the designated location on the industrial map is an open area where the equipment can be installed, the equipment is installed at the designated location on the industrial map.
[0074] S332. When the location on the industrial map coincides with a configured equipment element, it is confirmed whether the equipment element and the configured equipment element are a combined device.
[0075] S333. If so, then based on the cursor rotation gesture, select to configure the device element independently at the specified position or to combine it with the already configured device element.
[0076] Specifically, if a clockwise rotation gesture is detected at a specified position (i.e., the difference between the cursor's pop-up position and the center coordinate of the specified position is positive), the cursor is determined to be rotating clockwise. In this case, the device component is selected to be combined with the already configured device component at the specified position, for example, combining two energy storage devices into one electrical cabinet. If a counterclockwise rotation gesture is detected at a specified position (i.e., the difference between the cursor's pop-up position and the center coordinate of the specified position is negative), the cursor is determined to be rotating counterclockwise. In this case, the device component is selected to be configured independently relative to the already configured device component at the specified position.
[0077] S334. If not, then the device element is prohibited from being configured at the specified location.
[0078] Furthermore, in the above embodiments, in response to the dragging event of the cursor on the industrial map, when the configured device element on the industrial map detects the cursor approaching, that is, when the distance between the cursor and the device element is less than a preset warning threshold, the warning range of the corresponding device is displayed on the industrial map based on the attribute information of the device element, so as to provide risk warnings to the user's configuration.
[0079] Please see Figure 8 , Figure 8 The diagram shown is a structural block diagram of an industrial map configuration system 10 according to an embodiment of the present invention. The industrial map configuration system 10 includes an information acquisition module 11, a map loading module 12, and an event response module 13. Detailed descriptions of each functional module are as follows:
[0080] Information acquisition module 11 is used to acquire map information;
[0081] Map loading module 12 generates an industrial map in the design area of the configuration page based on the map information;
[0082] The event response module 13 tracks the cursor position and listens for cursor events in real time on the configuration page, so as to execute the corresponding configuration event based on the cursor position on the configuration page and the type of cursor event when the cursor event is triggered.
[0083] In one embodiment, the map loading module 12 is specifically used for:
[0084] Based on the scene information in the map information, generate a scene map in the design area of the configuration page;
[0085] Based on the device information in the map information, multiple device elements are constructed in the scene map, and connection relationships are generated between the multiple device elements.
[0086] In one embodiment, the map loading module 12 is specifically used for:
[0087] Based on the attribute and location information of each device in the device information, construct device elements with adapted icons at the corresponding locations on the scene map;
[0088] Based on the application information of each device in the device information, corresponding connection relationships are established between the multiple device components in the scene map.
[0089] In one embodiment, the event response module 13 is specifically used for:
[0090] When the cursor points to a device entry in the device list area of the configuration page, listen for the cursor event triggered by the cursor.
[0091] If a long press event is detected, the device information corresponding to the device entry will be displayed at the device entry pointed to by the cursor in the device list area;
[0092] If a cursor-triggered drag event is detected, the device entry is made editable as a device element in response to the drag event and moves to a specified location on the industrial map following the cursor, thereby configuring the device element at the specified location on the industrial map.
[0093] In one embodiment, the event response module 13 is specifically used for:
[0094] When the cursor points to a device component in the industrial map, listen for the cursor event triggered by the cursor.
[0095] If a long press event is detected, the device information corresponding to the device component will be displayed at the location where the cursor points to the device component in the industrial map;
[0096] If a cursor-triggered drag event is detected, the device component is made editable in response to the drag event, and moves to a specified location on the industrial map following the cursor, thereby configuring the device component at the specified location on the industrial map.
[0097] In one embodiment, the event response module 13 is specifically used for:
[0098] Listen for cursor press events, such as the "mousedown" event of the mouse in a computer system;
[0099] Respond to cursor press events and detect the next event triggered by the cursor;
[0100] When a cursor release event is detected, such as the "mouseup" event of the mouse in a computer system, the time interval between the cursor press event and the release event is obtained; and it is further determined whether the time interval is greater than a preset time threshold. If so, it is determined that the cursor has triggered a long press event.
[0101] When a cursor movement event is detected (i.e., the cursor moves relative to the configuration page), such as the "mousemove" event of the mouse in the computer system, it is determined that the cursor has triggered a drag event.
[0102] In one embodiment, the event response module 13 is specifically used for:
[0103] When a device element coincides with a configured device element at a specified location on the industrial map, it is confirmed whether the device element and the configured device element are a combined device.
[0104] If so, then based on the cursor rotation gesture, select to configure the device independently at the specified location or in combination with the already configured device components;
[0105] If not, the device component is prohibited from being configured at the specified location.
[0106] It should be noted that, in order to highlight the innovative aspects of this invention, this embodiment does not include modules that are not closely related to solving the technical problems proposed by this invention, but this does not mean that there are no other modules in this embodiment.
[0107] Furthermore, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here. In the embodiments provided by this invention, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for example, the division of modules is merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0108] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0109] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional units.
[0110] like Figure 9 As shown in the figure, this embodiment also proposes a computer device, which includes a processor and a memory, coupled together. The memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the above-mentioned task management method is implemented. The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. The memory can be an internal memory of the random access memory (RAM) type. The processor and memory can be integrated into one or more independent circuits or hardware, such as an application-specific integrated circuit (ASIC). It should be noted that when the computer program in the aforementioned memory is implemented as 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 technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention.
[0111] This embodiment also proposes a computer-readable storage medium storing computer instructions for instructing a computer to execute the task management method described above. The storage medium can be an electronic medium, magnetic medium, optical medium, electromagnetic medium, infrared medium, or a semiconductor system or propagation medium. The storage medium may also include semiconductor or solid-state memory, magnetic tape, removable computer disk, random access memory (RAM), read-only memory (ROM), hard disk, and optical disc. Optical discs may include optical disc-read-only memory (CD-ROM), optical disc-read / write (CD-RW), and DVD.
[0112] This invention discloses an industrial map configuration method, system, device, and storage medium. It enables complete mapping of the factory onto an industrial map based on the equipment layout within the factory. Simultaneously, it tracks the cursor position on the configuration page displaying the industrial map and responds to cursor events to query, edit, and configure equipment components on the industrial map within the configuration page. This industrial map configuration method fully utilizes cursor interaction gestures to respond to user cursor operations on the configuration page, thereby completing the equipment configuration on the industrial map and further optimizing the user experience of equipment management. Therefore, this invention effectively overcomes some practical problems in the prior art and thus has high utilization value and practical significance.
[0113] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A method for configuring an industrial map, characterized in that, include: Get map information; An industrial map is generated in the design area of the configuration page based on the map information. The cursor position is tracked in real time and cursor events are listened to in the configuration page so that when a cursor event is triggered, the corresponding configuration event is executed based on the cursor position in the configuration page and the type of the cursor event. The step of tracking the cursor position and listening to cursor events in real time on the configuration page, so as to execute the corresponding configuration event based on the cursor's position on the configuration page and the type of the cursor event when the cursor event is triggered, includes: When the cursor points to a device entry in the device list area of the configuration page, listen for the cursor event triggered by the cursor. If a long press event is detected, the device information corresponding to the device entry will be displayed at the device entry pointed to by the cursor in the device list area; If a cursor-triggered drag event is detected, the drag event is responded to so that the device entry becomes an editable device element and moves with the cursor to a specified location on the industrial map, thereby configuring the device element at the specified location on the industrial map. The implementation of configuring the device component at a designated location on the industrial map includes: When a device element coincides with a configured device element at a specified location on the industrial map, it is confirmed whether the device element and the configured device element are a combined device. If so, then based on the cursor rotation gesture, select to configure the device element independently at the specified position or to combine it with the already configured device element; If not, the device component is prohibited from being configured at the specified location.
2. The method for configuring an industrial map according to claim 1, characterized in that, The step of generating an industrial map in the design area of the configuration page based on the map information includes: Based on the scene information in the map information, generate a scene map in the design area of the configuration page; Based on the device information in the map information, multiple device elements are constructed in the scene map, and connection relationships are generated between the multiple device elements.
3. The method for configuring an industrial map according to claim 2, characterized in that, The step of constructing multiple device elements in the scene map based on the device information in the map information, and generating connection relationships between the multiple device elements, includes: Based on the attribute and location information of each device in the device information, construct device elements with adapted icons at the corresponding locations on the scene map; Based on the application information of each device in the device information, corresponding connection relationships are established between the multiple device components in the scene map.
4. The method for configuring an industrial map according to claim 1, characterized in that, The step of tracking the cursor position in real time and listening to cursor events on the configuration page, so as to execute the corresponding configuration event based on the cursor's position on the configuration page and the type of cursor event when the cursor event is triggered, includes: When the cursor points to a device component in the industrial map, listen for the cursor event triggered by the cursor. If a long press event is detected, the device information corresponding to the device component will be displayed at the location where the cursor points to the device component in the industrial map; If a cursor-triggered drag event is detected, the device component is made editable in response to the drag event, and moves to a specified location on the industrial map following the cursor, thereby configuring the device component at the specified location on the industrial map.
5. The method for configuring an industrial map according to claim 1, characterized in that, In response to the drag event, the device entry becomes an editable device element and moves with the cursor to a specified location on the industrial map. When the cursor is detected to be outside the design area of the configuration page, the device component that follows the cursor will be displayed as the model diagram of the corresponding device. When the cursor is detected to be in the design area of the configuration page, the device component that follows the cursor will be displayed as the component diagram of the corresponding device.
6. A configuration system for an industrial map, characterized in that, include: The information acquisition module is used to acquire map information; The map loading module generates an industrial map in the design area of the configuration page based on the map information. The event response module tracks the cursor position and listens for cursor events in real time on the configuration page, so as to execute the corresponding configuration event based on the cursor position on the configuration page and the type of cursor event when the cursor event is triggered; The event response module is used to listen for cursor events triggered by the cursor when the cursor points to a device entry in the device list area of the configuration page; if a long press event is detected, the device information of the corresponding device entry is displayed at the device entry pointed to by the cursor in the device list area; if a drag event is detected, the drag event is responded to to make the device entry an editable device element and move it to a specified position on the industrial map with the cursor, so as to configure the device element at the specified position on the industrial map. The event response module is used to confirm whether the device element and the already configured device element are a combined device when the device element overlaps at a specified location on the industrial map; if so, it selects to configure the device element independently at the specified location or to combine it with the already configured device element according to the cursor rotation gesture; if not, it prohibits the device element from being configured at the specified location.
7. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.