Method for embedding map view in Web document release

By embedded the parameterized map map code in the text document, users can edit and adjust the map view, solve the complex problems of map services in the existing technology, and realize the simple, convenient and personalized display of the map map view.

CN119376730AInactive Publication Date: 2025-01-28NORTHEAST INST OF GEOGRAPHY & AGRIECOLOGY C A S +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411495850.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-01-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When existing map services refer to maps in applications or websites, developers usually need to understand the API interface and URL parameters. The operation is complicated and difficult to meet the personalized needs of ordinary users.

Method used

Through parameterized code fragments embedded the current view of the map in the database management tool in the text document, users can be edited and adjusted to realize the reproduction of the map component view in the document.

Benefits of technology

Simplified the reference and display of the map view view, suitable for ordinary users, no need to understand development details, and improve the convenience and effect of user experience and information display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376730A_ABST
    Figure CN119376730A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of map Web services, and relates to a method for embedding a map view in Web document release. The method aims at assisting a user in displaying and sharing a map view in a Web document and adding custom map content in the document. A user embeds a code snippet containing view parameters into a document through the method steps of determining a map piece, determining a view position and range, adding annotation information, obtaining the view parameters, embedding the view into a text, publishing the text and the like, and flexibly edits and adjusts a map view to realize reproduction in a web document. According to the method, the user operation is simplified, the operability of the user is improved, the user can format and edit the view through the text editor, the presented view is easier to read and professional, the document display quality and the information transmission effect are further improved, the user can conveniently and quickly share and communicate, and the personalized requirements of the user are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of map web services, and in particular to a method for embedding a map view in publishing a web document. Background Art

[0002] With the popularization of the Internet and mobile devices, map services are used more and more widely in life. People often need to reference map services in applications or websites to display location information or route planning and other functions.

[0003] In terms of map reference, most applications or websites choose to call maps through API. API reference is to implement map functions by calling the interface (API) provided by the map service provider. [1,2,3] , usually through HTTP requests and data responses to obtain map data and operate the map [4] This method is generally used for developers to develop independent applications, and requires understanding of the detailed meaning of URLs and parameters. Its advantage is that it is highly flexible, and developers can customize map functions and styles as needed, and implement more complex map operations through interface calls. [5,6,7] For example, in the study of the fish port map calling method of the Fishery Information Engineering Function Laboratory of the Chinese Academy of Fishery Sciences, Google Maps API was used to call the map service [8] , presenting a map display of fishing port coordinates with spatial geographic information; the traffic information service system of the Hainan Basic Geographic Information Center of the National Administration of Surveying, Mapping and Geographic Information, by calling the "World Map·Hainan" API [9] , providing basic map service support for Hainan’s transportation information service system.

[0004] Different from the common API calling map service method mentioned above, the present invention is mainly for users. The method of referencing map view adopts the code embedding method, determines the view parameters through the information, specific location, and specific elements presented by the map view, embeds the code snippet containing the parameter information into the front-end text, and reproduces the effect of the map view in the document through publishing. The advantage of this method is that it is simple and convenient, and can quickly realize the display function of the current view without complex configuration and interface calls. When the user document is published, dynamic animations are embedded, making the publication of web text more personalized and targeted.

[0005] References

[0006] [1] Zhu Feng, Zhao Tingting. Development and application of network point mapping platform based on Baidu map API[J]. Surveying and Mapping Geographic Information, 2019, 44 (01): 121-123+126. DOI:10.14188 / j.2095-6045.2017244.

[0007] [2] Chen Xiaoning, Ma Yafei. Application of Web Map Service System Based on NewMap API[J]. Bulletin of Surveying and Mapping, 2012, (03): 77-80.

[0008] [3] Peng Xuan, Wu Xiao. Application of Google Map API in Web Map Service[J]. Surveying and Mapping Information and Engineering, 2010, 35 (01): 25-27. DOI:10.14188 / j.2095-6045.2010.01.021.

[0009] [4] Yuan Haolin, Xie Yongheng, Shi Zhizhong, et al. Method, device, equipment and storage medium for integrating map services into business[P]. Beijing: CN202011027613.6, 2020-12-29.

[0010] [5] He Wei, Wang Hao, Liu Quan, et al. External traffic route optimization system for hydropower projects based on map API[J]. Yangtze River Journal, 2022, 53 (10): 122-128. DOI:10.16232 / j.cnki.1001-4179.2022.10.019.

[0011] [6] He You, Xie Gangsheng. Using map API to realize online browsing of multi-temporal remote sensing image maps[J]. Bulletin of Surveying and Mapping, 2015, (03): 79-81+128. DOI:10.13474 / j.cnki.11-2246.2015.0082.

[0012] [7] Cheng Gang, Liang Xiaoli, Zhang Dequn, et al. Design and implementation of campus online electronic map based on map API [J]. Surveying and Mapping Engineering, 2014, 23 (01): 5-11. DOI:10.19349 / j.cnki.issn1006-7949.2014.01.002.

[0013] [8] Xu Shuo, Wang Yu. Research on a fishing port map calling method based on Google Map API[J]. Surveying and Mapping and Spatial Geographic Information, 2013, 36(09): 59-61.

[0014] [9] Chen Xiaofen, Chen Desheng. Design and implementation of traffic information service system based on “Tiantu·Hainan”[J]. Surveying and Mapping and Spatial Geographic Information, 2016, 39(04): 166-8+72. Summary of the invention

[0015] The present invention provides a method for embedding a map view in Web document publishing. The user embeds the current view of a map piece in a database management tool in a text document through a parameterized code snippet, and allows editing and adjustment, thereby realizing the reproduction of the map piece view in the document, meeting the user's reference and personalization requirements for the map piece view, and improving the user experience and the convenience and effect of map piece display.

[0016] The present invention mainly includes two parts: map view (A) and document publishing (B):

[0017] The map view (A) is the map area and content that the user currently wants to embed, including the geographic location, map display area, and map annotation content;

[0018] The map view (A) comprises: a map element (1), a location and range (2), and annotation information (3);

[0019] The document publishing (B) is that the user embeds the parameter code of the current map view in the text document to achieve the reproduction of the view at the embedding location;

[0020] The document publishing (B) includes: obtaining view parameters (4) and embedding the view (5).

[0021] Preferably, the steps further include:

[0022] Step 1, determining the map element (1), querying the map element data stored in the database through a database management tool to determine the embedded map element;

[0023] Step 2, determine the view position and range (2), adjust the position and zoom size of the map element in the map frame, and determine the latitude and longitude coordinates of the center point of the view and the zoom level;

[0024] Step 3, adding annotation information (3), an optional step, allows the user to add customized information as needed, and draw annotations in multiple ways within the map frame, and the map service static cache server receives and replaces the local cache;

[0025] Step 4, obtain view parameters (4), and generate code containing view parameters according to the command function used;

[0026] Step 5, embed the view (5), embed the view parameter code into the text, format and edit the view through a text editor, and save and publish the document containing the view to achieve the reproduction of the map view in the document.

[0027] Preferably, the embedded map view is obtained from a database management tool.

[0028] Preferably, the user edits the text document using a text editor, which is an application that supports formatting and editing of embedded views.

[0029] Preferably, the embedded view can display coordinate location information by clicking, zooming, and dragging the map.

[0030] Preferably, the step 3 adds annotation information (3) to illustrate the location and range and provide additional information.

[0031] Preferably, the optional step in step 3 allows the user to supplement customized information as needed;

[0032] The optional step, the user chooses whether to perform this step according to the needs;

[0033] If implemented, the user is allowed to supplement customized information as needed;

[0034] If not, skip this step.

[0035] Preferably, in step 3, multiple annotations are drawn in the map frame;

[0036] Use editing tools to edit the current view and add point features, line features, polygon features, and rectangle features.

[0037] Preferably, in step 4, obtaining view parameters (4);

[0038] Generate code containing view parameters based on the command function used;

[0039] The code includes: map piece number, center point longitude and latitude coordinates, zoom level, and annotation information.

[0040] Preferably, the step 5 embeds the view (5), embeds the view parameter code into the text, and formats and edits the view through a text editor;

[0041] By adjusting and editing the embedded code in the text editor, the size, position, and annotation information can be adjusted;

[0042] You can add additional comments, instructions, or other text content to make the view content clearer and easier to read.

[0043] Preferably, a method for embedding a map view in Web document publishing is characterized in that step 5 saves and publishes the document containing the view to achieve the reproduction of the map view in the document.

[0044] Save the document to your local computer or cloud storage service;

[0045] Publish a document containing a map view through a document publishing channel to share the map view information contained in the document.

[0046] The beneficial effects of the present invention are:

[0047] The method of the present invention realizes the reproduction of the map view in the document, thereby enhancing the information display effect of the document.

[0048] This method is suitable for ordinary users. There is no need to understand the development details, and no need for complex configuration and interface calls. The view is controlled by parameters, and the operation is simple and convenient, which improves the user's operability.

[0049] Users can use text editors to format and edit views, making the presented views more readable and professional, further improving the presentation quality of the document.

[0050] This method facilitates users to quickly share views and information, promotes information exchange and sharing, and enhances the convenience and effectiveness of information sharing.

[0051] This method meets the personalized needs of users and improves user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0053] Figure 1 It is a flow chart of the present invention.

[0054] In the figure: A. Map view; B. Document publishing; 1. Map graphics; 2. Location and range; 3. Annotation information; 4. Get view parameters; 5. Embed view. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] Example:

[0057] See also Figure 1 The present invention provides a method for embedding a map view in a Web document publishing. The user can use a parameterized code snippet to cite the current view of a map component embedded in a database management tool in a text document, and allow editing and adjustment to achieve the reproduction of the map component view at the embedding location, meet the user's reference and personalization needs for the map component view, and improve the convenience and effect of user experience and information display;

[0058] The present invention mainly includes two parts: map view (A) and document publishing (B):

[0059] The map view (A) is the map area and content that the user currently wants to embed, including the geographic location, map display area, and map annotation content;

[0060] The map view (A) comprises: a map element (1), a location and range (2), and annotation information (3);

[0061] The document publishing (B) is that the user embeds the parameter code of the current map view in the text document to achieve the reproduction of the view at the embedding location;

[0062] The document publishing (B) includes: obtaining view parameters (4) and embedding the view (5).

[0063] The following are the specific implementation steps:

[0064] Step 1, determining the map element (1), querying the map element data stored in the database through a database management tool to determine the embedded map element;

[0065] The database in the database management tool stores all map data;

[0066] Searching for target map data according to the keyword search bar of the database management tool;

[0067] Or search for target map data by browsing the database management tool page;

[0068] The user determines the map element to be embedded.

[0069] Step 2, determine the view position and range (2), adjust the position and zoom size of the map element in the map frame, and determine the latitude and longitude coordinates of the center point of the view and the zoom level;

[0070] On the basis of determining the said map figure;

[0071] Drag in the map frame or use the arrow keys to adjust the position of the map element;

[0072] Determine the latitude and longitude coordinates of the appropriate center point of the map piece;

[0073] Using the zoom in and zoom out buttons or sliding to adjust the size range of the map element in the map frame;

[0074] Determine the appropriate zoom level for the map tile.

[0075] Step 3, adding annotation information (3), an optional step, allows the user to add customized information as needed, and draw annotations in multiple ways within the map frame, and the map service static cache server receives and replaces the local cache;

[0076] The optional step, the user chooses whether to perform this step according to the needs;

[0077] If implemented, the user is allowed to supplement customized information as needed;

[0078] Use editing tools to edit the current view, add point features, line features, polygon features, rectangle features, and save them;

[0079] If not, skip this step.

[0080] The step 3 of performing multi-mode annotation and drawing of annotation information in the map frame (3), wherein the multi-mode annotation and drawing comprises: point feature annotation and drawing;

[0081] Determine the online drawing point coordinates and the map outline coordinates according to the screen coordinate information corresponding to the map frame;

[0082] Determining whether the coordinates of the online drawing point are within the map frame according to the map outline coordinates;

[0083] If it is within the map frame, an online cartographic element label group is obtained, and point element annotation and drawing are performed on the map view according to the online cartographic element label group;

[0084] If it is not within the map frame, the drawing will be invalid.

[0085] The step 3 of performing multi-mode annotation and drawing of annotation information in the map frame (3), wherein the multi-mode annotation and drawing comprises: line feature annotation and drawing;

[0086] Determine the online drawing point coordinates and the map outline coordinates according to the screen coordinate information corresponding to the map frame;

[0087] Determining whether the coordinates of the online drawing point are within the map frame according to the map outline coordinates;

[0088] If it is within the map frame, then obtaining an online cartographic element label group, and performing line element annotation and drawing on the map view according to the online cartographic element label group;

[0089] If it is not within the map frame, the drawing will be invalid.

[0090] The step 3 of performing multi-mode annotation and drawing of annotation information in the map frame (3), wherein the multi-mode annotation and drawing comprises: polygon element annotation and drawing;

[0091] Determine the online drawing point coordinates and the map outline coordinates according to the screen coordinate information corresponding to the map frame;

[0092] Determining whether the coordinates of the online drawing point are within the map frame according to the map outline coordinates;

[0093] If it is within the map frame, an online cartographic element label group is obtained, and polygon element annotation and drawing is performed on the map view according to the online cartographic element label group;

[0094] If it is not within the map frame, the drawing will be invalid.

[0095] The step 3 of performing multi-mode annotation and drawing of annotation information in the map frame (3), wherein the multi-mode annotation and drawing comprises: rectangular feature annotation and drawing;

[0096] Determine the online drawing point coordinates and the map outline coordinates according to the screen coordinate information corresponding to the map frame;

[0097] Determining whether the coordinates of the online drawing point are within the map frame according to the map outline coordinates;

[0098] If it is within the map frame, an online cartographic element label group is obtained, and rectangular element annotation and drawing is performed on the map view according to the online cartographic element label group;

[0099] If it is not within the map frame, the drawing will be invalid.

[0100] The map service static cache server in step 3 receives and performs local cache replacement;

[0101] The system monitors the editing events within the map frame, captures the user's editing block information and the corresponding map service information in real time, and sends editing and updating requests to the map service cache server;

[0102] For different editing operations, calculate the coordinates of the corner points of the rectangle surrounding the user's editing area to determine the spatial range of the editing area;

[0103] Pass in the preset map service cache, build the target cache path corresponding to the edited block, obtain the cache data and coordinate range attributes to be replaced for positioning and file replacement;

[0104] If no labeling is required, skip this step.

[0105] Step 4, obtain view parameters (4), and generate code containing view parameters according to the command function used;

[0106] Obtaining a map piece number according to the current map piece view in the map frame;

[0107] According to the adjustment of the current view in the map frame in step 2, the longitude and latitude coordinates of the center point of the current map view in the map frame, the current zoom level, the maximum zoom level, and the minimum zoom level are obtained;

[0108] According to the annotation drawing of the current map view in the map frame in step 3, the current annotation information is obtained;

[0109] The system executes the command function according to the obtained map piece number, the longitude and latitude coordinates of the center point, the current zoom level, the maximum zoom level, the minimum zoom level, and the current annotation information, and generates code containing the current view parameters in real time.

[0110] Step 5, embedding the view (5), embedding the view parameter code into the text, formatting and editing the view through a text editor, and saving and publishing the document containing the view to achieve the reproduction of the map view in the document;

[0111] A user edits a text document using a text editor, wherein the text editor is an application that supports formatting and editing views;

[0112] In the example, the user embeds the view parameter code into the position to be referenced in the text by copying and pasting;

[0113] By adjusting and editing the embedded code in the text editor, the view position and range can be adjusted and annotation information can be added;

[0114] Users can also add additional comments, instructions, or other text content to make the view content clearer and easier to read.

[0115] After editing, save the document to your local computer or cloud storage service;

[0116] Publish the document containing the map view through the document publishing channel, share the map view information contained in the document, and complete the reproduction of the current view of the map;

[0117] After publishing, the publisher or viewer can interact with the embedded map view, such as dragging, zooming, and clicking to display coordinate location information.

[0118] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention; therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is limited by the attached claims rather than the above description. Therefore, it is intended to include all changes within the meaning and scope of the equivalent elements of the claims in the present invention, and any figure marks in the claims should not be regarded as limiting the claims involved.

[0119] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for embedding a map view in a Web document publication, characterized in that: The user can embed the current view of the map in the database management tool in the text document through parameterized code snippets, and allow editing and adjustment to achieve the reproduction of the map view at the embedding location; The present invention mainly includes two parts: map view (A) and document publishing (B): The map view (A) is the map area and content that the user currently wants to embed, including the geographic location, map display area, and map annotation content; The map view (A) comprises: a map element (1), a location and range (2), and annotation information (3); The document publishing (B) is that the user embeds the parameter code of the current map view in the text document to achieve the reproduction of the view at the embedding location; The document publishing (B) includes: obtaining view parameters (4) and embedding the view (5).

2. A method for embedding a map view in a Web document publication, the steps further comprising: Step 1, determining the map element (1), querying the map element data stored in the database through a database management tool to determine the embedded map element; Step 2, determine the view position and range (2), adjust the position and zoom size of the map element in the map frame, and determine the latitude and longitude coordinates of the center point of the view and the zoom level; Step 3, adding annotation information (3), an optional step, allows the user to add customized information as needed, and draw annotations in multiple ways within the map frame, and the map service static cache server receives and replaces the local cache; Step 4, obtain view parameters (4), and generate code containing view parameters according to the command function used; Step 5, embed the view (5), embed the view parameter code into the text, format and edit the view through a text editor, and save and publish the document containing the view to achieve the reproduction of the map view in the document.

3. A method for embedding a map view in a Web document publication according to claim 1, characterized in that: The embedded map view is obtained from the database management tool.

4. A method for embedding a map view in a Web document publication according to claim 1, characterized in that: A user edits a text document using a text editor, which is an application that supports formatting and editing of embedded views.

5. A method for embedding a map view in a Web document publication according to claim 1, characterized in that: The embedded view can display coordinate location information by clicking, zooming, and dragging the map.

6. A method for embedding a map view in a Web document publication according to claim 2, characterized in that: Step 3 adds annotation information (3) to illustrate the location and range and provide additional information.

7. A method for embedding a map view in a Web document publication according to claim 2, characterized in that: The optional step in step 3 allows the user to supplement customized information as needed; The optional step, the user chooses whether to perform this step according to the needs; If implemented, the user is allowed to supplement customized information as needed; If not, skip this step.

8. A method for embedding a map view in a Web document publication according to claim 2, characterized in that: In step 3, multiple annotations are drawn in the map frame; Use editing tools to edit the current view and add point features, line features, polygon features, and rectangle features.

9. A method for embedding a map view in a Web document publication according to claim 2, characterized in that: The generation and acquisition of view parameters in step 4; Generate code containing view parameters based on the command function used; The code includes: map piece number, center point longitude and latitude coordinates, zoom level, and annotation information.

10. A method for embedding a map view in a Web document publication according to claim 2, characterized in that: The step 5 embeds the view (5), embeds the view parameter code into the text, and formats and edits the view using a text editor; By adjusting and editing the embedded code in the text editor, the size, position, and annotation information can be adjusted; You can add additional comments, instructions, or other text content to make the view content clearer and easier to read.

11. A method for embedding a map view in a Web document publication according to claim 2, characterized in that: The step 5 saves and publishes the document containing the map view, so as to realize the reproduction of the map view in the document; Save the document to your local computer or cloud storage service; Publish a document containing a map view through a document publishing channel to share the map view information contained in the document.

Citation Information

Cited By

  • Thematic charting processing method and system based on online data

    CN120953530A