| | |
| | | layerName: 'gsgw', |
| | | source: gsgw, |
| | | color: DC.Color.BLUE, |
| | | height: 1, |
| | | height: 5, |
| | | }, |
| | | { |
| | | id: '6-2', |
| | |
| | | layerName: 'wsgw', |
| | | source: wsgw, |
| | | color: DC.Color.BLACK, |
| | | height: 2, |
| | | height: 10, |
| | | }, |
| | | { |
| | | id: '6-3', |
| | |
| | | layerName: 'rqgw', |
| | | source: rqgw, |
| | | color: DC.Color.RED, |
| | | height: 3, |
| | | height: 15, |
| | | }, |
| | | { |
| | | id: '6-4', |
| | |
| | | layerName: 'ysgw', |
| | | source: ysgw, |
| | | color: DC.Color.CYAN, |
| | | height: 4, |
| | | height: 20, |
| | | }, |
| | | |
| | | ] |
| | |
| | | addTileLayers[item.layerName] = new DC.VectorLayer(item.layerName) |
| | | window.$viewer.addLayer(addTileLayers[item.layerName]) |
| | | |
| | | function computeCircle (radius) { |
| | | function computeCircle(radius) { |
| | | var positions = [] |
| | | for (var i = 0; i < 1080; i++) { |
| | | var radians = DC.Math.toRadians(i) |
| | |
| | | |
| | | item.source.features.forEach(i => { |
| | | let polylineVolume = new DC.PolylineVolume( |
| | | i.geometry.coordinates.map(d => [d[0], d[1], 0.0].join(',')).join(';'), |
| | | i.geometry.coordinates.map(d => [d[0], d[1], item.height].join(',')).join(';'), |
| | | computeCircle(0.3) |
| | | ) |
| | | |