两个问题:
1.为什么我加载进去以后的地图,不能用鼠标拖动,放大,缩小呢?在哪设置下,请大家告诉我下2.地图标注,我现在要输入几十个经纬度,然后让它们全显示在地图上,要怎么做?

解决方案 »

  1.   

    refer : http://blog.csdn.net/guwei4037/article/details/7779258
      

  2.   

    百度地图API 有详细说明:http://developer.baidu.com/map/jsdemo.htm
      

  3.   

    1、 map.enableContinuousZoom();
        map.enableDragging();
    2、添加图层
     map.closeInfoWindow();
                map.clearOverlays();
                map.centerAndZoom(point, 16);
                er = new BMap.Marker(point);
                er.enableDragging();
                map.addOverlay(er);
                opts = {
                    width: 300,
                    height: 60,
                    title: companyName,
                    enableMessage: true,
                    message: "1"
                }
                infoWindow = new BMap.InfoWindow("地址:" + address, opts)
                map.openInfoWindow(infoWindow, point);