1.获取当前的自动定位经纬;
2.在自动定位经纬度的点,添加10千米的圆形覆盖物;
3.爬取POI兴趣点的关键词;
10千米的圆形覆盖物
//半径10千米,可自行调整; var circle = new BMap.Circle(mPoint, 10000, { fillColor: "blue", strokeWeight: 1, fillOpacity: 0.3, strokeOpacity: 0.3 }); map.addOverlay(circle);
POI数据
//POI数据; var local = new BMap.LocalSearch(map, { renderOptions: {map: map, panel: "lists"}, pageCapacity: 10 }); local.search("医院");
lockdatav Done!