| | |
| | | const myLandColors = ['#4150d8', '#28bf7e', '#ed7c2f', '#f2a93b', '#f9cf36', '#4a5bdc', '#4cd698', '#f4914e', '#fcb75b', '#ffe180', '#b6c2ff', '#96edc1'] |
| | | |
| | | const peopleColor1 = '#53eefe' |
| | | const peopleColor2 = '#8b25c1' |
| | | const peopleColor2 = '#f26390' |
| | | |
| | | export default { |
| | | inject: ['userInfo'], |
| | |
| | | data: ['户籍人口', '实有人口'], |
| | | textStyle: { |
| | | color: '#fff' |
| | | }, |
| | | formatter: function (name) { |
| | | var data = [] |
| | | if (name == '户籍人口') { |
| | | data = options.series[0].data |
| | | } else { |
| | | data = options.series[1].data |
| | | } |
| | | var total = 0 |
| | | for (var i = 0; i < data.length; i++) { |
| | | total += data[i].value |
| | | } |
| | | return `${name} (${total}人)` |
| | | } |
| | | }, |
| | | series: [ |
| | |
| | | |
| | | const homeCenter = this.$turf.centroid(this.$turf.polygon([polygon])).geometry.coordinates |
| | | |
| | | // this.$EventBus.$emit("toPosition", { |
| | | // siteJd: Number(homeCenter[0]) + 0.00006, |
| | | // siteWd: Number(homeCenter[1]) - 0.00030, |
| | | // siteGd: item.properties.szhfr + 240, |
| | | // sitePitch: -80, |
| | | // }) |
| | | this.$EventBus.$emit("toPosition", { |
| | | siteJd: Number(homeCenter[0]) + 0.00006, |
| | | siteWd: Number(homeCenter[1]) - 0.00030, |
| | | siteGd: item.properties.szhfr + 240, |
| | | sitePitch: -80, |
| | | siteGd: item.properties.szhfr + 40, |
| | | sitePitch: -45, |
| | | }) |
| | | this.$EventBus.$emit("clearHouse3D") |
| | | this.$EventBus.$emit("showThreeDimensions", { |