结合百度地图api 根据经纬度描点(2)

2018-12-06 19:09

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); }

=


结合百度地图api 根据经纬度描点(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:集团公司设备管理办法

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: