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.