1. Log in to Baidu Map api at:
2. Set your geographical location, taking Peking University as an example, as shown in the following figure:
3. Simply set the map function, or do not set it. The width and height of the map can be set according to the size of the network space.
4. Setting the map information label will help people who look at the map to see where they are at a glance and clearly mark the name of the place you want to mark.
5. Check the effect after setting:
6. The other two are also labeling tools, and the use method is the same as this one.
7. Get the password. All the above are set, and you can get the map code.
8. Copy the map code and insert the page source file of the website. If you want to insert a map in the background editing of the website, just click the background source code button and copy the map code directly.
2. How to embed a map with a map interface in html?
Set your geographical location, taking Peking University as an example, as shown in the following figure:
3. Simply set the map function, or do not set it. The width and height of the map can be set according to the size of the network space.
4. Setting the map information label will help people who look at the map to see where they are at a glance and clearly mark the name of the place you want to mark.
5. Check the effect after setting:
6. The other two are also labeling tools, and the use method is the same as this one.
7. Get the password. All the above are set, and you can get the map code.
8. Copy the map code and insert the page source file of the website. If you want to insert a map in the background editing of the website, just click the background source code button and copy the map code directly.
How to add a map in 3.HTML?
Web Map Service (WMS): Making a map by using data with geospatial location information, where the map is defined as a visual representation of geographic data, and the map itself is not data. Maps are usually represented in image format, such as PNG, GIF or JPEG, and sometimes in vector-based graphics, such as scalable vector graphics (SVG) or Web cg animation metafile (WebCGM). According to the OGC specification, a map service is a service dedicated to providing * * * map data, which is responsible for providing map images, information about elements of specified coordinate points and functional description information of the map service according to the request of the client program.
The WMS specification defines three interfaces (operations): GetCapabilities (get service capability), GetMap (get map) and GetFeatureInfo (get object information). GetMap is the core operation. GetCapabitities returns service-level metadata, which is a description of service information content and required parameters; GetMap returns a map image, and its geospatial reference and size parameters are clearly defined; GetFeatureInfo (optional) returns information about some special features displayed on the map. The specification also defines the World Wide Web Uniform Resource Locator (URL) syntax and the XML (Extensible Markup Language) representation of the service level metadata used to invoke the above operations.
4. How to put Google Maps on the website?
1. Open Google Maps and search for your company's address in the search box, as shown below.
Share links
3. Copy the code and insert it into html
5. How to call the api of Baidu Map in html?
First, open the Baidu map open platform.
Click the development menu and select Map Builder;
Switch cities;
Enter the name of a specific geographical location, such as Pingliang East Bus Station, and click Find to locate the latitude and longitude;
Click Set Map; Specific parameters can be set freely;
Add a mark, click the point mark icon with the mouse, then find the place with * * * in the map and click the left mouse button to mark it;
Enter the tag name and comments, and click Save;
Preview;
Click to get the code, and then copy the code; Paste the code into the newly created HTML and save it for use.