先看效果图 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 格式数据
1. Clone remote codes to local, then use the yarn
command to install the project in local directory.
2. Execute mkdir dist
and dist/3dtilesFiles 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
4. Execute yarn start
in the project root directory, the retrieved data will be stored in the dist
directory as a .geojson
file.
lnglatRange: 传入在地图上绘制矩形边框的矩形左上角和右下角经纬度
zoom: 地图缩放级别
http://127.0.0.1:3000/getData?lnglatRange=lng,lat,lng1,lat1&zoom=15