CN114880614A - Desktop map engine and web graphic engine fusion display and output method - Google Patents

Desktop map engine and web graphic engine fusion display and output method Download PDF

Info

Publication number
CN114880614A
CN114880614A CN202210628799.3A CN202210628799A CN114880614A CN 114880614 A CN114880614 A CN 114880614A CN 202210628799 A CN202210628799 A CN 202210628799A CN 114880614 A CN114880614 A CN 114880614A
Authority
CN
China
Prior art keywords
web
desktop
content
program
output
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
Application number
CN202210628799.3A
Other languages
Chinese (zh)
Inventor
吴信才
吴亮
万波
黄波
王斗斗
李清清
韩威
辛潇
段丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUHAN ZONDY CYBER TECHNOLOGY CO LTD
Original Assignee
WUHAN ZONDY CYBER TECHNOLOGY CO LTD
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by WUHAN ZONDY CYBER TECHNOLOGY CO LTD filed Critical WUHAN ZONDY CYBER TECHNOLOGY CO LTD
Priority to CN202210628799.3A priority Critical patent/CN114880614A/en
Publication of CN114880614A publication Critical patent/CN114880614A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for fusion display and output of a desktop map engine and a web graphic engine, which comprises the following steps: s1, setting a target desktop application program, and loading webpage content through a web program; s2, adjusting the setting value of the webpage size in the web program to be consistent with the window size in the desktop application program, and determining the relative position relationship and the scaling relationship between the desktop content and the webpage content; s3, overlapping and displaying the content of the web program on the desktop application program, thereby realizing the fusion display of the desktop map engine and the web program; and S4, according to the user requirements, overlapping the self-defined content drawn by the desktop and the file output by the webpage content, combining the self-defined content and the file into one file and outputting the file.

Description

Desktop map engine and web graphic engine fusion display and output method
Technical Field
The invention relates to the field of geographic information systems, in particular to a method for fusion display and output of a desktop map engine and a web graphic engine.
Background
At present, a plurality of mature web application programs for plotting and situation plotting exist in the industry, if a function similar to plotting is realized in desktop application, the existing database structure and the existing plotting mode need to be modified, and a great amount of labor and time are required to be invested from product design to product maturity.
The conventional desktop application displays web pages by using a WebBrowser window, and one interface can only display one web page and cannot self-define and draw content on the window. With the progress of science and technology, some web application modules are created and embedded into a desktop application in recent years, pages provided by a server are rendered and displayed in the desktop application, but the operations of overlapping and displaying a plurality of web contents in the desktop application and dragging, rotating, zooming and the like on the overlapped web contents cannot be realized.
Disclosure of Invention
In order to solve the problems in the background art, the present invention provides a method for blending, displaying and outputting a desktop map engine and a web graphic engine.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for fusion display and output of a desktop map engine and a web graphic engine comprises the following steps:
s1, setting a target desktop application program, and loading webpage content through a web program;
s2, adjusting the setting value of the webpage size in the web program to be consistent with the window size in the desktop application program, and determining the relative position relationship and the scaling relationship between the desktop content and the webpage content;
s3, overlapping and displaying the content of the web program on the desktop application program, thereby realizing the fusion display of the desktop map engine and the web program;
and S4, according to the user requirements, overlapping the self-defined content drawn by the desktop and the file output by the webpage content, combining the self-defined content and the file into one file and outputting the file.
In some embodiments, in step S1, when the web page content is loaded by the web program, the embedded chrome framework is used to load the web page content in the memory.
In some embodiments, in step S2, the relative position relationship and the scaling relationship between the desktop content and the web content are determined by comparing preset reference points on the desktop content and the web content with reference scaling coefficients.
In some embodiments, in step S3, specifically, after the user draws the custom content in the form of the desktop application, the user acquires the current memory bitmap of the web program and displays the current memory bitmap in a superimposed manner on the form of the desktop application;
or after the user saves the content displayed on the web program, the content drawn by the window interface of the current desktop application program is cleared, then the current memory bitmap of the desktop application program is obtained and drawn on the window, and the content saved by the web program is superposed and displayed on the window of the desktop application program.
In some embodiments, in step S3, in the process of implementing the merged display of the desktop map engine and the web program, the page size of the web page in the web program is always kept consistent with the size of the form in the desktop application, and the relative positions and scales of the desktop content and the web page content are always kept as the relationship determined in step S2.
In some embodiments, in step S4, the user-defined content drawn by the desktop and the web content both output pdf files, and the output pdf files are overlapped, combined into one pdf file, and output.
In some embodiments, in steps S1-S4, the user can each pass through mouse and/or keyboard operations to the web page to effect interactive operations.
In some embodiments, in step S1, a plurality of web page contents are loaded by a plurality of web programs, respectively; in step S2, adjusting the setting value of the page size between each web program and the desktop application program, and determining the relative position relationship and the scaling relationship, respectively; in step S3, each web program is processed separately, and finally, the fusion display of the desktop map engine and the plurality of web programs is realized; in step S4, according to the user' S requirement, the user-defined content drawn on the desktop is superimposed with the files output from the multiple web page contents, and the superimposed contents are combined into one file and output.
Compared with the prior art, the invention has the beneficial effects that:
the method for fusing display and output of the desktop map engine and the web graphic engine, provided by the invention, draws the desktop custom-drawn content and the webpage content on the same window, realizes the overlapping display, and can realize the interactive operation and correctly output the target pdf. According to the invention, a relatively mature web application is added into the desktop program, and a large amount of manpower is not required to be invested for design, development and maintenance; the method has the advantages that a plurality of web applications can be superposed after the content is drawn on one window in a user-defined mode, and the function is rich; the mouse and keyboard operation can be transmitted to a webpage, and interaction is realized; and the relative position is ensured to be unchanged after data superposition by determining the position of a reference point and a reference scaling coefficient.
Drawings
FIG. 1 is a schematic flow chart diagram of a method for displaying and outputting a desktop map engine and a web graphic engine in a fusion manner according to the present invention;
fig. 2 is a schematic diagram illustrating the processing procedure of step S2 in one embodiment.
Detailed Description
In order to make the technical means, the creation features, the achievement purposes and the effects of the invention easy to understand, the following description further explains how the invention is implemented by combining the attached drawings and the detailed implementation modes.
Referring to fig. 1, the invention provides a method for fusion display and output of a desktop map engine and a web graphic engine, comprising the following steps:
s1, setting a target desktop application program, and loading webpage content through a web program;
s2, adjusting the setting value of the webpage size in the web program to be consistent with the window size in the desktop application program, and determining the relative position relationship and the scaling relationship between the desktop content and the webpage content;
s3, overlapping and displaying the content of the web program on the desktop application program, thereby realizing the fusion display of the desktop map engine and the web program;
and S4, according to the user requirements, overlapping the self-defined content drawn by the desktop and the file output by the webpage content, combining the self-defined content and the file into one file and outputting the file.
Preferably, in step S1, when the web page content is loaded by the web program, the embedded chrome frame is used to load the web page content in the memory. It is understood that, at this time, the loading of the web page content is loading in the memory and is not displayed in the web page interface.
Preferably, in step S2, the relative position relationship and the scaling relationship between the desktop content and the web content are determined by comparing a preset reference point and a preset reference scaling factor on the desktop content and the web content, so as to ensure that the position of the superimposed display is unchanged when the translation scaling is performed after the superimposition.
In step S3, specifically, after the user draws the custom content in the window of the desktop application, the user obtains the current memory bitmap of the web program and superimposes and displays the bitmap on the window of the desktop application; or after the user saves the content displayed on the web program, the content drawn by the window interface of the current desktop application program is cleared, then the current memory bitmap of the desktop application program is obtained and drawn on the window, and the content saved by the web program is superposed and displayed on the window of the desktop application program.
In addition, in step S3, in the process of implementing the fusion display of the desktop map engine and the web program, the size of the web page in the web program is always kept consistent with the size of the window in the desktop application, and the relative positions and the scaling ratios of the desktop content and the web page content are always kept in the relationship determined in step S2. It is understood that, in order to ensure the correctness of the displayed contents, the following points need to be noted: (1) when the desktop is redrawn, the memory bitmap of the webpage needs to be obtained again. (2) When the content of the webpage changes, the content of the window needs to be refreshed. (3) When the size of the form is changed, the display range of the webpage is changed. (4) When the window content is zoomed and translated, the webpage content also needs to be zoomed and translated.
Preferably, in step S4, the user-defined content drawn by the desktop and the web page content both output pdf files, and the output pdf files are overlapped, combined into one pdf file and output.
It is understood that in steps S1-S4, the user can operate the mouse and/or keyboard to transmit to the web page to realize the interactive operation.
Preferably, in step S1, a plurality of web page contents are loaded by a plurality of web programs, respectively; in step S2, adjusting the setting value of the page size between each web program and the desktop application program, and determining the relative position relationship and the scaling relationship, respectively; in step S3, each web program is processed separately, and finally, the fusion display of the desktop map engine and the plurality of web programs is realized; in step S4, according to the user' S requirement, the user-defined content drawn on the desktop is superimposed with the files output from the multiple web page contents, and the superimposed contents are combined into one file and output.
Next, a specific embodiment of the present invention will be described by using a plotting program superimposed on MapControl in the thematic map system as an example.
It is to be understood that the thematic map system is a desktop application; MapControl is a window in the system that can display and operate the GIS (geographic information system) data; the plotting program is a web program and can be labeled; the GIS data and the plotting program respectively have different coordinate systems and scaling references.
Firstly, in step S1, loading GIS data in a desktop application thematic map system; and refers to a dynamic library of a Chromium framework, creates a browser object, and loads a web program. At this time, the creation of the object and the loading of the application are both performed in the memory and are not displayed on the form.
Next, in step S2, the display size of the web program is adjusted to make the display range of the web page consistent with the drawing range of the form, and then the position relationship and the scaling relationship are determined. The steps and effects of step S2 in this embodiment are shown in fig. 2.
Because the coordinate systems in the thematic map system and the web program are inconsistent with the zooming mode, the reference point and the reference zooming coefficient need to be determined, and the position of the superimposed display is ensured to be unchanged when the translation zooming is carried out after the superimposition.
In fig. 2, the left side is the GIS data, the coordinate system is the projection coordinate system, and the scaling form is 1: n is the same as the formula (I). On the right is the web program, the coordinate system is rectangular, scaled by n%. In this embodiment, in order to ensure that the relative position is not changed after the data is superimposed, the coordinates (418470.8201, 4421315.7519) of the GIS data and the coordinates (0, 0) in the netpage program are selected as reference points to ensure that the two reference points are at the same position when the two reference points are superimposed and displayed. In addition, a scale 1 of GIS data is selected: 50000 corresponds to 100% of the scaling factor of the web program, thereby determining a reference scaling factor. For example, the display scale of the GIS is adjusted to 1: at 25000, the zoom factor of the web program is automatically adjusted to 200%, and then the (0, 0) point in the web program and the (418470.8201, 4421315.7519) point of the GIS data are displayed at the same position, so that the display effect is unchanged.
Thereafter, in step S3, after the drawing event of the desktop application and the drawing event of the web program are acquired, the desktop application and the web program are displayed in an overlapping manner. When the overlay display is performed, there are two cases: (1) when the desktop application program is refreshed, the desktop application program is drawn normally, the drawn content is stored after the desktop application program is drawn, then the memory bitmap currently displayed by the web program is obtained and drawn on the desktop application program interface, and the superposition display is completed. (2) when the web program page is refreshed, the content displayed by the web program is saved, the drawing content of the current web page window is emptied, the memory bitmap saved by the desktop application program is obtained and drawn on the desktop application program interface, and then the content saved by the web program is drawn on the interface to complete the superposition display. It will be appreciated that in both cases, the web page content is overlaid on top of the desktop content, and thus the web page content is rendered after the desktop custom renders the content.
In addition, in the data manipulation process, in order to ensure the correctness of the superimposition display, the correlation operation is automatically performed according to the positional relationship and the scaling relationship determined in step S2. For example, after the size of the window changes, the display range of the web program is adjusted to be consistent with the window of the desktop application program, and then the reference position of the web program is adjusted to be consistent with the reference position of the GIS data by utilizing the reference point; after the data of the window is zoomed, the data of the web program is zoomed correspondingly according to the zooming relation, and then the reference point is moved to the same position.
In the operation process, in order to carry out interactive operation on GIS data and plotting data, various mouse events and keyboard events of a window are acquired, and therefore the events are transmitted to a browser. The following events may be included: a mouse down event; a mouse movement event; a mouse up event; a mouse wheel roll event; mouse click events (including double clicks); a keyboard press event; a keyboard up event.
Finally, in step S4, when the pdf needs to be output, the size of the pdf output paper is obtained according to the window content; then the system outputs the pdf file of the GIS; the web program then outputs a pdf of the same paper size after the re-data zoom panning to the appropriate position; and finally, superposing the two pdfs to obtain a product pdf.
In summary, the method for fusing display and output of the desktop map engine and the web graphic engine, provided by the invention, draws the desktop custom-drawn content and the web page content on the same window, realizes overlay display, and can realize interactive operation and correct output of the target pdf. According to the invention, a relatively mature web application is added into the desktop program, and a large amount of manpower is not required to be invested for design, development and maintenance; the method has the advantages that a plurality of web applications can be superposed after the content is drawn on one window in a user-defined mode, and the function is rich; the mouse and keyboard operation can be transmitted to a webpage, and interaction is realized; and the relative position is ensured to be unchanged after the data are superposed by determining the position of one reference point and the reference scaling coefficient.
Finally, the above embodiments are only intended to illustrate the technical solution of the present invention and not to limit the same, and although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention, which should be covered by the claims of the present invention.

Claims (8)

1. A method for fusion display and output of a desktop map engine and a web graphic engine is characterized by comprising the following steps:
s1, setting a target desktop application program, and loading webpage content through a web program;
s2, adjusting the setting value of the webpage size in the web program to be consistent with the window size in the desktop application program, and determining the relative position relationship and the scaling relationship between the desktop content and the webpage content;
s3, overlapping and displaying the content of the web program on the desktop application program, thereby realizing the fusion display of the desktop map engine and the web program;
and S4, according to the user requirements, overlapping the self-defined content drawn by the desktop and the file output by the webpage content, combining the self-defined content and the file into one file and outputting the file.
2. The method for blending display and output of desktop map engine and web graphic engine of claim 1, wherein in step S1, when loading the web page content through the web program, the embedded chrome frame is used to load the web page content in the memory.
3. The method for blending displaying and outputting the desktop map engine and the web graphic engine according to claim 1, wherein in step S2, the relative position relationship and the scaling relationship between the desktop content and the web content are determined by comparing the preset reference points on the desktop content and the web content with the reference scaling coefficients.
4. The method for fusion display and output of the desktop map engine and the web graphic engine according to claim 3, wherein in step S3, after the user draws the custom content in the window of the desktop application, the user obtains the current memory bitmap of the web program and displays the bitmap in the window of the desktop application in an overlapping manner;
or after the user saves the content displayed on the web program, the content drawn by the window interface of the current desktop application program is cleared, then the current memory bitmap of the desktop application program is obtained and drawn on the window, and the content saved by the web program is superposed and displayed on the window of the desktop application program.
5. The method for blending display and output of desktop map engine and web graphics engine of claim 4, wherein in step S3, during the process of blending display of desktop map engine and web program, the size of web page in web program is always kept consistent with the size of window in desktop application, and the relative position and scale of desktop content and web content are always kept as the relation determined in step S2.
6. The method for blending display and output of a desktop map engine and a web graphic engine of claim 1, wherein in step S4, both the self-defined content and the web page content drawn by the desktop output a pdf file, and the output pdf files are overlapped, combined into one pdf file and output.
7. The method for fusing the display and output of the desktop map engine and the web graphic engine as claimed in claim 1, wherein in the steps S1-S4, the user can operate the mouse and/or the keyboard to transmit to the web page for interactive operation.
8. The method for blending display and output of a desktop map engine and a web graphic engine according to claim 1, wherein in step S1, a plurality of web page contents are loaded through a plurality of web programs respectively; in step S2, adjusting the setting value of the page size between each web program and the desktop application program, and determining the relative position relationship and the scaling relationship, respectively; in step S3, each web program is processed separately, and finally, the fusion display of the desktop map engine and the plurality of web programs is realized; in step S4, according to the user' S requirement, the user-defined content drawn on the desktop is superimposed with the files output from the multiple web page contents, and the superimposed contents are combined into one file and output.
CN202210628799.3A 2022-06-06 2022-06-06 Desktop map engine and web graphic engine fusion display and output method Pending CN114880614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210628799.3A CN114880614A (en) 2022-06-06 2022-06-06 Desktop map engine and web graphic engine fusion display and output method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210628799.3A CN114880614A (en) 2022-06-06 2022-06-06 Desktop map engine and web graphic engine fusion display and output method

Publications (1)

Publication Number Publication Date
CN114880614A true CN114880614A (en) 2022-08-09

Family

ID=82679360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210628799.3A Pending CN114880614A (en) 2022-06-06 2022-06-06 Desktop map engine and web graphic engine fusion display and output method

Country Status (1)

Country Link
CN (1) CN114880614A (en)

Similar Documents

Publication Publication Date Title
CN110956673B (en) Map drawing method and device
US7194697B2 (en) Magnification engine
CN111324837B (en) Three-dimensional chart visualization method and device based on GIS system at web front end
CN101763234B (en) Method and device for simulating various screen resolutions
US7200615B2 (en) Viewing tabular data on small handheld displays and mobile phones
CN112380357B (en) Method for realizing interactive navigation of knowledge graph visualization
CN105808217A (en) Flow chart drawing method and system based on XML
EP3543948A1 (en) Method for providing e-book service and computer program therefor
CN101859322A (en) Webpage display method for mobile terminal
JP2009080573A (en) Display method
CN114842151A (en) Digital twin-based scalable vector graphics label display method
CN107491289B (en) Window rendering method and device
CN114895891A (en) Graphic software processing method and device, electronic equipment and storage medium
CN108830794B (en) Cross-map seamless splicing display method for PDF map of Gaussian projection
JPH05108786A (en) Method and apparatus for transforming graphic form
CN114880614A (en) Desktop map engine and web graphic engine fusion display and output method
US20170270218A1 (en) Mapping of Defined Regions Within a Webpage
CN113722031B (en) Dynamic display method, equipment, medium and product of electronic signature
US8438477B2 (en) Methods for deforming map widgets on the browser
CN113096217B (en) Picture generation method and device, electronic equipment and storage medium
CN114549303A (en) Image display method, image processing method, image display device, image processing equipment and storage medium
JP4722784B2 (en) Electronic blackboard apparatus, image processing method in electronic blackboard apparatus, and program thereof
CN114494509A (en) Label drawing method, device and equipment for online drawing and storage medium
US20140040859A1 (en) Generating and Presenting Property Editors
JPH1186017A (en) Apparatus and method for information processing

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