先看效果图
https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/9c0b6ac1892d4f08ab997de3432f55bc~tplv-k3u1fbpfcp-watermark.image
https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/72ed70f6dc834a91944e4eda9948e313~tplv-k3u1fbpfcp-watermark.image
Obtain 3d buildings data in this area by drawing the area frame on the map to generate geojson, shp, 3dtiles format data
通过在地图上绘制区域框获取此区域内 3d buildings 数据 生成 geojson, shp, 3dtiles 格式数据
yarn command to install the project in local directory.mkdir dist and dist/shp in the project root directory (do not need to do this if the directory already exists).lnglatRange: Pass in the latitude and longitude of the upper left and lower right corners of the rectangle drawn on the map
zoom: map zoom
http://127.0.0.1:3000/getData?lnglatRange=lng,lat,lng1,lat1&zoom=15
yarn start in the project root directory, the retrieved data will be stored in the dist directory as a .geojson file.yarn 命令安装项目lnglatRange: 传入在地图上绘制矩形边框的矩形左上角和右下角经纬度
zoom: 地图缩放级别
http://127.0.0.1:3000/getData?lnglatRange=lng,lat,lng1,lat1&zoom=15
node index.js,爬取的 .geojson shp 3dtiles 数据将存储到 dist 目录下