zoukankan      html  css  js  c++  java
  • 附近车场KPI

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title></title>
    <link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css"/>
    <style type="text/css">
    #panel {
    position: fixed;
    background-color: white;
    max-height: 90%;
    overflow-y: auto;
    top: 10px;
    right: 10px;
    280px;
    border-bottom: solid 1px silver;
    }
    </style>
    <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=a8c07f5e93700adc5452263d375f0033"></script>
    <script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
    </head>
    <body>
    <div id="container"></div>
    <div id="panel"></div>
    <script type="text/javascript">
    var map = new AMap.Map("container", {
    resizeEnable: true
    });
    AMap.service(["AMap.PlaceSearch"], function() {
    var placeSearch = new AMap.PlaceSearch({
    pageSize:20,
    type: '停车场',
    pageIndex: 1,
    map: map,
    panel: "panel"
    });

    var cpoint = [114.030639,22.669979];
    placeSearch.searchNearBy('', cpoint, 2000, function(status, result) {
    var a = result.poiList;
    var b="";
    for (var i = 0; i < a.pois.length; i++) {
    // alert(a.pois[i].location + "--" + a.pois[i].name);

    }
    });
    });
    </script>
    </body>
    </html>

  • 相关阅读:
    1058 A+B in Hogwarts (20)
    1046 Shortest Distance (20)
    1061 Dating (20)
    1041 Be Unique (20)
    1015 Reversible Primes (20)(20 分)
    pat 1027 Colors in Mars (20)
    PAT 1008 Elevator (20)
    操作系统 死锁
    Ajax的get方式传值 避免& 与= 号
    让IE浏览器支持CSS3表现
  • 原文地址:https://www.cnblogs.com/limitpjz/p/15389792.html
Copyright © 2011-2022 走看看