var point = new BMap.Point(p0,p1); //循环生成新的地图点
var marker=new BMap.Marker(point); //按照地图点坐标生成标记
//marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
var label = new BMap.Label('名称:'+ markerArr[i].title ,{offset:new BMap.Size(20,-10)});
//marker.setLabel(label); var
txt
=
\
style='width:210px;font:bold
14px/16px
arial,simsun,sans-serif;margin:0;color:#cc5522;white-space:nowrap;overflow:hidden'>\+markerArr[i].title+\style='font-size:12px;lineheight:1.8em;'>\+markerArr[i].address+\;
addMarker(point, marker, txt); }
//点击 显示图标,和信息
function openMAP(x, y, name, content) {
// 百度地图API功能
var sContent = \style='width:210px;font:bold 14px/16px arial,simsun,sans-serif;margin:0;color:#cc5522;white-space:nowrap;overflow:hidden'>\+decodeURIComponent(name)+\style='font-size:12px;lineheight:1.8em;'>
\+decodeURIComponent(content)+\; 对象
var
地
址
:
地
址
:
var infoWindow = new BMap.InfoWindow(sContent); // 创建信息窗口
ggPoint
=
new
BMap.Point(decodeURIComponent(x),
decodeURIComponent(y));
var marker=new BMap.Marker(ggPoint); //按照地图点坐标生成标
map.centerAndZoom(ggPoint, 14); setTimeout(function ggPoint); }, 10);
// addMarker(ggPoint, marker, txt);
}
()
{
map.openInfoWindow(infoWindow,
//地图搜索
function opendetail() {
var name=$(\).val();
var local = new BMap.LocalSearch(map, { renderOptions:{map: map} });
local.search(name);
local.setPageCapacity(10);
document.getElementById(\).style.display \;
setTimeout(function () {
$(\).attr('style', 'display: none'); }, 2000); }
=