findHouseByMap 地图找房
本项目仅供学习参考
运用百度地图api仿照房天下地图找房
完成进度
* 缩放检索
* 拖拽检索
* 行政区域划分
项目图示
![Image text](https://github.com/Jefsky/findHouseByMap/blob/master/img/20200305145548.png)
![Image text](https://github.com/Jefsky/findHouseByMap/blob/master/img/20200305145548.png)
![Image text](https://github.com/Jefsky/findHouseByMap/blob/master/img/20200305145548.png)
百度地圖api
http://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference_3_0.html#a0b0
项目需求分析
房天下
PC
https://dg.esf.fang.com/map/
https://www.fang.com/hezuo_file/house/hezuo2014/search.htm
https://static.soufunimg.com/map/ditu/js/map.js?v=2019122701
alias: {
jquery: 'jquery/jquery-1.11.1.min',
BMapLib: 'bmap/BMapLib-min'
},
百度地图
关键js
https://static.soufunimg.com/map/ditu/js/??bmap/BMap.js?_2019122701,autodiv/autodiv.js?_2019122701,modules/esf/SFMap.js?_2019122701,modules/esf/dhjs.js?_2019122701,modules/esf/suggest.js?_2019122701
https://static.soufunimg.com/map/ditu/js/??modules/SFUtil.js?_2019122701,modules/esf/MapApi.js?_2019122701,lazyload/lazyload.js?_2019122701,scrollbar/scrollbar.js?_2019122701
接口
https://dg.esf.fang.com/map/?mapmode=y&district=100&subwayline=&subwaystation=&price=&room=&area=&towards=&floor=&hage=&equipment=&keyword=&comarea=17408&orderby=30&isyouhui=&x1=113.67489&y1=23.008064&x2=113.74388&y2=23.02433&newCode=&houseNum=&schoolDist=&schoolid=&ecshop=&groupedmode=4&PageNo=1&zoom=16&a=ajaxSearch&city=dg&searchtype=loupan
https://dg.esf.fang.com/map/?mapmode=y&district=&subwayline=&subwaystation=&price=&room=&area=&towards=&floor=&hage=&equipment=&keyword=&comarea=&orderby=30&isyouhui=&x1=113.584556&y1=23.049196&x2=113.722536&y2=23.083244&newCode=&houseNum=&schoolDist=&schoolid=&ecshop=&groupedmode=4&PageNo=1&zoom=15&a=ajaxSearch&city=dg&searchtype=
小程序
腾讯地图
APP
百度地图
链家
PC
<script>
ljConf = {
city_id: '441900',
city_abbr: 'dg',
city_name: '东莞',
channel: 'ditu',
feroot: '//s1.ljcdn.com/feroot/',
page: 'ditu_index',
pageConfig: {"ajaxroot":"https:\/\/ajax.api.lianjia.com\/","imAppid":"LIANJIA_WEB_20160624","imAppkey":"6dfdcee27d78b1107fceeca55d80b7bd"}
};
</script>
<script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=dASz7ubuSpHidP1oQWKuAK3q"></script>
https://www.idataapi.cn/product/detail/134
https://gitee.com/liu_peng_yu/Fast-LianJia-Crawler
百度地图
小程序
百度地图
APP
百度地图
Q房网
PC
<script src="/themes/default/scripts/frontend/map/MapAround.js?qv=1579095567676" type="text/javascript"></script>
Qfang.MapAround={_getPointByAngle:function(a,g,c,f){var b=111700;var e=Math.cos(f*2*Math.PI/360)*c/(b*Math.cos(g*2*Math.PI/360))+a;var d=Math.sin(f*2*Math.PI/360)*c/b+g;return new BMap.Point(e,d);}...
百度地图
小程序
腾讯地图
APP
百度地图
安居客
PC
百度地图 ## 小程序 腾讯地图 ## APP 高德地图 --- # 贝壳找房 ## PC https://dg.ke.com/ditu ## 小程序 腾讯地图 ## APP 百度地图 --- # 地图搜租房 https://house-map.cn/#/
著作权归作者所有。
商业转载请联系作者获得授权,非商业转载请注明出处。
作者:JefskyWong ——程序猿甜品店
链接:https://www.jefsky.com/blog/106
来源:https://www.jefsky.com/