A GIS map interaction method and system

By building a visual component library of GIS map components and button components, the problem of code modification when the requirements of GIS map interactive applications change is solved, achieving efficient maintenance and improving maintenance efficiency.

CN121209993BActive Publication Date: 2026-03-13THINVENT DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-25
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In existing technologies, changes in the requirements of GIS map interactive applications necessitate code modifications, leading to high labor costs and low maintenance efficiency.

Method used

GIS map components and button components are built to form a visual component library. Basic attributes are instantiated and configured through a graphical design area, and layer click events and button click events are associated to form interactive logic, replacing the traditional code-based configuration method.

Benefits of technology

It reduces labor costs, improves the maintenance efficiency of GIS map interaction, and enables direct modification of component attributes and relationships on the graphical interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121209993B_ABST
    Figure CN121209993B_ABST
Patent Text Reader

Abstract

This invention provides a GIS map interaction method and system. The method includes: constructing a GIS map component including layer click events and a button component including button click events; instantiating the GIS map component and the button component; associating the layer click events of the instantiated GIS map component with a first action sequence to form a first interaction logic; associating the button click events of the instantiated button component with a second action sequence to form a second interaction logic; and completing the GIS map interaction based on the first and second interaction logics. When maintenance is required, the attributes of the GIS map component and the button component, as well as their association with the action sequence, can be directly modified on the graphical interface, reducing labor costs and improving maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a GIS map interaction method and system. Background Technology

[0002] In the current field of data visualization, building GIS map applications that can display administrative regions, support scrolling to view details, and implement complex interactions such as conditional drill-down and return typically requires extensive customization and is difficult to achieve through graphical operations. When application requirements change, developers must modify the code, resulting in high labor costs and low maintenance efficiency. Summary of the Invention

[0003] To address the shortcomings of existing technologies, the present invention aims to provide a GIS map interaction method and system, which solves the technical problem that existing technologies, which implement complex GIS map interactions through customized development, require code modification when application requirements change, resulting in high labor costs and low maintenance efficiency.

[0004] To achieve the above objectives, in a first aspect, embodiments of this application provide a GIS map interaction method, comprising the following steps:

[0005] Construct GIS map components and button components to form a visualization component library. The GIS map components include layer click events, and the button components include button click events.

[0006] Instantiate the GIS map component and the button component in the graphical design area to configure the first basic property of the GIS map component and the second basic property of the button component;

[0007] The layer click events of the instantiated GIS map component are associated with the first action sequence to form the first interaction logic;

[0008] The button click event of the instantiated button component is associated with the second action sequence to form the second interaction logic, and the GIS map interaction is completed based on the first interaction logic and the second interaction logic.

[0009] Furthermore, the first basic attribute includes basic map attributes and business surface layers, and the step of configuring the first basic attribute of the GIS map component includes:

[0010] Enter the administrative division code in the initial mask area to obtain the display range, enter the longitude and latitude coordinates in the display range to determine the center point, and set the zoom level for the display range to complete the basic map attribute configuration;

[0011] Associating the data source with the display area allows for color mapping of the display area based on the data source, thus completing the business plane layer configuration.

[0012] Furthermore, the data source is GDP data, and the step of color mapping the display range based on the data source specifically includes:

[0013] The GDP data is compared with a data threshold. If the GDP data is greater than the data threshold, the display area is assigned a first color. If the GDP data is less than the data threshold, the display area is assigned a second color.

[0014] Furthermore, the second basic attribute includes appearance attributes and display attributes, and the step of configuring the second basic attribute of the button component includes:

[0015] Set the button background color, button display text, text color, text size, and button border style to complete the appearance attribute configuration;

[0016] Set the button component to a hidden state to complete the configuration of the display attributes.

[0017] Furthermore, the first action sequence includes a drill-down administrative division mask action, a first layer loading action, and a button component display action, while the second action sequence includes a return to the administrative division mask action.

[0018] Furthermore, after the step of associating the layer click events of the instantiated GIS map component with the first action sequence to form the first interaction logic, the method further includes:

[0019] Configure an execution condition template for the first interaction logic. When the user fills in the execution parameters in the execution condition template, set an execution threshold for the first interaction logic based on the execution parameters and the first basic attribute.

[0020] Furthermore, the second action sequence also includes a second layer loading action.

[0021] Secondly, embodiments of this application provide a GIS map interaction system, applied to the GIS map interaction method described in the first aspect above, the system comprising:

[0022] A building module is used to build GIS map components and button components to form a visual component library. The GIS map components include layer click events, and the button components include button click events.

[0023] The module is configured to instantiate the GIS map component and the button component in the graphical design area, and to configure the first basic property of the GIS map component and the second basic property of the button component.

[0024] The first execution module is used to associate the layer click events of the instantiated GIS map component with the first action sequence to form the first interaction logic;

[0025] The second execution module is used to associate the button click event of the instantiated button component with the second action sequence to form the second interaction logic, and to complete the GIS map interaction based on the first interaction logic and the second interaction logic.

[0026] Thirdly, embodiments of this application provide a computer, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the GIS map interaction method as described in the first aspect above.

[0027] Fourthly, embodiments of this application provide a storage medium storing a computer program thereon, which, when executed by a processor, implements the GIS map interaction method as described in the first aspect above.

[0028] Compared with the prior art, the beneficial effects of the present invention are as follows: by constructing the GIS map component and the button component, general functions are encapsulated into prefabricated modules. By configuring the first basic attribute and the second basic attribute of the GIS map component and the button component, the traditional code-based configuration method is replaced. The layer click event and the button click event are respectively associated with the first action sequence and the second action sequence, replacing the writing of complex condition judgments and function call logic. When maintenance is required, the attributes of the GIS map component and the button component and the association between them and the action sequence can be directly modified on the graphical interface, reducing labor costs and improving maintenance efficiency. Attached Figure Description

[0029] Figure 1 This is a flowchart of the GIS map interaction method in the first embodiment of the present invention;

[0030] Figure 2 This is a structural block diagram of the GIS map interaction system in the second embodiment of the present invention;

[0031] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation

[0032] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

[0033] It should be noted that when a component is said to be "fixed to" another component, it can be directly on the other component or there may be an intervening component. When a component is said to be "connected to" another component, it can be directly connected to the other component or there may be an intervening component. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0035] Please see Figure 1 The first embodiment of the present invention provides a GIS map interaction method, which includes the following steps:

[0036] S10: Construct GIS map components and button components to form a visualization component library. The GIS map components include layer click events, and the button components include button click events.

[0037] By constructing the GIS map component and the button component, graphical configuration data can be achieved, enabling visualization of application scenarios. By setting the layer click event and the button click event, it can be clearly defined that when the GIS map component and the button component are clicked, corresponding actions must be triggered to complete the map interaction.

[0038] S20: Instantiate the GIS map component and the button component in the graphical design area to configure the first basic property of the GIS map component and the second basic property of the button component;

[0039] In this embodiment, the first basic attribute includes map basic attributes and business surface layers, and the second basic attribute includes appearance attributes and display attributes. The first basic attribute and the second basic attribute are the basic parameters of the GIS map component and the button component, respectively. Understandably, the GIS map component and the button component are typically instantiated in the graphical design area of ​​a web application interface through a component library panel or toolbox.

[0040] Specifically, step S20 includes:

[0041] S210: Input the administrative division code in the initial mask area to obtain the display range, input the longitude and latitude coordinates in the display range to determine the center point, and set the zoom level for the display range to complete the basic map attribute configuration;

[0042] Select the GIS map component from the component library, move it to the main design canvas area, and then obtain the initial mask area in its properties panel. By setting the longitude coordinates, the latitude coordinates, and the zoom level, you can ensure that the display area is always centered.

[0043] S220: Associate the data source with the display area to perform color mapping on the display area according to the data source, so as to complete the business plane layer configuration;

[0044] In this embodiment, the data source is GDP data. In some embodiments, the data source is population data. Understandably, different databases can be accessed to obtain different types of data sources depending on different needs. Further, the GDP data is compared with a data threshold. If the GDP data is greater than the data threshold, a first color is assigned to the display area; if the GDP data is less than the data threshold, a second color is assigned to the display area. If the data threshold is 50,000, when the GDP data is greater than 50,000, the display area is filled with dark blue; when the GDP data is less than 50,000, the display area is filled with light blue.

[0045] S230: Set the button background color, button display text, text color, text size, and button border style to complete the appearance attribute configuration;

[0046] S240: Set the button component to a hidden state to complete the configuration of the display attributes;

[0047] Understandably, once the GIS map component is initially loaded, the button component is invisible, and whether it is displayed is controlled according to the subsequent linkage rules.

[0048] S30: Associate the layer click events of the instantiated GIS map component with the first action sequence to form the first interaction logic;

[0049] The first action sequence includes drilling down the administrative division mask, loading the first layer, and displaying the button component.

[0050] Understandably, when a user triggers a layer click event on the GIS map component, the GIS map component automatically performs a map drill-down operation, displays the first layer after drill-down, and shows the button component. To improve user interaction efficiency, the method further includes:

[0051] S50: Configure an execution condition template for the first interaction logic. When the user fills in the execution parameters in the execution condition template, set an execution threshold for the first interaction logic based on the execution parameters and the first basic attribute.

[0052] By setting the execution condition template, users can customize whether or not to drill down on the map. Taking GDP data as the data source in the first basic attribute as an example, if the user sets the GDP drill-down threshold to 80,000 in the execution condition template, when the user triggers a layer click event of a certain GIS map component, the system will automatically compare the GDP drill-down threshold with the first basic attribute in the current GIS map component. If the GDP data in the first basic attribute of the current GIS map component is greater than 80,000, the first interaction logic will be executed to display the map in drill-down mode. If it is less than 80,000, the first interaction logic will be stopped.

[0053] S40: Associate the button click event of the instantiated button component with the second action sequence to form the second interaction logic, and complete the GIS map interaction based on the first interaction logic and the second interaction logic;

[0054] The second action sequence includes a return to the administrative division mask action. Understandably, after the map is drilled down, the button component is displayed. By triggering the button click event, a return operation can be performed, returning from the drilled-down layer to the display area. Preferably, the second action sequence also includes a second layer loading action, that is, after returning to the display area, the corresponding layer of the display area is loaded to avoid the layer remaining on the drilled-down layer or display errors.

[0055] By constructing the GIS map component and the button component, common functions are encapsulated into prefabricated modules. The configuration of the first and second basic attributes of the GIS map component and the button component replaces the traditional code-based configuration method. The layer click event and the button click event are respectively associated with the first action sequence and the second action sequence, replacing the writing of complex condition judgments and function call logic. When maintenance is required, the attributes of the GIS map component and the button component and their association with the action sequence can be modified directly on the graphical interface, reducing labor costs and improving maintenance efficiency.

[0056] Please see Figure 2 The second embodiment of the present invention provides a GIS map interaction system, which is applied to the GIS map interaction method described in the above embodiments, and will not be repeated hereafter. As used below, the terms "module," "unit," "subunit," etc., can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0057] The system includes:

[0058] Module 10 is used to build GIS map components and button components to form a visual component library. The GIS map components include layer click events, and the button components include button click events.

[0059] Module 20 is configured to instantiate the GIS map component and the button component in the graphical design area, so as to configure the first basic property of the GIS map component and the second basic property of the button component.

[0060] The assignment module 20 includes:

[0061] The first unit is used to input administrative division codes in the initial mask area to obtain the display range, input longitude and latitude coordinates in the display range to determine the center point, and set the zoom level for the display range to complete the basic map attribute configuration;

[0062] The second unit is used to associate the data source with the display range, so as to perform color mapping on the display range according to the data source, so as to complete the configuration of the business plane layer;

[0063] The second unit is specifically used to compare the GDP data with a data threshold. If the GDP data is greater than the data threshold, the display range is assigned a first color; if the GDP data is less than the data threshold, the display range is assigned a second color.

[0064] The third unit is used to set the button background color, button display text, text color, text size, and button border style to complete the appearance attribute configuration;

[0065] The fourth unit is used to set the button component to a hidden state in order to complete the configuration of the display attributes;

[0066] The first execution module 30 is used to associate the layer click events of the instantiated GIS map component with the first action sequence to form the first interaction logic;

[0067] Preferably, the system further includes:

[0068] The restriction module 40 is used to configure an execution condition template for the first interaction logic. When the user fills in the execution parameters in the execution condition template, the execution threshold is set for the first interaction logic based on the execution parameters and the first basic attribute.

[0069] The second execution module 50 is used to associate the button click event of the instantiated button component with the second action sequence to form the second interaction logic, and to complete the GIS map interaction based on the first interaction logic and the second interaction logic.

[0070] The present invention also provides a computer, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the GIS map interaction method as described in the above technical solutions.

[0071] The present invention also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the GIS map interaction method as described in the above technical solutions.

[0072] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0073] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.

Claims

1. A GIS map interaction method, characterized in that, Includes the following steps: Construct GIS map components and button components to form a visualization component library. The GIS map components include layer click events, and the button components include button click events. Instantiate the GIS map component and the button component in the graphical design area to configure the first basic attribute of the GIS map component, which includes basic map attributes and business surface layers, and configure the second basic attribute of the button component. The steps for configuring the first basic attribute of the GIS map component include: Enter the administrative division code in the initial mask area to obtain the display range, enter the longitude and latitude coordinates in the display range to determine the center point, and set the zoom level for the display range to complete the basic map attribute configuration; Associating the data source with the display area allows for color mapping of the display area based on the data source, thus completing the business plane layer configuration. The layer click events of the instantiated GIS map component are associated with the first action sequence to form the first interaction logic. The first action sequence includes the drill-down administrative division mask action, the first layer loading action, and the display action of the button component. The button click event of the instantiated button component is associated with the second action sequence to form the second interaction logic. The second action sequence includes the action of returning the administrative division mask. The GIS map interaction is completed based on the first interaction logic and the second interaction logic.

2. The GIS map interaction method according to claim 1, characterized in that, The data source is GDP data, and the step of color mapping the display range based on the data source specifically involves: The GDP data is compared with a data threshold. If the GDP data is greater than the data threshold, the display area is assigned a first color. If the GDP data is less than the data threshold, the display area is assigned a second color.

3. The GIS map interaction method according to claim 1, characterized in that, The second basic attribute includes appearance attributes and display attributes. The step of configuring the second basic attribute of the button component includes: Set the button background color, button display text, text color, text size, and button border style to complete the appearance attribute configuration; Set the button component to a hidden state to complete the configuration of the display attributes.

4. The GIS map interaction method according to claim 1, characterized in that, After the step of associating the layer click events of the instantiated GIS map component with the first action sequence to form the first interaction logic, the method further includes: Configure an execution condition template for the first interaction logic. When the user fills in the execution parameters in the execution condition template, set an execution threshold for the first interaction logic based on the execution parameters and the first basic attribute.

5. The GIS map interaction method according to claim 1, characterized in that, The second action sequence also includes a second layer loading action.

6. A GIS map interaction system, applied to the GIS map interaction method as described in any one of claims 1 to 5, characterized in that, The system includes: A building module is used to build GIS map components and button components to form a visual component library. The GIS map components include layer click events, and the button components include button click events. The module is configured to instantiate the GIS map component and the button component in the graphical design area, and to configure the first basic attribute of the GIS map component, which includes map basic attributes and business surface layers, and to configure the second basic attribute of the button component. The assignment module includes: The first unit is used to input administrative division codes in the initial mask area to obtain the display range, input longitude and latitude coordinates in the display range to determine the center point, and set the zoom level for the display range to complete the basic map attribute configuration; The second unit is used to associate the data source with the display range, so as to perform color mapping on the display range according to the data source, so as to complete the business surface layer configuration; the first execution module is used to associate the layer click event of the instantiated GIS map component with the first action sequence to form the first interaction logic, the first action sequence includes the drill-down administrative division mask action, the first layer loading action and the display action of the button component; The second execution module is used to associate the button click event of the instantiated button component with the second action sequence to form the second interaction logic. The second action sequence includes the action of returning the administrative division mask, and completes the GIS map interaction based on the first interaction logic and the second interaction logic.

7. A computer 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 GIS map interaction method as described in any one of claims 1 to 5.

8. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the GIS map interaction method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Portable map legend assembly based on Amod map API and layer loading method of portable map legend assembly

    CN119148907A

  • General asset modularization display method based on GIS

    CN119806481A