zoukankan      html  css  js  c++  java
  • 在百度地图上获得坐标范围的“银行”

    在百度地图上获得坐标范围的“银行”

    代码:

    js
     1     <style type="text/css">
     2     #allMap{
     3      400px;
     4       height:400px;
     5       overflow:hidden;
     6     }
     7     </style>
     8 </head>
     9 <body>
    10     <form id="form1" runat="server">
    11         <div id="allMap" style=" float:left;">
    12         </div>
    13     </form>
    14 
    15     <script src="http://api.map.baidu.com/api?v=1.3" type="text/javascript"></script>
    16 
    17      <script language="javascript" type="text/javascript">
    18     var map = new BMap.Map("allMap");
    19     var point = new BMap.Point(121.568004,31.218032);
    20     map.centerAndZoom(point,16);   
    21     map.enableScrollWheelZoom();
    22     var local = new BMap.LocalSearch(map,{renderOptions:{map:map}});
    23     local.searchInBounds("银行",map.getBounds());
    24     </script>
    25 </body>
  • 相关阅读:
    the Agiles Scrum Meeting 8
    the Agiles Scrum Meeting 7
    the Agiles Scrum Meeting 6
    项目使用说明——英文版
    第十次例会
    第九次例会
    第八次例会
    第六次例会
    第七次例会
    第五次例会
  • 原文地址:https://www.cnblogs.com/hfliyi/p/2686825.html
Copyright © 2011-2022 走看看