Home Website Building Knowledge Standard Post

Standard Post

How to Insert Baidu Map Location Information When Building Your Own Corporate Website

After building a corporate website with WordPress, you usually leave contact information and a map on the site. This article shares two methods to insert a Baidu map on your website. Method 1: Baidu Map Generator 1. Open the Baidu Map Generator page. Map address 2. Fill in the necessary information on the left, locate the position on the map...

Posted on December 28, 2019 About 2 minutes read
自己搭建企业网站怎么插入百度地图位置信息

Afterbuilding a corporate website using WordPressit's common to include contact information and a company map on the site. This article shares two methods for inserting a Baidu Map into a website.

Method One: Baidu Map Generator

1. Open the Baidu Map Generator webpage.

Map Address

2. Fill in the necessary information on the left, locate the position you want to display on the map, and click the 'Get Code' button.

百度地图调用

3. Copy the obtained map code and save it as an HTML file, for example, baidumap.html

百度地图调用

4. Upload the baidumap.html file to your website's root directory or another folder.

5. Insert the following code where you want to call the Baidu map on your webpage, and reference it.

<iframe src="baidumap.html" width="600" height="600" frameborder="0" scrolling="no"></iframe>

 

Method 2: Generate using the plugin API

The display effect is as follows:

百度地图调用

1. Install the WordPress Baidu Map plugin

Join Group to Download

Group 774633089 Shared Files > WordPress Plugins > CJ11.baidumap.zip

2. InBaidu Map Open Platformcreate an application, as shown below:

百度地图调用

3. Modify the built-in AK information in the plugin to the one you applied for.

百度地图调用

4. When publishing a post, click the map button to insert the map, as follows:

百度地图插入

When inserting a Baidu Map, you also need to fill in latitude and longitude coordinates, which you canget from here

Alright, these are the two methods to insert Baidu map location information on your website. If you have any questions, feel free to join the group for discussion.

2.5/5 - (2 votes)
Previous How to Generate HTML Cache Files for Your WordPress Website Without Using Plugins Continue reading content around the same timeline. Next Never Do This with Text on Your Website's Slideshow View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: