Embed Baidu Maps in Web Pages with One Command

Baidu Map provides its own API, but it is complicated and troublesome to operate. I accidentally found a statement that can directly call the map as follows:

<img width="100%" height="450" src="http://api.map.baidu.com/staticimage?center=114.267823,34.806658&zoom=15&width=930&height=450&markers=114.267823,34.806658"/>

zoom is the map scale size

The parameters behind center and markers are geographic latitude and longitude

To get the geographic latitude and longitude you want, please refer to Baidu Map Generator:

http://api.map.baidu.com/lbsapi/creatmap/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325092773&siteId=291194637