文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit e89de876 by ren

图层的叠加(上传shp文件有bug)

parent 740c23d4
...@@ -296,11 +296,12 @@ ...@@ -296,11 +296,12 @@
method: 'get', method: 'get',
url: 'https://a.amap.com/jsapi_demos/static/geojson/chongqing.json', url: 'https://a.amap.com/jsapi_demos/static/geojson/chongqing.json',
}).then(geoJSON => { }).then(geoJSON => {
console.log(res.geoJSON)
for (var index = 0; index < res.geoJSON.length; index++){ for (var index = 0; index < res.geoJSON.length; index++){
var resItem = res.geoJSON[index] var resItem = res.geoJSON[index]
var name = resItem.name var name = resItem.name
var geoItem = resItem.geojson var geoItem = resItem.geojson
// console.log(geoItem) console.log(geoItem)
this.tableData.push({id: index, name: name}) this.tableData.push({id: index, name: name})
// console.log(geoItem.features[0].geometry.coordinates[0][0]); // console.log(geoItem.features[0].geometry.coordinates[0][0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment