CN121209993A - A GIS map interaction method and system - Google Patents
A GIS map interaction method and systemInfo
- Publication number
- CN121209993A CN121209993A CN202511735496.1A CN202511735496A CN121209993A CN 121209993 A CN121209993 A CN 121209993A CN 202511735496 A CN202511735496 A CN 202511735496A CN 121209993 A CN121209993 A CN 121209993A
- Authority
- CN
- China
- Prior art keywords
- gis map
- button
- component
- interaction
- action
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a GIS map interaction method and system, the method comprises the steps of constructing a GIS map assembly comprising map layer clicking events and a button assembly comprising button clicking events, instantiating the GIS map assembly and the button assembly, associating the map layer clicking events of the instantiated GIS map assembly to a first action sequence to form first interaction logic, associating the button clicking events of the instantiated button assembly to a second action sequence to form second interaction logic, and completing GIS map interaction based on the first interaction logic and the second interaction logic. When maintenance is needed, the attributes of the GIS map assembly and the button assembly and the association relation between the attributes and the action sequences can be directly modified on the graphical interface, so that the labor cost is reduced, and the maintenance efficiency is improved.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to a GIS map interaction method and system.
Background
In the current data visualization field, a large amount of customized development is usually required to construct a GIS map application capable of displaying administrative regions, supporting roller scaling and viewing details and realizing complicated interactions such as conditional drill-down and return, and the GIS map application is difficult to realize by performing graphical operation. When the application requirements change, the code must be modified by a developer, resulting in high labor cost and low maintenance efficiency.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a GIS map interaction method and a GIS map interaction system, and aims to solve the technical problems of high labor cost and low maintenance efficiency caused by code re-modification when application requirements are changed in the prior art by realizing complex GIS map interaction in a customized development mode.
In order to achieve the above object, in a first aspect, an embodiment of the present application provides a GIS map interaction method, including the following steps:
constructing a GIS map assembly and a button assembly to form a visual assembly library, wherein the GIS map assembly comprises a map layer clicking event, and the button assembly comprises a button clicking event;
Instantiating the GIS map assembly and the button assembly in a graphical design area to configure a first basic attribute of the GIS map assembly and a second basic attribute of the button assembly;
Associating the instantiated layer click event of the GIS map assembly to the first action sequence to form first interaction logic;
And associating the instantiated button click event of the button assembly to a second action sequence to form second interaction logic, and completing GIS map interaction based on the first interaction logic and the second interaction logic.
Further, the first basic attribute includes a map basic attribute and a business surface layer, and the step of configuring the first basic attribute of the GIS map component includes:
inputting administrative division codes in an initial mask area to obtain a display range, inputting longitude coordinates and latitude coordinates in the display range to determine a center point, and setting a zoom level for the display range to finish map basic attribute configuration;
And associating a data source with the display range, and performing color mapping on the display range according to the data source to complete service surface layer configuration.
Further, the data source is GDP data, and the step of performing color mapping on the display range according to the data source specifically includes:
And comparing the GDP data with a data threshold, if the GDP data is larger than the data threshold, giving a first color to the display range, and if the GDP data is smaller than the data threshold, giving a second color to the display range.
Still further, the second base attribute includes an appearance attribute and a presentation attribute, and the step of configuring the second base attribute of the button assembly includes:
setting the background color of the button, the display text of the button, the color of the text, the size of the text and the style of the frame of the button so as to complete the configuration of appearance attributes;
And setting the button assembly to be in a hidden state so as to complete the configuration of the display attribute.
Still further, the first sequence of actions includes a drill down administrative division masking action, a first layer loading action, and a display action of the button assembly, and the second sequence of actions includes a return administrative division masking action.
Still further, after the step of associating the instantiated layer click event of the GIS map component to the first action sequence to form a first interaction logic, the method further includes:
and configuring an execution condition template for the first interaction logic, and setting an execution threshold for the first interaction logic based on the execution parameters and the first basic attribute when a user fills the execution parameters in the execution condition template.
Still further, the second sequence of actions further includes a second layer loading action.
In a second aspect, an embodiment of the present application provides a GIS map interaction system, which is applied to the GIS map interaction method described in the first aspect, where the system includes:
The building module is used for building a GIS map assembly and a button assembly to form a visual assembly library, wherein the GIS map assembly comprises a map layer clicking event, and the button assembly comprises a button clicking event;
the giving module is used for instantiating the GIS map assembly and the button assembly in the graphical design area so as to configure a first basic attribute of the GIS map assembly and a second basic attribute of the button assembly;
the first execution module is used for associating the instantiated layer click event of the GIS map assembly to the first action sequence to form first interaction logic;
And the second execution module is used for associating the instantiated button click event of the button assembly to a second action sequence to form second interaction logic, and GIS map interaction is completed based on the first interaction logic and the second interaction logic.
In a third aspect, an embodiment of the present application provides a computer, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the GIS map interaction method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the GIS map interaction method as described in the first aspect above.
Compared with the prior art, the GIS map module and the button module have the beneficial effects that the GIS map module and the button module are constructed, the general functions are packaged into the prefabricated modules, the first basic attribute and the second basic attribute of the GIS map module and the button module are configured to replace the traditional code type configuration mode, the first action sequence and the second action sequence are respectively associated with the map layer click event and the button click event, the complicated condition judgment and function call logic is replaced to write, and when maintenance is needed, the attributes of the GIS map module and the button module and the association relation between the attributes and the action sequences can be directly modified on a graphical interface, so that the labor cost is reduced, and the maintenance efficiency is improved.
Drawings
FIG. 1 is a flowchart of a GIS map interaction method according to a first embodiment of the present invention;
FIG. 2 is a block diagram illustrating a GIS map interactive system according to a second embodiment of the present invention;
The invention will be further described in the following detailed description in conjunction with the above-described figures.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Several embodiments of the invention are presented in the figures. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "mounted" on another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for illustrative purposes only.
Unless defined otherwise, 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 belongs. 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.
Referring to fig. 1, a GIS map interaction method provided by a first embodiment of the present invention includes the following steps:
S10, constructing a GIS map assembly and a button assembly to form a visual assembly library, wherein the GIS map assembly comprises a layer click event, and the button assembly comprises a button click event;
By constructing the GIS map assembly and the button assembly, graphical configuration data can be realized, and visualization of application scenes can be realized. By setting the layer clicking event and the button clicking event, after the GIS map component and the button component are clicked, corresponding executing actions are triggered to complete map interaction.
S20, instantiating the GIS map assembly and the button assembly in a graphical design area to configure a first basic attribute of the GIS map assembly and a second basic attribute of the button assembly;
In this embodiment, the first basic attribute includes a map basic attribute and a business surface layer, and the second basic attribute includes an appearance attribute and a display attribute. The first basic attribute and the second basic attribute are basic parameters of the GIS map assembly and the button assembly respectively. It will be appreciated that the GIS map components and the button components are typically instantiated via a component library panel or a toolbox within the graphical design area of the web application interface.
Specifically, the step S20 includes:
S210, inputting administrative division codes in an initial mask area to obtain a display range, inputting longitude coordinates and latitude coordinates in the display range to determine a center point, and setting a zoom level for the display range to finish map basic attribute configuration;
And selecting the GIS map assembly from the assembly library, and moving the GIS map assembly to the main design canvas area to obtain the initial mask area from the attribute panel. By setting the longitude coordinate, the latitude coordinate, and the zoom level, it is possible to ensure that the display range is always centrally displayed.
S220, associating a data source with the display range, and performing color mapping on the display range according to the data source to complete service surface layer configuration;
in this embodiment, the data source is GDP data, and in some embodiments, the data source is man-hole data, and it can be understood that according to different requirements, different databases can be correspondingly accessed to complete the acquisition of different types of data sources. Further, the GDP data is compared with a data threshold, if the GDP data is larger than the data threshold, a first color is given to the display range, and if the GDP data is smaller than the data threshold, a second color is given to the display range. If the data threshold is 50000, the display range is filled with deep blue when the GDP data is greater than 50000, and is filled with light blue when the GDP data is less than 50000.
S230, setting button background color, button display characters, character color, character size and button frame style to complete appearance attribute configuration;
s240, setting the button assembly to be in a hidden state so as to complete configuration of the display attribute;
It will be appreciated that when the GIS map assembly is initially loaded subsequently, the button assembly is in an invisible state, and whether it is displayed is controlled according to the linkage rules set subsequently.
S30, associating the instantiated layer click event of the GIS map assembly to the first action sequence to form first interaction logic;
the first action sequence comprises a down-drilling administrative division masking action, a first layer loading action and a display action of the button assembly.
It can be understood that, after the user triggers the layer clicking event of the GIS map assembly, the GIS map assembly performs map drill-down operation by itself, and displays the first layer after drill-down correspondingly, and displays the button assembly. In order to improve the interactive interaction efficiency of the user, the method further comprises the following steps:
s50, configuring an execution condition template for the first interaction logic, and setting an execution threshold for the first interaction logic based on the execution parameters and the first basic attribute when a user fills the execution parameters in the execution condition template;
By setting the execution condition template, the user can customize whether the map is drilled down, taking the data source in the first basic attribute as GDP data as an example, setting the GDP drill-down threshold value in the execution condition template as 80000 by the user, when the user triggers a layer click event of a certain GIS map component, comparing the GDP drill-down threshold value with the first basic attribute in the current GIS map component by the system in a self-running manner, if the GPD data in the first basic attribute in the current GIS map component is greater than 80000, executing the first interaction logic, performing drill-down display of the map, and if the GPD data in the first basic attribute in the current GIS map component is smaller than 80000, stopping the first interaction logic.
S40, associating the instantiated button click event of the button assembly to a second action sequence to form second interaction logic, and completing GIS map interaction based on the first interaction logic and the second interaction logic;
the second sequence of actions includes a return administrative division masking action, it being understood that when the map is drilled down, the button assembly is presented, and a return operation can be performed by triggering the button click event, returning from the drilled-down layer to the display range. Preferably, the second action sequence further includes a second layer loading action, that is, after returning to the display range, loading the layer corresponding to the display range correspondingly, so as to avoid the situation that the layer still stays on the layer after the drill-down or has a display error.
The GIS map component and the button component are constructed, the universal functions are packaged into the prefabricated module, the first basic attribute and the second basic attribute of the GIS map component and the button component are configured to replace the traditional code type configuration mode, the first action sequence and the second action sequence are respectively related to the layer clicking event and the button clicking event, the complicated condition judgment and function call logic are written to replace, and when maintenance is needed, the attributes of the GIS map component and the button component and the association relation between the attributes and the action sequences can be directly modified on a graphical interface, so that the labor cost is reduced, and the maintenance efficiency is improved.
Referring to fig. 2, a second embodiment of the present invention provides a GIS map interaction system, which is applied to the GIS map interaction method in the above embodiment, and is not described again. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The system comprises:
A building module 10, configured to build a GIS map component and a button component, so as to form a visual component library, where the GIS map component includes a layer click event, and the button component includes a button click event;
A giving module 20, configured to instantiate the GIS map component and the button component in a graphical design area to configure a first basic attribute of the GIS map component and configure a second basic attribute of the button component;
the imparting module 20 includes:
The first unit is used for inputting administrative division codes in the initial mask area to acquire a display range, inputting longitude coordinates and latitude coordinates in the display range to determine a center point, and setting a zoom level for the display range to finish map basic attribute configuration;
the second unit is used for associating a data source with the display range so as to carry out color mapping on the display range according to the data source and complete the configuration of the service surface layer;
The second unit is specifically configured to compare the GDP data with a data threshold, if the GDP data is greater than the data threshold, assign a first color to the display range, and if the GDP data is less than the data threshold, assign a second color to the display range;
the third unit is used for setting the background color of the button, the display characters of the button, the color of the characters, the size of the characters and the frame style of the button so as to complete the configuration of appearance attributes;
A fourth unit, configured to set the button assembly to a hidden state, so as to complete configuration of the display attribute;
A first execution module 30, configured to associate the instantiated layer click event of the GIS map component to the first action sequence to form a first interaction logic;
preferably, the system further comprises:
A limiting module 40, configured to configure an execution condition template for the first interaction logic, and set an execution threshold for the first interaction logic based on the execution parameter and the first basic attribute when a user fills in the execution parameter in the execution condition template;
The second execution module 50 is configured to associate the instantiated button click event of the button assembly to a second action sequence to form a second interaction logic, and complete GIS map interaction based on the first interaction logic and the second interaction logic.
The invention also provides a computer, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the GIS map interaction method in the technical scheme is realized when the processor executes the computer program.
The invention also provides a storage medium, on which a computer program is stored, which when being executed by a processor, implements the GIS map interaction method as described in the above technical scheme.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202511735496.1A CN121209993A (en) | 2025-11-25 | 2025-11-25 | A GIS map interaction method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202511735496.1A CN121209993A (en) | 2025-11-25 | 2025-11-25 | A GIS map interaction method and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN121209993A true CN121209993A (en) | 2025-12-26 |
Family
ID=98110673
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202511735496.1A Pending CN121209993A (en) | 2025-11-25 | 2025-11-25 | A GIS map interaction method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN121209993A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007113573A2 (en) * | 2006-04-05 | 2007-10-11 | Box Uk Limited | Automated measuring of interaction with user interfaces |
| US20140310633A1 (en) * | 2013-04-12 | 2014-10-16 | Schlumberger Technology Corporation | Geographic information system (gis) mapping with logical and physical views of oil & gas production network equipment |
| CN109582308A (en) * | 2018-11-05 | 2019-04-05 | 中国资源卫星应用中心 | A kind of interactive map component based on XEmbed is dynamically embedded into method and system |
| US20200342552A1 (en) * | 2019-04-26 | 2020-10-29 | Mapbox, Inc. | Editing and Representing Property Values for a Digital Map |
| CN119148907A (en) * | 2024-11-15 | 2024-12-17 | 南京感动科技有限公司 | Portable map legend component based on Goldmap API and layer loading method thereof |
| CN119806481A (en) * | 2024-11-18 | 2025-04-11 | 成都城投数智集团有限公司 | A GIS-based component display method for general assets |
-
2025
- 2025-11-25 CN CN202511735496.1A patent/CN121209993A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007113573A2 (en) * | 2006-04-05 | 2007-10-11 | Box Uk Limited | Automated measuring of interaction with user interfaces |
| US20140310633A1 (en) * | 2013-04-12 | 2014-10-16 | Schlumberger Technology Corporation | Geographic information system (gis) mapping with logical and physical views of oil & gas production network equipment |
| CN109582308A (en) * | 2018-11-05 | 2019-04-05 | 中国资源卫星应用中心 | A kind of interactive map component based on XEmbed is dynamically embedded into method and system |
| US20200342552A1 (en) * | 2019-04-26 | 2020-10-29 | Mapbox, Inc. | Editing and Representing Property Values for a Digital Map |
| CN119148907A (en) * | 2024-11-15 | 2024-12-17 | 南京感动科技有限公司 | Portable map legend component based on Goldmap API and layer loading method thereof |
| CN119806481A (en) * | 2024-11-18 | 2025-04-11 | 成都城投数智集团有限公司 | A GIS-based component display method for general assets |
Non-Patent Citations (1)
| Title |
|---|
| 樊明辉等: ""基于地图的交互式可视化技术"", 《华南理工大学学报(自然科学版)》, vol. 36, no. 5, 25 May 2008 (2008-05-25), pages 48 - 52 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7536645B2 (en) | System and method for customizing layer based themes | |
| CN104216752B (en) | A kind of information loading method and device based on window | |
| JP4812337B2 (en) | Method and apparatus for generating a form using a form type | |
| US20200264749A1 (en) | Styling system | |
| CN109782977B (en) | View processing method, electronic device and storage medium | |
| CN114048110B (en) | A method for implementing custom visual topology graph based on Antv | |
| CN112138380B (en) | Method and device for editing data in game | |
| US20080126955A1 (en) | Window Display System, Window Display Method, Program Development Support Device, and Server Device | |
| CN111381925B (en) | GUI fragment type rendering method and device based on dirty rectangle mechanism | |
| US20250303858A1 (en) | Display method, vehicle, and medium | |
| JP4177434B2 (en) | Window display system, information processing system, client device, telephone, information device, home appliance and device | |
| CN117492602A (en) | Canvas-based terminal visualization and interaction processing method and device | |
| CN101377922A (en) | Method for generating and displaying OSD | |
| CN121209993A (en) | A GIS map interaction method and system | |
| CN114237795A (en) | Terminal interface display method and device, electronic equipment and readable storage medium | |
| CN100589073C (en) | Window display system and display method | |
| US20230097748A1 (en) | Generating a graphical user interface in a pre-operating system boot environment | |
| CN119960715A (en) | A method and device for managing an onboard display window | |
| Kelly | Basic introduction to PyGame | |
| US10324691B2 (en) | Factory identification system | |
| CN111625306B (en) | Display control method and device for floating icon in vehicle computer | |
| CN121501257A (en) | A method, apparatus, electronic device, and storage medium for controlling an interface component. | |
| CN120459634A (en) | Marking method, device, electronic device and readable storage medium in game | |
| CN118656067A (en) | Visual programming interface operation method, device, equipment, medium and product | |
| CN119415002A (en) | Image processing method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |