| | |
| | | removeTemporaryLayer(res) { |
| | | var entities = window.Viewer.entities._entities._array; |
| | | for (var i in entities) { |
| | | if (entities[i].id == res.id && entities[i].shpType == res.shpType) { |
| | | if (entities[i].id == res.id && entities[i]._shpType == res.shpType) { |
| | | window.Viewer.entities.remove(entities[i]) |
| | | } |
| | | } |
| | |
| | | res.far |
| | | ), |
| | | outline: true, |
| | | outlineWidth:res.width, |
| | | outlineWidth: res.width, |
| | | outlineColor: Cesium.Color.fromCssColorString( |
| | | res.outlineColor |
| | | ).withAlpha(res.outlineAlpha), |
| | |
| | | var coord = this.setCartesianToEightFour(val[i]) |
| | | geom.push(coord.lng, coord.lat) |
| | | } |
| | | debugger |
| | | return { |
| | | id: this.isedit ? res.id : (new Date()).getTime(), |
| | | cnName: res.name, |