百度地图的静态地图

来源:互联网 发布:php网站修改教程 编辑:程序博客网 时间:2024/04/27 16:22

http://developer.baidu.com/map/static-1.htm

 

 

标注点

http://api.map.baidu.com/staticimage?center=116.403874,39.914889&width=400&height=300&zoom=11&markers=116.288891,40.004261|116.487812,40.017524|116.525756,39.967111|116.536105,39.872374|116.442968,39.797022|116.270494,39.851993|116.275093,39.935251|116.383177,39.923743&markerStyles=l,A|m,B|l,C|l,D|m,E|,|l,G|m,H

 

折线

http://api.map.baidu.com/staticimage?center=116.403874,39.914888&width=500&height=500&zoom=11&paths=116.288891,40.004261;116.487812,40.017524;116.525756,39.967111;116.536105,39.872373|116.442968,39.797022;116.270494,39.851993;116.275093,39.935251;116.383177,39.923743&pathStyles=0xff0000,5,1

 

标注点与折线的整合

http://api.map.baidu.com/staticimage?center=116.403874,39.914889&width=400&height=300&zoom=11&markers=116.288891,40.004261|116.487812,40.017524|116.525756,39.967111|116.536105,39.872374|116.442968,39.797022|116.270494,39.851993|116.275093,39.935251|116.383177,39.923743&markerStyles=l,A|m,B|l,C|l,D|m,E|,|l,G|m,H&paths=116.288891,40.004261;116.487812,40.017524;116.525756,39.967111;116.536105,39.872373|116.442968,39.797022;116.270494,39.851993;116.275093,39.935251;116.383177,39.923743&pathStyles=0xff0000,5,1

 

标注点、折线和标签的整合

http://api.map.baidu.com/staticimage?center=116.403874,39.914889&width=400&height=300&zoom=11&markers=116.288891,40.004261|116.487812,40.017524|116.525756,39.967111|116.536105,39.872374|116.442968,39.797022|116.270494,39.851993|116.275093,39.935251|116.383177,39.923743&markerStyles=l,A|m,B|l,C|l,D|m,E|,|l,G|m,H&paths=116.288891,40.004261;116.487812,40.017524;116.525756,39.967111;116.536105,39.872373|116.442968,39.797022;116.270494,39.851993;116.275093,39.935251;116.383177,39.923743&pathStyles=0xff0000,5,1&labels=116.487812,40.017524|116.442968,39.797022&labelStyles=小吃AAAA,1,14,0xFF0000,0xffffff,1|小吃BBBB,1,14,0xFF0000,0xffffff,1

 

 

标签:

http://api.map.baidu.com/staticimage?width=400&height=200&center=北京&labels=116.487812,40.017524|116.442968,39.797022&labelStyles=小吃AAAA1,14,0xFF0000,0xffffff,1

 

 

http://api.map.baidu.com/staticimage?width=800&height=600&center=北京&labels=116.487812,40.017524|116.442968,39.797022&labelStyles=小吃AAAA,1,14,0xFF0000,0xffffff,1|小吃BBBB,1,14,0xFF0000,0xffffff,1

 

center :中心点

width :宽度

height :高度

zoom :放大程度

 

markers :标注点

paths :路径点

pathStyles :路径的特点

labels :标签点

labelStyles :标签点的特征

 

http://api.map.baidu.com/staticimage?center=116.403874,39.914889&width=400&height=300&zoom=11&markers=116.288891,40.004261|116.487812,40.017524|116.525756,39.967111|116.536105,39.872374|116.442968,39.797022|116.270494,39.851993|116.275093,39.935251|116.383177,39.923743&paths=116.288891,40.004261;116.487812,40.017524;116.525756,39.967111;116.536105,39.872373|116.442968,39.797022;116.270494,39.851993;116.275093,39.935251;116.383177,39.923743&pathStyles=0x0000FF,5,1&labels=116.487812,40.017524|116.442968,39.797022&labelStyles=小吃AAAA,1,14,0xFF0000,0xffffff,1|小吃BBBB,1,14,0xFF0000,0xffffff,1

 

 

 

 

原创粉丝点击