附近车场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;
width: 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>

posted @ 2021-10-10 16:40  limitpjz  阅读(13)  评论(0编辑  收藏  举报