gis-map-universal 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gismap.umd.js +523 -503
- package/package.json +1 -1
package/gismap.umd.js
CHANGED
|
@@ -260707,6 +260707,89 @@ ol_echarts_esm_EChartsLayer.isObject = ol_echarts_esm_isObject;
|
|
|
260707
260707
|
/* harmony default export */ var ol_echarts_esm = (ol_echarts_esm_EChartsLayer);
|
|
260708
260708
|
//# sourceMappingURL=ol-echarts.esm.js.map
|
|
260709
260709
|
|
|
260710
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0e2c32fd-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/customPointLayer.vue?vue&type=template&id=3b5ee555&scoped=true
|
|
260711
|
+
var customPointLayervue_type_template_id_3b5ee555_scoped_true_render = function render() {
|
|
260712
|
+
var _vm = this,
|
|
260713
|
+
_c = _vm._self._c;
|
|
260714
|
+
return _vm.isshow ? _c('div', {
|
|
260715
|
+
style: {
|
|
260716
|
+
height: _vm.height,
|
|
260717
|
+
width: _vm.width
|
|
260718
|
+
}
|
|
260719
|
+
}, [_c('iframe', {
|
|
260720
|
+
staticStyle: {
|
|
260721
|
+
"width": "100%",
|
|
260722
|
+
"height": "100%",
|
|
260723
|
+
"border": "none"
|
|
260724
|
+
},
|
|
260725
|
+
attrs: {
|
|
260726
|
+
"src": _vm.popupAttr.popupUrl
|
|
260727
|
+
}
|
|
260728
|
+
})]) : _vm._e();
|
|
260729
|
+
};
|
|
260730
|
+
var customPointLayervue_type_template_id_3b5ee555_scoped_true_staticRenderFns = [];
|
|
260731
|
+
|
|
260732
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/customPointLayer.vue?vue&type=template&id=3b5ee555&scoped=true
|
|
260733
|
+
|
|
260734
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/customPointLayer.vue?vue&type=script&lang=js
|
|
260735
|
+
/* harmony default export */ var customPointLayervue_type_script_lang_js = ({
|
|
260736
|
+
name: '',
|
|
260737
|
+
components: {},
|
|
260738
|
+
created() {},
|
|
260739
|
+
mounted() {},
|
|
260740
|
+
props: {
|
|
260741
|
+
popupAttr: Object
|
|
260742
|
+
},
|
|
260743
|
+
data() {
|
|
260744
|
+
return {
|
|
260745
|
+
isshow: false,
|
|
260746
|
+
height: 0,
|
|
260747
|
+
width: 0
|
|
260748
|
+
};
|
|
260749
|
+
},
|
|
260750
|
+
methods: {
|
|
260751
|
+
fuyuan() {
|
|
260752
|
+
this.isshow = false;
|
|
260753
|
+
this.$nextTick(() => {
|
|
260754
|
+
let fontSize = Number(document.getElementsByTagName('html')[0].style.fontSize.split('px')[0]);
|
|
260755
|
+
let frameHeight = (this.popupAttr.popupHeight - 110) / 192 * fontSize;
|
|
260756
|
+
let frameWidth = (this.popupAttr.popupWidth - 30) / 192 * fontSize;
|
|
260757
|
+
this.height = frameHeight + 'px';
|
|
260758
|
+
this.width = frameWidth + 'px';
|
|
260759
|
+
this.isshow = true;
|
|
260760
|
+
});
|
|
260761
|
+
},
|
|
260762
|
+
destroyFlv() {
|
|
260763
|
+
this.isshow = false;
|
|
260764
|
+
}
|
|
260765
|
+
},
|
|
260766
|
+
computed: {},
|
|
260767
|
+
mounted() {
|
|
260768
|
+
this.fuyuan();
|
|
260769
|
+
}
|
|
260770
|
+
});
|
|
260771
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/customPointLayer.vue?vue&type=script&lang=js
|
|
260772
|
+
/* harmony default export */ var component_customPointLayervue_type_script_lang_js = (customPointLayervue_type_script_lang_js);
|
|
260773
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/customPointLayer.vue
|
|
260774
|
+
|
|
260775
|
+
|
|
260776
|
+
|
|
260777
|
+
|
|
260778
|
+
|
|
260779
|
+
/* normalize component */
|
|
260780
|
+
|
|
260781
|
+
var customPointLayer_component = normalizeComponent(
|
|
260782
|
+
component_customPointLayervue_type_script_lang_js,
|
|
260783
|
+
customPointLayervue_type_template_id_3b5ee555_scoped_true_render,
|
|
260784
|
+
customPointLayervue_type_template_id_3b5ee555_scoped_true_staticRenderFns,
|
|
260785
|
+
false,
|
|
260786
|
+
null,
|
|
260787
|
+
"3b5ee555",
|
|
260788
|
+
null
|
|
260789
|
+
|
|
260790
|
+
)
|
|
260791
|
+
|
|
260792
|
+
/* harmony default export */ var customPointLayer = (customPointLayer_component.exports);
|
|
260710
260793
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0e2c32fd-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/trafficEventLayers/EmergencyLayer.vue?vue&type=template&id=c96d8022&scoped=true
|
|
260711
260794
|
var EmergencyLayervue_type_template_id_c96d8022_scoped_true_render = function render() {
|
|
260712
260795
|
var _vm = this,
|
|
@@ -263570,458 +263653,78 @@ var TravelPointLayer_component = normalizeComponent(
|
|
|
263570
263653
|
)
|
|
263571
263654
|
|
|
263572
263655
|
/* harmony default export */ var TravelPointLayer = (TravelPointLayer_component.exports);
|
|
263573
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0e2c32fd-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/
|
|
263574
|
-
var
|
|
263656
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0e2c32fd-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/shippingLayers/InRiverCapacityLayer.vue?vue&type=template&id=80e9dcca&scoped=true
|
|
263657
|
+
var InRiverCapacityLayervue_type_template_id_80e9dcca_scoped_true_render = function render() {
|
|
263575
263658
|
var _vm = this,
|
|
263576
263659
|
_c = _vm._self._c;
|
|
263577
263660
|
return _c('div', {
|
|
263578
263661
|
staticClass: "Popup"
|
|
263579
263662
|
}, [_c('div', {
|
|
263580
|
-
staticClass: "
|
|
263581
|
-
}, [
|
|
263582
|
-
|
|
263663
|
+
staticClass: "infoBox"
|
|
263664
|
+
}, [_c('div', {
|
|
263665
|
+
staticClass: "flexbox"
|
|
263666
|
+
}, [_c('div', {
|
|
263667
|
+
staticClass: "flexBox-item"
|
|
263668
|
+
}, [_c('span', {
|
|
263669
|
+
staticClass: "item-title"
|
|
263670
|
+
}, [_vm._v("港口名称:")]), _c('span', {
|
|
263583
263671
|
staticStyle: {
|
|
263584
|
-
"
|
|
263585
|
-
"width": "100%"
|
|
263672
|
+
"width": "81%"
|
|
263586
263673
|
}
|
|
263587
|
-
}), _c('div', {
|
|
263588
|
-
staticClass: "
|
|
263589
|
-
}, [_vm._v("公共交通客运分析:")]), _c('div', {
|
|
263590
|
-
staticClass: "data-list"
|
|
263591
|
-
}, [_vm._m(0), _c('div', {
|
|
263592
|
-
staticClass: "list-content"
|
|
263593
|
-
}, _vm._l(_vm.infrastructureList, function (item, index) {
|
|
263594
|
-
return _c('div', {
|
|
263595
|
-
key: index,
|
|
263596
|
-
staticClass: "list-item"
|
|
263597
|
-
}, [_c('div', {
|
|
263598
|
-
staticClass: "list-cell"
|
|
263599
|
-
}, [_vm._v(_vm._s(item.transportName))]), _c('div', {
|
|
263600
|
-
staticClass: "list-cell"
|
|
263601
|
-
}, [_vm._v(_vm._s(item.infrastructureCount))]), _c('div', {
|
|
263602
|
-
staticClass: "list-cell remark",
|
|
263603
|
-
on: {
|
|
263604
|
-
"mouseenter": function ($event) {
|
|
263605
|
-
return _vm.showTooltip($event, item.remark);
|
|
263606
|
-
},
|
|
263607
|
-
"mouseleave": _vm.hideTooltip
|
|
263608
|
-
}
|
|
263609
|
-
}, [_vm._v(" " + _vm._s(_vm.truncateText(item.remark, 15)) + " ")])]);
|
|
263610
|
-
}), 0)])]);
|
|
263611
|
-
};
|
|
263612
|
-
var CityAreaLayervue_type_template_id_267f992a_scoped_true_staticRenderFns = [function () {
|
|
263613
|
-
var _vm = this,
|
|
263614
|
-
_c = _vm._self._c;
|
|
263615
|
-
return _c('div', {
|
|
263616
|
-
staticClass: "list-header"
|
|
263674
|
+
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.portName))])])]), _c('div', {
|
|
263675
|
+
staticClass: "flexbox"
|
|
263617
263676
|
}, [_c('div', {
|
|
263618
|
-
staticClass: "
|
|
263619
|
-
}, [
|
|
263620
|
-
staticClass: "
|
|
263621
|
-
}, [_vm._v("
|
|
263622
|
-
|
|
263623
|
-
|
|
263624
|
-
}
|
|
263625
|
-
|
|
263626
|
-
|
|
263627
|
-
|
|
263628
|
-
|
|
263629
|
-
|
|
263630
|
-
|
|
263631
|
-
|
|
263632
|
-
|
|
263633
|
-
|
|
263634
|
-
}
|
|
263635
|
-
|
|
263636
|
-
|
|
263637
|
-
|
|
263638
|
-
|
|
263639
|
-
},
|
|
263640
|
-
|
|
263641
|
-
|
|
263642
|
-
|
|
263643
|
-
|
|
263644
|
-
|
|
263645
|
-
|
|
263646
|
-
|
|
263647
|
-
|
|
263648
|
-
|
|
263649
|
-
|
|
263650
|
-
|
|
263651
|
-
|
|
263652
|
-
|
|
263653
|
-
|
|
263654
|
-
|
|
263655
|
-
|
|
263656
|
-
|
|
263657
|
-
|
|
263658
|
-
});
|
|
263659
|
-
}
|
|
263660
|
-
// 公共交通客运分析
|
|
263661
|
-
function gettransportInfoList(data) {
|
|
263662
|
-
return requestDSQ({
|
|
263663
|
-
url: "/prod-api/public/SERVICE_003_011/query/transportInfo/getInfo",
|
|
263664
|
-
method: "post",
|
|
263665
|
-
data
|
|
263666
|
-
});
|
|
263667
|
-
}
|
|
263668
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=script&lang=js
|
|
263677
|
+
staticClass: "flexBox-item"
|
|
263678
|
+
}, [_c('span', {
|
|
263679
|
+
staticClass: "item-title"
|
|
263680
|
+
}, [_vm._v("年吞吐量:")]), _c('span', {
|
|
263681
|
+
staticStyle: {
|
|
263682
|
+
"width": "81%"
|
|
263683
|
+
}
|
|
263684
|
+
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.annualThroughput))])])]), _c('div', {
|
|
263685
|
+
staticClass: "flexbox"
|
|
263686
|
+
}, [_c('div', {
|
|
263687
|
+
staticClass: "flexBox-item"
|
|
263688
|
+
}, [_c('span', {
|
|
263689
|
+
staticClass: "item-title"
|
|
263690
|
+
}, [_vm._v("港口布局:")]), _c('span', {
|
|
263691
|
+
staticStyle: {
|
|
263692
|
+
"width": "81%"
|
|
263693
|
+
}
|
|
263694
|
+
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.layout))])])]), _c('div', {
|
|
263695
|
+
staticClass: "flexbox"
|
|
263696
|
+
}, [_c('div', {
|
|
263697
|
+
staticClass: "flexBox-item"
|
|
263698
|
+
}, [_c('span', {
|
|
263699
|
+
staticClass: "item-title"
|
|
263700
|
+
}, [_vm._v("航线网络:")]), _c('span', {
|
|
263701
|
+
staticStyle: {
|
|
263702
|
+
"width": "81%"
|
|
263703
|
+
}
|
|
263704
|
+
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.shippingRoutes))])])]), _c('div', {
|
|
263705
|
+
staticClass: "flexbox"
|
|
263706
|
+
}, [_c('div', {
|
|
263707
|
+
staticClass: "flexBox-item"
|
|
263708
|
+
}, [_c('span', {
|
|
263709
|
+
staticClass: "item-title"
|
|
263710
|
+
}, [_vm._v("主要货类:")]), _c('span', {
|
|
263711
|
+
staticStyle: {
|
|
263712
|
+
"width": "81%"
|
|
263713
|
+
}
|
|
263714
|
+
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.mainCargo))])])])])]);
|
|
263715
|
+
};
|
|
263716
|
+
var InRiverCapacityLayervue_type_template_id_80e9dcca_scoped_true_staticRenderFns = [];
|
|
263669
263717
|
|
|
263718
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/shippingLayers/InRiverCapacityLayer.vue?vue&type=template&id=80e9dcca&scoped=true
|
|
263670
263719
|
|
|
263671
|
-
|
|
263672
|
-
|
|
263720
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/shippingLayers/InRiverCapacityLayer.vue?vue&type=script&lang=js
|
|
263721
|
+
/* harmony default export */ var InRiverCapacityLayervue_type_script_lang_js = ({
|
|
263722
|
+
name: "popup",
|
|
263673
263723
|
props: {
|
|
263674
263724
|
popupAttr: Object
|
|
263675
263725
|
},
|
|
263676
263726
|
data() {
|
|
263677
|
-
return {
|
|
263678
|
-
infrastructureList: [],
|
|
263679
|
-
currentTooltip: null,
|
|
263680
|
-
myChart: null // 图表实例引用
|
|
263681
|
-
};
|
|
263682
|
-
},
|
|
263683
|
-
created() {},
|
|
263684
|
-
mounted() {
|
|
263685
|
-
this.fuyuanv();
|
|
263686
|
-
},
|
|
263687
|
-
beforeDestroy() {
|
|
263688
|
-
// 清理提示框
|
|
263689
|
-
this.hideTooltip();
|
|
263690
|
-
// 销毁图表实例
|
|
263691
|
-
if (this.myChart) {
|
|
263692
|
-
this.myChart.dispose();
|
|
263693
|
-
this.myChart = null;
|
|
263694
|
-
}
|
|
263695
|
-
},
|
|
263696
|
-
methods: {
|
|
263697
|
-
fuyuanv() {
|
|
263698
|
-
this.infrastructureList = [];
|
|
263699
|
-
this.currentTooltip = null;
|
|
263700
|
-
// 销毁旧的图表实例
|
|
263701
|
-
if (this.myChart) {
|
|
263702
|
-
this.myChart.dispose();
|
|
263703
|
-
this.myChart = null;
|
|
263704
|
-
}
|
|
263705
|
-
this.fetchInfrastructureData();
|
|
263706
|
-
this.initEcharts();
|
|
263707
|
-
},
|
|
263708
|
-
// 截断文本并添加省略号
|
|
263709
|
-
truncateText(text, maxLength = 15) {
|
|
263710
|
-
if (!text || text.length <= maxLength) {
|
|
263711
|
-
return text;
|
|
263712
|
-
}
|
|
263713
|
-
return text.substring(0, maxLength) + "...";
|
|
263714
|
-
},
|
|
263715
|
-
// 显示自定义提示框
|
|
263716
|
-
showTooltip(event, content) {
|
|
263717
|
-
// 如果内容长度不超过限制,不显示提示框
|
|
263718
|
-
if (content.length <= 15) return;
|
|
263719
|
-
|
|
263720
|
-
// 移除旧的提示框
|
|
263721
|
-
this.hideTooltip();
|
|
263722
|
-
|
|
263723
|
-
// 创建新的提示框
|
|
263724
|
-
const tooltip = document.createElement("div");
|
|
263725
|
-
tooltip.className = "custom-tooltip";
|
|
263726
|
-
tooltip.textContent = content;
|
|
263727
|
-
tooltip.style.position = "fixed";
|
|
263728
|
-
tooltip.style.zIndex = "9999";
|
|
263729
|
-
tooltip.style.background = "rgba(0, 0, 0, 0.9)";
|
|
263730
|
-
tooltip.style.color = "#fff";
|
|
263731
|
-
tooltip.style.padding = "8px";
|
|
263732
|
-
tooltip.style.borderRadius = "4px";
|
|
263733
|
-
tooltip.style.fontSize = "12px";
|
|
263734
|
-
tooltip.style.maxWidth = "300px";
|
|
263735
|
-
tooltip.style.wordBreak = "break-word";
|
|
263736
|
-
|
|
263737
|
-
// 设置位置,稍微偏移鼠标位置
|
|
263738
|
-
const rect = event.target.getBoundingClientRect();
|
|
263739
|
-
tooltip.style.left = event.clientX + 10 + "px";
|
|
263740
|
-
tooltip.style.top = event.clientY - 10 + "px";
|
|
263741
|
-
document.body.appendChild(tooltip);
|
|
263742
|
-
this.currentTooltip = tooltip;
|
|
263743
|
-
},
|
|
263744
|
-
// 隐藏提示框
|
|
263745
|
-
hideTooltip() {
|
|
263746
|
-
if (this.currentTooltip && this.currentTooltip.parentNode) {
|
|
263747
|
-
document.body.removeChild(this.currentTooltip);
|
|
263748
|
-
this.currentTooltip = null;
|
|
263749
|
-
}
|
|
263750
|
-
},
|
|
263751
|
-
// 获取基础设施数据
|
|
263752
|
-
fetchInfrastructureData() {
|
|
263753
|
-
let param = {
|
|
263754
|
-
sysid: "brain_cockpit",
|
|
263755
|
-
service_code: "API_003_035_006",
|
|
263756
|
-
parameters: {
|
|
263757
|
-
cityCode: this.popupAttr.adcode
|
|
263758
|
-
}
|
|
263759
|
-
};
|
|
263760
|
-
getpublicTrfList(param).then(response => {
|
|
263761
|
-
if (response.code === 200 && response.data) {
|
|
263762
|
-
this.infrastructureList = response.data;
|
|
263763
|
-
}
|
|
263764
|
-
}).catch(error => {
|
|
263765
|
-
console.error("获取基础设施数据失败:", error);
|
|
263766
|
-
});
|
|
263767
|
-
},
|
|
263768
|
-
initEcharts() {
|
|
263769
|
-
let param = {
|
|
263770
|
-
sysid: "brain_cockpit",
|
|
263771
|
-
service_code: "API_003_035_005",
|
|
263772
|
-
parameters: {
|
|
263773
|
-
transportId: this.popupAttr.adcode
|
|
263774
|
-
}
|
|
263775
|
-
};
|
|
263776
|
-
gettransportInfoList(param).then(response => {
|
|
263777
|
-
if (response.code === 200 && response.data) {
|
|
263778
|
-
const data = response.data;
|
|
263779
|
-
const values = [parseFloat(data.cityArea),
|
|
263780
|
-
// 面积
|
|
263781
|
-
parseFloat(data.population),
|
|
263782
|
-
// 常驻人口
|
|
263783
|
-
parseFloat(data.highspeedMileage),
|
|
263784
|
-
// 高速铁路
|
|
263785
|
-
parseFloat(data.railwayMileage),
|
|
263786
|
-
// 铁路
|
|
263787
|
-
parseFloat(data.roadMileage),
|
|
263788
|
-
// 公路
|
|
263789
|
-
parseFloat(data.freewayMileage) // 高速公路
|
|
263790
|
-
];
|
|
263791
|
-
// 初始化或复用图表实例
|
|
263792
|
-
if (!this.myChart) {
|
|
263793
|
-
this.myChart = echarts_init(this.$refs.etCharts);
|
|
263794
|
-
} else {
|
|
263795
|
-
this.myChart.resize();
|
|
263796
|
-
}
|
|
263797
|
-
let myChart = this.myChart;
|
|
263798
|
-
var legendData = ["城市综合评估"];
|
|
263799
|
-
var indicator = [{
|
|
263800
|
-
text: "面积",
|
|
263801
|
-
max: 17192
|
|
263802
|
-
}, {
|
|
263803
|
-
text: "常驻人口",
|
|
263804
|
-
max: 1101.8
|
|
263805
|
-
}, {
|
|
263806
|
-
text: "高速铁路",
|
|
263807
|
-
max: 460
|
|
263808
|
-
}, {
|
|
263809
|
-
text: "铁路",
|
|
263810
|
-
max: 835
|
|
263811
|
-
}, {
|
|
263812
|
-
text: "公路",
|
|
263813
|
-
max: 33072.2
|
|
263814
|
-
}, {
|
|
263815
|
-
text: "高速公路",
|
|
263816
|
-
max: 908.6
|
|
263817
|
-
}];
|
|
263818
|
-
var dataArr = [{
|
|
263819
|
-
value: values,
|
|
263820
|
-
name: legendData[0],
|
|
263821
|
-
itemStyle: {
|
|
263822
|
-
normal: {
|
|
263823
|
-
lineStyle: {
|
|
263824
|
-
color: "#4BFFFC"
|
|
263825
|
-
},
|
|
263826
|
-
shadowColor: "#4BFFFC",
|
|
263827
|
-
shadowBlur: 10
|
|
263828
|
-
}
|
|
263829
|
-
},
|
|
263830
|
-
areaStyle: {
|
|
263831
|
-
normal: {
|
|
263832
|
-
color: {
|
|
263833
|
-
type: "linear",
|
|
263834
|
-
x: 0,
|
|
263835
|
-
y: 0,
|
|
263836
|
-
x2: 1,
|
|
263837
|
-
y2: 1,
|
|
263838
|
-
colorStops: [{
|
|
263839
|
-
offset: 0,
|
|
263840
|
-
color: "#4BFFFC"
|
|
263841
|
-
}, {
|
|
263842
|
-
offset: 0.5,
|
|
263843
|
-
color: "rgba(0,0,0,0)"
|
|
263844
|
-
}, {
|
|
263845
|
-
offset: 1,
|
|
263846
|
-
color: "#4BFFFC"
|
|
263847
|
-
}],
|
|
263848
|
-
globalCoord: false
|
|
263849
|
-
},
|
|
263850
|
-
opacity: 1
|
|
263851
|
-
}
|
|
263852
|
-
}
|
|
263853
|
-
}];
|
|
263854
|
-
var colorArr = ["#4BFFFC"];
|
|
263855
|
-
let option = {
|
|
263856
|
-
color: colorArr,
|
|
263857
|
-
tooltip: {
|
|
263858
|
-
trigger: "item",
|
|
263859
|
-
position: "inside",
|
|
263860
|
-
backgroundColor: "rgba(0, 0, 0, 0.7)",
|
|
263861
|
-
borderColor: "rgba(75, 255, 252, 0.3)",
|
|
263862
|
-
borderWidth: 1,
|
|
263863
|
-
textStyle: {
|
|
263864
|
-
color: "#fff",
|
|
263865
|
-
fontSize: 10
|
|
263866
|
-
},
|
|
263867
|
-
padding: 5
|
|
263868
|
-
},
|
|
263869
|
-
radar: {
|
|
263870
|
-
center: ["50%", "50%"],
|
|
263871
|
-
radius: ["0%", "60%"],
|
|
263872
|
-
name: {
|
|
263873
|
-
textStyle: {
|
|
263874
|
-
color: "#fff",
|
|
263875
|
-
fontSize: 10
|
|
263876
|
-
},
|
|
263877
|
-
padding: [0, 0, 0, 0]
|
|
263878
|
-
},
|
|
263879
|
-
indicator: indicator,
|
|
263880
|
-
splitArea: {
|
|
263881
|
-
show: true,
|
|
263882
|
-
areaStyle: {
|
|
263883
|
-
color: ["rgba(255,255,255,0)", "rgba(255,255,255,0)"]
|
|
263884
|
-
}
|
|
263885
|
-
},
|
|
263886
|
-
axisLine: {
|
|
263887
|
-
lineStyle: {
|
|
263888
|
-
color: "#153269",
|
|
263889
|
-
width: 0.5
|
|
263890
|
-
}
|
|
263891
|
-
},
|
|
263892
|
-
splitLine: {
|
|
263893
|
-
lineStyle: {
|
|
263894
|
-
color: "#3583b0",
|
|
263895
|
-
width: 0.8
|
|
263896
|
-
}
|
|
263897
|
-
}
|
|
263898
|
-
},
|
|
263899
|
-
series: [{
|
|
263900
|
-
type: "radar",
|
|
263901
|
-
symbolSize: 3,
|
|
263902
|
-
lineStyle: {
|
|
263903
|
-
width: 1
|
|
263904
|
-
},
|
|
263905
|
-
areaStyle: {
|
|
263906
|
-
opacity: 0.7
|
|
263907
|
-
},
|
|
263908
|
-
data: dataArr
|
|
263909
|
-
}]
|
|
263910
|
-
};
|
|
263911
|
-
myChart.setOption(option);
|
|
263912
|
-
}
|
|
263913
|
-
});
|
|
263914
|
-
}
|
|
263915
|
-
},
|
|
263916
|
-
watch: {
|
|
263917
|
-
popupAttr: {
|
|
263918
|
-
handler(newVal, oldVal) {
|
|
263919
|
-
if (newVal && newVal.adcode && newVal.adcode !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.adcode)) {
|
|
263920
|
-
this.fuyuanv();
|
|
263921
|
-
}
|
|
263922
|
-
},
|
|
263923
|
-
deep: true
|
|
263924
|
-
}
|
|
263925
|
-
}
|
|
263926
|
-
});
|
|
263927
|
-
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=script&lang=js
|
|
263928
|
-
/* harmony default export */ var corridorLayers_CityAreaLayervue_type_script_lang_js = (CityAreaLayervue_type_script_lang_js);
|
|
263929
|
-
// EXTERNAL MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=style&index=0&id=267f992a&prod&scoped=true&lang=css
|
|
263930
|
-
var CityAreaLayervue_type_style_index_0_id_267f992a_prod_scoped_true_lang_css = __webpack_require__("728a");
|
|
263931
|
-
|
|
263932
|
-
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue
|
|
263933
|
-
|
|
263934
|
-
|
|
263935
|
-
|
|
263936
|
-
|
|
263937
|
-
|
|
263938
|
-
|
|
263939
|
-
/* normalize component */
|
|
263940
|
-
|
|
263941
|
-
var CityAreaLayer_component = normalizeComponent(
|
|
263942
|
-
corridorLayers_CityAreaLayervue_type_script_lang_js,
|
|
263943
|
-
CityAreaLayervue_type_template_id_267f992a_scoped_true_render,
|
|
263944
|
-
CityAreaLayervue_type_template_id_267f992a_scoped_true_staticRenderFns,
|
|
263945
|
-
false,
|
|
263946
|
-
null,
|
|
263947
|
-
"267f992a",
|
|
263948
|
-
null
|
|
263949
|
-
|
|
263950
|
-
)
|
|
263951
|
-
|
|
263952
|
-
/* harmony default export */ var CityAreaLayer = (CityAreaLayer_component.exports);
|
|
263953
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0e2c32fd-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/shippingLayers/InRiverCapacityLayer.vue?vue&type=template&id=80e9dcca&scoped=true
|
|
263954
|
-
var InRiverCapacityLayervue_type_template_id_80e9dcca_scoped_true_render = function render() {
|
|
263955
|
-
var _vm = this,
|
|
263956
|
-
_c = _vm._self._c;
|
|
263957
|
-
return _c('div', {
|
|
263958
|
-
staticClass: "Popup"
|
|
263959
|
-
}, [_c('div', {
|
|
263960
|
-
staticClass: "infoBox"
|
|
263961
|
-
}, [_c('div', {
|
|
263962
|
-
staticClass: "flexbox"
|
|
263963
|
-
}, [_c('div', {
|
|
263964
|
-
staticClass: "flexBox-item"
|
|
263965
|
-
}, [_c('span', {
|
|
263966
|
-
staticClass: "item-title"
|
|
263967
|
-
}, [_vm._v("港口名称:")]), _c('span', {
|
|
263968
|
-
staticStyle: {
|
|
263969
|
-
"width": "81%"
|
|
263970
|
-
}
|
|
263971
|
-
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.portName))])])]), _c('div', {
|
|
263972
|
-
staticClass: "flexbox"
|
|
263973
|
-
}, [_c('div', {
|
|
263974
|
-
staticClass: "flexBox-item"
|
|
263975
|
-
}, [_c('span', {
|
|
263976
|
-
staticClass: "item-title"
|
|
263977
|
-
}, [_vm._v("年吞吐量:")]), _c('span', {
|
|
263978
|
-
staticStyle: {
|
|
263979
|
-
"width": "81%"
|
|
263980
|
-
}
|
|
263981
|
-
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.annualThroughput))])])]), _c('div', {
|
|
263982
|
-
staticClass: "flexbox"
|
|
263983
|
-
}, [_c('div', {
|
|
263984
|
-
staticClass: "flexBox-item"
|
|
263985
|
-
}, [_c('span', {
|
|
263986
|
-
staticClass: "item-title"
|
|
263987
|
-
}, [_vm._v("港口布局:")]), _c('span', {
|
|
263988
|
-
staticStyle: {
|
|
263989
|
-
"width": "81%"
|
|
263990
|
-
}
|
|
263991
|
-
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.layout))])])]), _c('div', {
|
|
263992
|
-
staticClass: "flexbox"
|
|
263993
|
-
}, [_c('div', {
|
|
263994
|
-
staticClass: "flexBox-item"
|
|
263995
|
-
}, [_c('span', {
|
|
263996
|
-
staticClass: "item-title"
|
|
263997
|
-
}, [_vm._v("航线网络:")]), _c('span', {
|
|
263998
|
-
staticStyle: {
|
|
263999
|
-
"width": "81%"
|
|
264000
|
-
}
|
|
264001
|
-
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.shippingRoutes))])])]), _c('div', {
|
|
264002
|
-
staticClass: "flexbox"
|
|
264003
|
-
}, [_c('div', {
|
|
264004
|
-
staticClass: "flexBox-item"
|
|
264005
|
-
}, [_c('span', {
|
|
264006
|
-
staticClass: "item-title"
|
|
264007
|
-
}, [_vm._v("主要货类:")]), _c('span', {
|
|
264008
|
-
staticStyle: {
|
|
264009
|
-
"width": "81%"
|
|
264010
|
-
}
|
|
264011
|
-
}, [_vm._v(_vm._s(_vm.popupAttr.otherInfo.mainCargo))])])])])]);
|
|
264012
|
-
};
|
|
264013
|
-
var InRiverCapacityLayervue_type_template_id_80e9dcca_scoped_true_staticRenderFns = [];
|
|
264014
|
-
|
|
264015
|
-
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/shippingLayers/InRiverCapacityLayer.vue?vue&type=template&id=80e9dcca&scoped=true
|
|
264016
|
-
|
|
264017
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/shippingLayers/InRiverCapacityLayer.vue?vue&type=script&lang=js
|
|
264018
|
-
/* harmony default export */ var InRiverCapacityLayervue_type_script_lang_js = ({
|
|
264019
|
-
name: "popup",
|
|
264020
|
-
props: {
|
|
264021
|
-
popupAttr: Object
|
|
264022
|
-
},
|
|
264023
|
-
data() {
|
|
264024
|
-
return {};
|
|
263727
|
+
return {};
|
|
264025
263728
|
},
|
|
264026
263729
|
created() {},
|
|
264027
263730
|
mounted() {},
|
|
@@ -264763,6 +264466,7 @@ function layersApi_getCongestionEventLayerData() {
|
|
|
264763
264466
|
});
|
|
264764
264467
|
}
|
|
264765
264468
|
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/js/initBaseLayers.js
|
|
264469
|
+
// 自定义打点
|
|
264766
264470
|
// 交通事件--事件通用
|
|
264767
264471
|
// 交通事件--拥堵事件
|
|
264768
264472
|
// 交通事件--服务区异常
|
|
@@ -264778,11 +264482,10 @@ function layersApi_getCongestionEventLayerData() {
|
|
|
264778
264482
|
// 附属设备--水运相机
|
|
264779
264483
|
// 附属设备--高速相机
|
|
264780
264484
|
// 旅游走廊
|
|
264781
|
-
// 城市区域
|
|
264782
264485
|
// 重大活动--活动地点
|
|
264783
264486
|
/* harmony default export */ var js_initBaseLayers = ({data(){return{lastHoverFeature:null,// 记录上一次悬停的要素
|
|
264784
|
-
isCluster:false,eventCluster:true,echartslayer:null,congestedRoadLayer:null,tiandituLayer:null,darkUrl:"http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?",// lightUrl: "https://service.sdmap.gov.cn/tileservice/
|
|
264785
|
-
|
|
264487
|
+
isCluster:false,eventCluster:true,echartslayer:null,congestedRoadLayer:null,tiandituLayer:null,darkUrl:"http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?",lightUrl:"https://service.sdmap.gov.cn/tileservice/dsfg_qsb?",// lightUrl: "https://service.sdmap.gov.cn/tileservice/sdpubmap?",
|
|
264488
|
+
geoJSONUrl:"/china_full.json",sdAreaUrl:"/sdArea.json",subwayLineUrl:"/ditieline.json",darkFillColor:"#1b2639",lightFillColor:"#eeeee9",darkStrokeColor:"#3578E0",lightStrokeColor:"#b4b4b1",tiandituKey:"aaaea01715112ff36a1d2a25f345ba4f"// 天地图密钥2
|
|
264786
264489
|
};},methods:{initBaseLayers(){let that=this;// 加载WMTS
|
|
264787
264490
|
// let resolutions = [
|
|
264788
264491
|
// 0.010986328125, 0.0054931640625, 0.00274658283125, 0.001373291815625,
|
|
@@ -264838,17 +264541,34 @@ style:function(feature){return new Style["default"]({fill:new Fill["default"]({c
|
|
|
264838
264541
|
width:1// 边界线宽度
|
|
264839
264542
|
})});}});this.map.addLayer(this.china_full_Layer);});//监听点击事件
|
|
264840
264543
|
let elPopup=this.$refs.popup;this.overlayPopup=new Overlay["a" /* default */]({element:elPopup,positioning:"bottom-right",stopEvent:true,autoPan:false});this.map.addOverlay(this.overlayPopup);this.map.on("click",e=>{// 检查是否正在进行区域分析绘制
|
|
264841
|
-
const isAreaAnalysisDrawing=this.map.getProperties().isAreaAnalysisDrawing||false;if(!isAreaAnalysisDrawing){let mousePoint=e.coordinate;this.initialPoint=mousePoint;let popupHeaderTitle=document.getElementById("popupHeaderTitle");let feature=this.map.forEachFeatureAtPixel(e.pixel,feature=>{return feature;});if(feature){if(feature.getProperties().features){if(feature.getProperties().features.length>1){const features=feature.getProperties().features;if(this.map.getView().getZoom()>=18){this.popupHeight=350;this.popupWidth=430;this.currentTabComponent=component_ClusterList;this.popupAttributes=features;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="点位列表";this.showPopup();let fontSize=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]);let popupHeight=this.popupHeight/153.6*fontSize;let popupWidth=this.popupWidth/153.6*fontSize;this.overlayPopup.setPosition(mousePoint);this.overlayPopup.setOffset([-popupWidth/2,-popupHeight]);let pixelPoint=this.map.getPixelFromCoordinate(mousePoint);let newpixelPoint=[pixelPoint[0],pixelPoint[1]-150];let newCenterPoint=this.map.getCoordinateFromPixel(newpixelPoint)
|
|
264544
|
+
const isAreaAnalysisDrawing=this.map.getProperties().isAreaAnalysisDrawing||false;if(!isAreaAnalysisDrawing){let mousePoint=e.coordinate;this.initialPoint=mousePoint;let popupHeaderTitle=document.getElementById("popupHeaderTitle");let feature=this.map.forEachFeatureAtPixel(e.pixel,feature=>{return feature;});if(feature){if(feature.getProperties().features){if(feature.getProperties().features.length>1){const features=feature.getProperties().features;if(this.map.getView().getZoom()>=18){this.popupHeight=350;this.popupWidth=430;this.currentTabComponent=component_ClusterList;this.popupAttributes=features;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="点位列表";this.showPopup();let fontSize=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]);let popupHeight=this.popupHeight/153.6*fontSize;let popupWidth=this.popupWidth/153.6*fontSize;this.overlayPopup.setPosition(mousePoint);this.overlayPopup.setOffset([-popupWidth/2,-popupHeight]);let pixelPoint=this.map.getPixelFromCoordinate(mousePoint);let newpixelPoint=[pixelPoint[0],pixelPoint[1]-150];let newCenterPoint=this.map.getCoordinateFromPixel(newpixelPoint);// this.map.getView().animate({
|
|
264545
|
+
// center: newCenterPoint,
|
|
264546
|
+
// duration: 800,
|
|
264547
|
+
// });
|
|
264548
|
+
this.overlayPopup.set("popupBS","clusterList");}else{// this.map.getView().animate({
|
|
264549
|
+
// center: feature.getGeometry().getCoordinates(),
|
|
264550
|
+
// zoom: this.map.getView().getZoom() * 2,
|
|
264551
|
+
// duration: 1200,
|
|
264552
|
+
// });
|
|
264553
|
+
}}else{let properties=feature.getProperties().features[0].getProperties();if(properties){if(properties.isDrawn)return;if(properties.popoup===false){let pixelPoint=null;if(mousePoint){pixelPoint=this.map.getPixelFromCoordinate(mousePoint);}that.$emit("clickPointEvent",properties,pixelPoint);return;}let pixelPoint=null;if(mousePoint){pixelPoint=this.map.getPixelFromCoordinate(mousePoint);}this.$emit("clickPointEvent",properties,pixelPoint);const type=properties.type;const data=properties;if(type){switch(type){case"customPoint":this.popupHeight=data.popupHeight-50;this.popupWidth=data.popupWidth-20;this.currentTabComponent=customPointLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML=data.popupTitle;this.zoomInBylatlon([data.longitude,data.latitude],this.map.getView().getZoom());break;case"emergency":this.popupHeight=350;this.popupWidth=560;this.currentTabComponent=EmergencyLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="突发事件";break;case"otherEvents":this.popupHeight=170;this.popupWidth=430;this.currentTabComponent=otherLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="其它事件";break;case"construction":this.popupHeight=200;this.popupWidth=430;this.currentTabComponent=otherLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="养护施工";break;case"tollAbnormal":this.popupHeight=330;this.popupWidth=560;this.currentTabComponent=EmergencyLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="收费站异常";break;case"weatherAbnormal":this.popupHeight=250;this.popupWidth=470;this.currentTabComponent=Weatherevent;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="异常天气";break;case"serviceAreaAbnormal":this.popupHeight=200;this.popupWidth=430;this.currentTabComponent=ServiceAreaAbnormalLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="服务区异常";break;case"aiEvent":this.popupHeight=390;this.popupWidth=570;this.currentTabComponent=AIeventLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="AI告警事件";break;case"congestionEvent":this.popupHeight=180;this.popupWidth=560;this.currentTabComponent=CongestionEventLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="拥堵事件";break;case"tollStation":this.popupHeight=350;this.popupWidth=330;this.currentTabComponent=TollStationLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="收费站";break;case"serviceArea":this.popupHeight=350;this.popupWidth=330;this.currentTabComponent=ServiceAreaLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="服务区";break;case"trainStation":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=TrainStationLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="客运站";break;case"port":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=PortLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="港口";break;case"majorEvent":this.popupHeight=255;this.popupWidth=330;this.currentTabComponent=MajorEventLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="活动地点";break;case"airPort":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=AirportLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="机场";break;case"HSRoadCamera":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=HSRoadCameraLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="高速相机";break;case"SYRoadCamera":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=SYRoadCameraLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="水运相机";break;case"throughCulver":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=ThroughCulvertLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="下穿涵洞";break;case"lonandlatTopile":this.popupHeight=85;this.popupWidth=360;this.currentTabComponent=component_LonlatTopile;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="经纬度转桩号";break;case"latlonPick":this.popupHeight=55;this.popupWidth=360;this.currentTabComponent=component_LatlonPick;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="坐标拾取";break;case"travelPoint":this.popupHeight=500;this.popupWidth=730;this.currentTabComponent=TravelPointLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML=data.otherInfo.name;break;case"inRiverCapacity":this.popupHeight=350;this.popupWidth=420;this.currentTabComponent=InRiverCapacityLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML=data.otherInfo.portName;break;case"inRiverUPCapacity":this.popupHeight=350;this.popupWidth=420;this.currentTabComponent=InRiverUPCapacityLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML=data.otherInfo.portName;break;}this.showPopup();}}else{this.closePopup();}// this.overlayPopup.setPosition(mousePoint);
|
|
264842
264554
|
// this.overlayPopup.setOffset([
|
|
264843
264555
|
// -this.popupWidth / 2,
|
|
264844
264556
|
// -this.popupHeight,
|
|
264845
264557
|
// ]);
|
|
264846
|
-
let fontSize=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]);let popupHeight=this.popupHeight/153.6*fontSize;let popupWidth=this.popupWidth/153.6*fontSize;this.overlayPopup.setPosition(mousePoint);this.overlayPopup.setOffset([-popupWidth/2,-popupHeight]);let pixelPoint=this.map.getPixelFromCoordinate(mousePoint);let newpixelPoint=[pixelPoint[0],pixelPoint[1]-150];let newCenterPoint=this.map.getCoordinateFromPixel(newpixelPoint)
|
|
264558
|
+
let fontSize=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]);let popupHeight=this.popupHeight/153.6*fontSize;let popupWidth=this.popupWidth/153.6*fontSize;this.overlayPopup.setPosition(mousePoint);this.overlayPopup.setOffset([-popupWidth/2,-popupHeight]);let pixelPoint=this.map.getPixelFromCoordinate(mousePoint);let newpixelPoint=[pixelPoint[0],pixelPoint[1]-150];let newCenterPoint=this.map.getCoordinateFromPixel(newpixelPoint);// this.map.getView().animate({
|
|
264559
|
+
// center: newCenterPoint,
|
|
264560
|
+
// duration: 800,
|
|
264561
|
+
// });
|
|
264562
|
+
}}else{let properties=feature.getProperties();if(properties){if(properties.isDrawn)return;if(properties.popoup===false){let pixelPoint=null;if(mousePoint){pixelPoint=this.map.getPixelFromCoordinate(mousePoint);}that.$emit("clickPointEvent",properties,pixelPoint);return;}let pixelPoint=null;if(mousePoint){pixelPoint=this.map.getPixelFromCoordinate(mousePoint);}this.$emit("clickPointEvent",properties,pixelPoint);const type=properties.type;const data=properties;if(type){switch(type){case"customPoint":this.popupHeight=data.popupHeight-50;this.popupWidth=data.popupWidth-20;this.currentTabComponent=customPointLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML=data.popupTitle;this.zoomInBylatlon([data.longitude,data.latitude],this.map.getView().getZoom());break;case"emergency":this.popupHeight=350;this.popupWidth=560;this.currentTabComponent=EmergencyLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="突发事件";break;case"otherEvents":this.popupHeight=170;this.popupWidth=430;this.currentTabComponent=otherLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="其它事件";break;case"construction":this.popupHeight=200;this.popupWidth=430;this.currentTabComponent=otherLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="养护施工";break;case"tollAbnormal":this.popupHeight=330;this.popupWidth=560;this.currentTabComponent=EmergencyLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="收费站异常";break;case"weatherAbnormal":this.popupHeight=250;this.popupWidth=470;this.currentTabComponent=Weatherevent;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="异常天气";break;case"serviceAreaAbnormal":this.popupHeight=200;this.popupWidth=430;this.currentTabComponent=ServiceAreaAbnormalLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="服务区异常";break;case"aiEvent":this.popupHeight=390;this.popupWidth=570;this.currentTabComponent=AIeventLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="AI告警事件";break;case"congestionEvent":this.popupHeight=180;this.popupWidth=560;this.currentTabComponent=CongestionEventLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="拥堵事件";break;case"tollStation":this.popupHeight=350;this.popupWidth=330;this.currentTabComponent=TollStationLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="收费站";break;case"serviceArea":this.popupHeight=350;this.popupWidth=330;this.currentTabComponent=ServiceAreaLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="服务区";break;case"trainStation":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=TrainStationLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="客运站";break;case"port":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=PortLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="港口";break;case"majorEvent":this.popupHeight=255;this.popupWidth=330;this.currentTabComponent=MajorEventLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="活动地点";break;case"airPort":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=AirportLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="机场";break;case"HSRoadCamera":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=HSRoadCameraLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="高速相机";break;case"SYRoadCamera":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=SYRoadCameraLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="水运相机";break;case"throughCulver":this.popupHeight=315;this.popupWidth=330;this.currentTabComponent=ThroughCulvertLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="下穿涵洞";break;case"lonandlatTopile":this.popupHeight=85;this.popupWidth=360;this.currentTabComponent=component_LonlatTopile;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="经纬度转桩号";break;case"latlonPick":this.popupHeight=55;this.popupWidth=360;this.currentTabComponent=component_LatlonPick;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML="坐标拾取";break;case"travelPoint":this.popupHeight=500;this.popupWidth=730;this.currentTabComponent=TravelPointLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML=data.otherInfo.name;break;case"inRiverCapacity":this.popupHeight=350;this.popupWidth=420;this.currentTabComponent=InRiverCapacityLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML=data.otherInfo.portName;break;case"inRiverUPCapacity":this.popupHeight=350;this.popupWidth=420;this.currentTabComponent=InRiverUPCapacityLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML=data.otherInfo.portName;break;}this.showPopup();}else{this.closePopup();}}else{this.closePopup();}// this.overlayPopup.setPosition(mousePoint);
|
|
264847
264563
|
// this.overlayPopup.setOffset([
|
|
264848
264564
|
// -this.popupWidth / 2,
|
|
264849
264565
|
// -this.popupHeight - 20,
|
|
264850
264566
|
// ]);
|
|
264851
|
-
let fontSize=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]);let popupHeight=this.popupHeight/192*fontSize;let popupWidth=this.popupWidth/192*fontSize;this.overlayPopup.setPosition(mousePoint);this.overlayPopup.setOffset([-popupWidth/2,-popupHeight]);let pixelPoint=this.map.getPixelFromCoordinate(mousePoint);let newpixelPoint=[pixelPoint[0],pixelPoint[1]-150];let newCenterPoint=this.map.getCoordinateFromPixel(newpixelPoint)
|
|
264567
|
+
let fontSize=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]);let popupHeight=this.popupHeight/192*fontSize;let popupWidth=this.popupWidth/192*fontSize;this.overlayPopup.setPosition(mousePoint);this.overlayPopup.setOffset([-popupWidth/2,-popupHeight]);let pixelPoint=this.map.getPixelFromCoordinate(mousePoint);let newpixelPoint=[pixelPoint[0],pixelPoint[1]-150];let newCenterPoint=this.map.getCoordinateFromPixel(newpixelPoint);// this.map.getView().animate({
|
|
264568
|
+
// center: newCenterPoint,
|
|
264569
|
+
// duration: 800,
|
|
264570
|
+
// });
|
|
264571
|
+
}}else{this.closePopup();}}});this.map.on("pointermove",e=>{let feature=this.map.forEachFeatureAtPixel(e.pixel,feature=>{return feature;});if(feature!==this.lastHoverFeature){if(this.lastHoverFeature){that.$emit("pointerOutEvent",this.lastHoverFeature.getProperties());}if(feature){let pixelPoint=null;if(feature.getProperties().longitude&&feature.getProperties().latitude){let latlon=[feature.getProperties().longitude,feature.getProperties().latitude];pixelPoint=this.map.getPixelFromCoordinate(latlon);}that.$emit("pointerMoveEvent",feature.getProperties(),pixelPoint);}this.lastHoverFeature=feature;}});},initRadarLayers(){let radarLayer=new layer_Image["default"]({layerName:"radarLayer",zIndex:88});this.map.addLayer(radarLayer);// 先调用API获取precTileInfo信息
|
|
264852
264572
|
fetch("http://api.datamatrices.com/api/precTileInfo/114.60168/34.260503/122.919454/38.400545").then(response=>response.json()).then(data=>{// 从返回数据中获取forecastTime和tileName
|
|
264853
264573
|
const forecastTime=data.data.forecastTime;// 假设返回数据中有forecastTime字段
|
|
264854
264574
|
const tileName=data.data.tileName;// 假设返回数据中有tileName字段
|
|
@@ -266144,70 +265864,367 @@ var es_error_cause = __webpack_require__("d9e2");
|
|
|
266144
265864
|
// EXTERNAL MODULE: ./node_modules/ol/style/RegularShape.js
|
|
266145
265865
|
var ol_style_RegularShape = __webpack_require__("35d8");
|
|
266146
265866
|
|
|
266147
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0e2c32fd-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/
|
|
266148
|
-
var
|
|
265867
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0e2c32fd-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=template&id=267f992a&scoped=true
|
|
265868
|
+
var CityAreaLayervue_type_template_id_267f992a_scoped_true_render = function render() {
|
|
266149
265869
|
var _vm = this,
|
|
266150
265870
|
_c = _vm._self._c;
|
|
266151
|
-
return
|
|
266152
|
-
|
|
266153
|
-
|
|
266154
|
-
|
|
266155
|
-
|
|
266156
|
-
|
|
265871
|
+
return _c('div', {
|
|
265872
|
+
staticClass: "Popup"
|
|
265873
|
+
}, [_c('div', {
|
|
265874
|
+
staticClass: "divtitleone"
|
|
265875
|
+
}, [_vm._v("城市综合评估:")]), _c('div', {
|
|
265876
|
+
ref: "etCharts",
|
|
266157
265877
|
staticStyle: {
|
|
266158
|
-
"
|
|
266159
|
-
"
|
|
266160
|
-
"border": "none"
|
|
266161
|
-
},
|
|
266162
|
-
attrs: {
|
|
266163
|
-
"src": _vm.popupAttr.popupUrl
|
|
265878
|
+
"height": "1.3rem",
|
|
265879
|
+
"width": "100%"
|
|
266164
265880
|
}
|
|
266165
|
-
})
|
|
265881
|
+
}), _c('div', {
|
|
265882
|
+
staticClass: "divtitletwo"
|
|
265883
|
+
}, [_vm._v("公共交通客运分析:")]), _c('div', {
|
|
265884
|
+
staticClass: "data-list"
|
|
265885
|
+
}, [_vm._m(0), _c('div', {
|
|
265886
|
+
staticClass: "list-content"
|
|
265887
|
+
}, _vm._l(_vm.infrastructureList, function (item, index) {
|
|
265888
|
+
return _c('div', {
|
|
265889
|
+
key: index,
|
|
265890
|
+
staticClass: "list-item"
|
|
265891
|
+
}, [_c('div', {
|
|
265892
|
+
staticClass: "list-cell"
|
|
265893
|
+
}, [_vm._v(_vm._s(item.transportName))]), _c('div', {
|
|
265894
|
+
staticClass: "list-cell"
|
|
265895
|
+
}, [_vm._v(_vm._s(item.infrastructureCount))]), _c('div', {
|
|
265896
|
+
staticClass: "list-cell remark",
|
|
265897
|
+
on: {
|
|
265898
|
+
"mouseenter": function ($event) {
|
|
265899
|
+
return _vm.showTooltip($event, item.remark);
|
|
265900
|
+
},
|
|
265901
|
+
"mouseleave": _vm.hideTooltip
|
|
265902
|
+
}
|
|
265903
|
+
}, [_vm._v(" " + _vm._s(_vm.truncateText(item.remark, 15)) + " ")])]);
|
|
265904
|
+
}), 0)])]);
|
|
266166
265905
|
};
|
|
266167
|
-
var
|
|
265906
|
+
var CityAreaLayervue_type_template_id_267f992a_scoped_true_staticRenderFns = [function () {
|
|
265907
|
+
var _vm = this,
|
|
265908
|
+
_c = _vm._self._c;
|
|
265909
|
+
return _c('div', {
|
|
265910
|
+
staticClass: "list-header"
|
|
265911
|
+
}, [_c('div', {
|
|
265912
|
+
staticClass: "header-item"
|
|
265913
|
+
}, [_vm._v("公共交通客运")]), _c('div', {
|
|
265914
|
+
staticClass: "header-item"
|
|
265915
|
+
}, [_vm._v("基础设施数量")]), _c('div', {
|
|
265916
|
+
staticClass: "header-item"
|
|
265917
|
+
}, [_vm._v("设施说明")])]);
|
|
265918
|
+
}];
|
|
265919
|
+
|
|
265920
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=template&id=267f992a&scoped=true
|
|
265921
|
+
|
|
265922
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/js/requestDSQ.js
|
|
265923
|
+
|
|
265924
|
+
|
|
265925
|
+
|
|
265926
|
+
const requestDSQ_service = lib_axios.create({
|
|
265927
|
+
timeout: 30000
|
|
265928
|
+
});
|
|
265929
|
+
requestDSQ_service.interceptors.request.use(config => {
|
|
265930
|
+
var _Vue$prototype$$Globa;
|
|
265931
|
+
config.baseURL = (_Vue$prototype$$Globa = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$GlobalConfig) === null || _Vue$prototype$$Globa === void 0 ? void 0 : _Vue$prototype$$Globa.dsqURL;
|
|
265932
|
+
return config;
|
|
265933
|
+
}, error => {
|
|
265934
|
+
console.log(error);
|
|
265935
|
+
return Promise.reject(error);
|
|
265936
|
+
});
|
|
265937
|
+
requestDSQ_service.interceptors.response.use(response => {
|
|
265938
|
+
const res = response.data;
|
|
265939
|
+
return res;
|
|
265940
|
+
}, error => {
|
|
265941
|
+
return Promise.reject(error);
|
|
265942
|
+
});
|
|
265943
|
+
/* harmony default export */ var requestDSQ = (requestDSQ_service);
|
|
265944
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/api/dushiquanApi.js
|
|
265945
|
+
|
|
265946
|
+
// 公共交通客运分析
|
|
265947
|
+
function getpublicTrfList(data) {
|
|
265948
|
+
return requestDSQ({
|
|
265949
|
+
url: "/prod-api/public/SERVICE_003_011/query/traffic/list",
|
|
265950
|
+
method: "post",
|
|
265951
|
+
data
|
|
265952
|
+
});
|
|
265953
|
+
}
|
|
265954
|
+
// 公共交通客运分析
|
|
265955
|
+
function gettransportInfoList(data) {
|
|
265956
|
+
return requestDSQ({
|
|
265957
|
+
url: "/prod-api/public/SERVICE_003_011/query/transportInfo/getInfo",
|
|
265958
|
+
method: "post",
|
|
265959
|
+
data
|
|
265960
|
+
});
|
|
265961
|
+
}
|
|
265962
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=script&lang=js
|
|
265963
|
+
|
|
265964
|
+
|
|
265965
|
+
/* harmony default export */ var CityAreaLayervue_type_script_lang_js = ({
|
|
265966
|
+
name: "CityAreaLayer",
|
|
265967
|
+
props: {
|
|
265968
|
+
popupAttr: Object
|
|
265969
|
+
},
|
|
265970
|
+
data() {
|
|
265971
|
+
return {
|
|
265972
|
+
infrastructureList: [],
|
|
265973
|
+
currentTooltip: null,
|
|
265974
|
+
myChart: null // 图表实例引用
|
|
265975
|
+
};
|
|
265976
|
+
},
|
|
265977
|
+
created() {},
|
|
265978
|
+
mounted() {
|
|
265979
|
+
this.fuyuanv();
|
|
265980
|
+
},
|
|
265981
|
+
beforeDestroy() {
|
|
265982
|
+
// 清理提示框
|
|
265983
|
+
this.hideTooltip();
|
|
265984
|
+
// 销毁图表实例
|
|
265985
|
+
if (this.myChart) {
|
|
265986
|
+
this.myChart.dispose();
|
|
265987
|
+
this.myChart = null;
|
|
265988
|
+
}
|
|
265989
|
+
},
|
|
265990
|
+
methods: {
|
|
265991
|
+
fuyuanv() {
|
|
265992
|
+
this.infrastructureList = [];
|
|
265993
|
+
this.currentTooltip = null;
|
|
265994
|
+
// 销毁旧的图表实例
|
|
265995
|
+
if (this.myChart) {
|
|
265996
|
+
this.myChart.dispose();
|
|
265997
|
+
this.myChart = null;
|
|
265998
|
+
}
|
|
265999
|
+
this.fetchInfrastructureData();
|
|
266000
|
+
this.initEcharts();
|
|
266001
|
+
},
|
|
266002
|
+
// 截断文本并添加省略号
|
|
266003
|
+
truncateText(text, maxLength = 15) {
|
|
266004
|
+
if (!text || text.length <= maxLength) {
|
|
266005
|
+
return text;
|
|
266006
|
+
}
|
|
266007
|
+
return text.substring(0, maxLength) + "...";
|
|
266008
|
+
},
|
|
266009
|
+
// 显示自定义提示框
|
|
266010
|
+
showTooltip(event, content) {
|
|
266011
|
+
// 如果内容长度不超过限制,不显示提示框
|
|
266012
|
+
if (content.length <= 15) return;
|
|
266168
266013
|
|
|
266169
|
-
//
|
|
266014
|
+
// 移除旧的提示框
|
|
266015
|
+
this.hideTooltip();
|
|
266170
266016
|
|
|
266171
|
-
//
|
|
266172
|
-
|
|
266173
|
-
|
|
266174
|
-
|
|
266175
|
-
|
|
266176
|
-
|
|
266177
|
-
|
|
266178
|
-
|
|
266179
|
-
|
|
266180
|
-
|
|
266181
|
-
|
|
266182
|
-
|
|
266183
|
-
|
|
266184
|
-
|
|
266185
|
-
|
|
266186
|
-
|
|
266187
|
-
|
|
266188
|
-
|
|
266189
|
-
|
|
266190
|
-
this
|
|
266191
|
-
|
|
266192
|
-
|
|
266193
|
-
|
|
266194
|
-
|
|
266195
|
-
this.
|
|
266196
|
-
this.
|
|
266017
|
+
// 创建新的提示框
|
|
266018
|
+
const tooltip = document.createElement("div");
|
|
266019
|
+
tooltip.className = "custom-tooltip";
|
|
266020
|
+
tooltip.textContent = content;
|
|
266021
|
+
tooltip.style.position = "fixed";
|
|
266022
|
+
tooltip.style.zIndex = "9999";
|
|
266023
|
+
tooltip.style.background = "rgba(0, 0, 0, 0.9)";
|
|
266024
|
+
tooltip.style.color = "#fff";
|
|
266025
|
+
tooltip.style.padding = "8px";
|
|
266026
|
+
tooltip.style.borderRadius = "4px";
|
|
266027
|
+
tooltip.style.fontSize = "12px";
|
|
266028
|
+
tooltip.style.maxWidth = "300px";
|
|
266029
|
+
tooltip.style.wordBreak = "break-word";
|
|
266030
|
+
|
|
266031
|
+
// 设置位置,稍微偏移鼠标位置
|
|
266032
|
+
const rect = event.target.getBoundingClientRect();
|
|
266033
|
+
tooltip.style.left = event.clientX + 10 + "px";
|
|
266034
|
+
tooltip.style.top = event.clientY - 10 + "px";
|
|
266035
|
+
document.body.appendChild(tooltip);
|
|
266036
|
+
this.currentTooltip = tooltip;
|
|
266037
|
+
},
|
|
266038
|
+
// 隐藏提示框
|
|
266039
|
+
hideTooltip() {
|
|
266040
|
+
if (this.currentTooltip && this.currentTooltip.parentNode) {
|
|
266041
|
+
document.body.removeChild(this.currentTooltip);
|
|
266042
|
+
this.currentTooltip = null;
|
|
266043
|
+
}
|
|
266044
|
+
},
|
|
266045
|
+
// 获取基础设施数据
|
|
266046
|
+
fetchInfrastructureData() {
|
|
266047
|
+
let param = {
|
|
266048
|
+
sysid: "brain_cockpit",
|
|
266049
|
+
service_code: "API_003_035_006",
|
|
266050
|
+
parameters: {
|
|
266051
|
+
cityCode: this.popupAttr.adcode
|
|
266052
|
+
}
|
|
266053
|
+
};
|
|
266054
|
+
getpublicTrfList(param).then(response => {
|
|
266055
|
+
if (response.code === 200 && response.data) {
|
|
266056
|
+
this.infrastructureList = response.data;
|
|
266057
|
+
}
|
|
266058
|
+
}).catch(error => {
|
|
266059
|
+
console.error("获取基础设施数据失败:", error);
|
|
266197
266060
|
});
|
|
266198
266061
|
},
|
|
266199
|
-
|
|
266200
|
-
|
|
266062
|
+
initEcharts() {
|
|
266063
|
+
let param = {
|
|
266064
|
+
sysid: "brain_cockpit",
|
|
266065
|
+
service_code: "API_003_035_005",
|
|
266066
|
+
parameters: {
|
|
266067
|
+
transportId: this.popupAttr.adcode
|
|
266068
|
+
}
|
|
266069
|
+
};
|
|
266070
|
+
gettransportInfoList(param).then(response => {
|
|
266071
|
+
if (response.code === 200 && response.data) {
|
|
266072
|
+
const data = response.data;
|
|
266073
|
+
const values = [parseFloat(data.cityArea),
|
|
266074
|
+
// 面积
|
|
266075
|
+
parseFloat(data.population),
|
|
266076
|
+
// 常驻人口
|
|
266077
|
+
parseFloat(data.highspeedMileage),
|
|
266078
|
+
// 高速铁路
|
|
266079
|
+
parseFloat(data.railwayMileage),
|
|
266080
|
+
// 铁路
|
|
266081
|
+
parseFloat(data.roadMileage),
|
|
266082
|
+
// 公路
|
|
266083
|
+
parseFloat(data.freewayMileage) // 高速公路
|
|
266084
|
+
];
|
|
266085
|
+
// 初始化或复用图表实例
|
|
266086
|
+
if (!this.myChart) {
|
|
266087
|
+
this.myChart = echarts_init(this.$refs.etCharts);
|
|
266088
|
+
} else {
|
|
266089
|
+
this.myChart.resize();
|
|
266090
|
+
}
|
|
266091
|
+
let myChart = this.myChart;
|
|
266092
|
+
var legendData = ["城市综合评估"];
|
|
266093
|
+
var indicator = [{
|
|
266094
|
+
text: "面积",
|
|
266095
|
+
max: 17192
|
|
266096
|
+
}, {
|
|
266097
|
+
text: "常驻人口",
|
|
266098
|
+
max: 1101.8
|
|
266099
|
+
}, {
|
|
266100
|
+
text: "高速铁路",
|
|
266101
|
+
max: 460
|
|
266102
|
+
}, {
|
|
266103
|
+
text: "铁路",
|
|
266104
|
+
max: 835
|
|
266105
|
+
}, {
|
|
266106
|
+
text: "公路",
|
|
266107
|
+
max: 33072.2
|
|
266108
|
+
}, {
|
|
266109
|
+
text: "高速公路",
|
|
266110
|
+
max: 908.6
|
|
266111
|
+
}];
|
|
266112
|
+
var dataArr = [{
|
|
266113
|
+
value: values,
|
|
266114
|
+
name: legendData[0],
|
|
266115
|
+
itemStyle: {
|
|
266116
|
+
normal: {
|
|
266117
|
+
lineStyle: {
|
|
266118
|
+
color: "#4BFFFC"
|
|
266119
|
+
},
|
|
266120
|
+
shadowColor: "#4BFFFC",
|
|
266121
|
+
shadowBlur: 10
|
|
266122
|
+
}
|
|
266123
|
+
},
|
|
266124
|
+
areaStyle: {
|
|
266125
|
+
normal: {
|
|
266126
|
+
color: {
|
|
266127
|
+
type: "linear",
|
|
266128
|
+
x: 0,
|
|
266129
|
+
y: 0,
|
|
266130
|
+
x2: 1,
|
|
266131
|
+
y2: 1,
|
|
266132
|
+
colorStops: [{
|
|
266133
|
+
offset: 0,
|
|
266134
|
+
color: "#4BFFFC"
|
|
266135
|
+
}, {
|
|
266136
|
+
offset: 0.5,
|
|
266137
|
+
color: "rgba(0,0,0,0)"
|
|
266138
|
+
}, {
|
|
266139
|
+
offset: 1,
|
|
266140
|
+
color: "#4BFFFC"
|
|
266141
|
+
}],
|
|
266142
|
+
globalCoord: false
|
|
266143
|
+
},
|
|
266144
|
+
opacity: 1
|
|
266145
|
+
}
|
|
266146
|
+
}
|
|
266147
|
+
}];
|
|
266148
|
+
var colorArr = ["#4BFFFC"];
|
|
266149
|
+
let option = {
|
|
266150
|
+
color: colorArr,
|
|
266151
|
+
tooltip: {
|
|
266152
|
+
trigger: "item",
|
|
266153
|
+
position: "inside",
|
|
266154
|
+
backgroundColor: "rgba(0, 0, 0, 0.7)",
|
|
266155
|
+
borderColor: "rgba(75, 255, 252, 0.3)",
|
|
266156
|
+
borderWidth: 1,
|
|
266157
|
+
textStyle: {
|
|
266158
|
+
color: "#fff",
|
|
266159
|
+
fontSize: 10
|
|
266160
|
+
},
|
|
266161
|
+
padding: 5
|
|
266162
|
+
},
|
|
266163
|
+
radar: {
|
|
266164
|
+
center: ["50%", "50%"],
|
|
266165
|
+
radius: ["0%", "60%"],
|
|
266166
|
+
name: {
|
|
266167
|
+
textStyle: {
|
|
266168
|
+
color: "#fff",
|
|
266169
|
+
fontSize: 10
|
|
266170
|
+
},
|
|
266171
|
+
padding: [0, 0, 0, 0]
|
|
266172
|
+
},
|
|
266173
|
+
indicator: indicator,
|
|
266174
|
+
splitArea: {
|
|
266175
|
+
show: true,
|
|
266176
|
+
areaStyle: {
|
|
266177
|
+
color: ["rgba(255,255,255,0)", "rgba(255,255,255,0)"]
|
|
266178
|
+
}
|
|
266179
|
+
},
|
|
266180
|
+
axisLine: {
|
|
266181
|
+
lineStyle: {
|
|
266182
|
+
color: "#153269",
|
|
266183
|
+
width: 0.5
|
|
266184
|
+
}
|
|
266185
|
+
},
|
|
266186
|
+
splitLine: {
|
|
266187
|
+
lineStyle: {
|
|
266188
|
+
color: "#3583b0",
|
|
266189
|
+
width: 0.8
|
|
266190
|
+
}
|
|
266191
|
+
}
|
|
266192
|
+
},
|
|
266193
|
+
series: [{
|
|
266194
|
+
type: "radar",
|
|
266195
|
+
symbolSize: 3,
|
|
266196
|
+
lineStyle: {
|
|
266197
|
+
width: 1
|
|
266198
|
+
},
|
|
266199
|
+
areaStyle: {
|
|
266200
|
+
opacity: 0.7
|
|
266201
|
+
},
|
|
266202
|
+
data: dataArr
|
|
266203
|
+
}]
|
|
266204
|
+
};
|
|
266205
|
+
myChart.setOption(option);
|
|
266206
|
+
}
|
|
266207
|
+
});
|
|
266201
266208
|
}
|
|
266202
266209
|
},
|
|
266203
|
-
|
|
266204
|
-
|
|
266205
|
-
|
|
266210
|
+
watch: {
|
|
266211
|
+
popupAttr: {
|
|
266212
|
+
handler(newVal, oldVal) {
|
|
266213
|
+
if (newVal && newVal.adcode && newVal.adcode !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.adcode)) {
|
|
266214
|
+
this.fuyuanv();
|
|
266215
|
+
}
|
|
266216
|
+
},
|
|
266217
|
+
deep: true
|
|
266218
|
+
}
|
|
266206
266219
|
}
|
|
266207
266220
|
});
|
|
266208
|
-
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/
|
|
266209
|
-
/* harmony default export */ var
|
|
266210
|
-
//
|
|
266221
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=script&lang=js
|
|
266222
|
+
/* harmony default export */ var corridorLayers_CityAreaLayervue_type_script_lang_js = (CityAreaLayervue_type_script_lang_js);
|
|
266223
|
+
// EXTERNAL MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=style&index=0&id=267f992a&prod&scoped=true&lang=css
|
|
266224
|
+
var CityAreaLayervue_type_style_index_0_id_267f992a_prod_scoped_true_lang_css = __webpack_require__("728a");
|
|
266225
|
+
|
|
266226
|
+
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue
|
|
266227
|
+
|
|
266211
266228
|
|
|
266212
266229
|
|
|
266213
266230
|
|
|
@@ -266215,18 +266232,18 @@ var customPointLayervue_type_template_id_3b5ee555_scoped_true_staticRenderFns =
|
|
|
266215
266232
|
|
|
266216
266233
|
/* normalize component */
|
|
266217
266234
|
|
|
266218
|
-
var
|
|
266219
|
-
|
|
266220
|
-
|
|
266221
|
-
|
|
266235
|
+
var CityAreaLayer_component = normalizeComponent(
|
|
266236
|
+
corridorLayers_CityAreaLayervue_type_script_lang_js,
|
|
266237
|
+
CityAreaLayervue_type_template_id_267f992a_scoped_true_render,
|
|
266238
|
+
CityAreaLayervue_type_template_id_267f992a_scoped_true_staticRenderFns,
|
|
266222
266239
|
false,
|
|
266223
266240
|
null,
|
|
266224
|
-
"
|
|
266241
|
+
"267f992a",
|
|
266225
266242
|
null
|
|
266226
266243
|
|
|
266227
266244
|
)
|
|
266228
266245
|
|
|
266229
|
-
/* harmony default export */ var
|
|
266246
|
+
/* harmony default export */ var CityAreaLayer = (CityAreaLayer_component.exports);
|
|
266230
266247
|
// CONCATENATED MODULE: ./packages/gisMapTianditu/src/js/utills.js
|
|
266231
266248
|
|
|
266232
266249
|
|
|
@@ -267807,11 +267824,14 @@ var customPointLayer_component = normalizeComponent(
|
|
|
267807
267824
|
throw error;
|
|
267808
267825
|
}
|
|
267809
267826
|
},
|
|
267810
|
-
setNewCenter(
|
|
267827
|
+
setNewCenter(leftpixel, toppixel, coordinate, zoom) {
|
|
267811
267828
|
let pixelPoint = this.map.getPixelFromCoordinate(coordinate);
|
|
267812
|
-
let newpixel = [pixelPoint[0], pixelPoint[1] +
|
|
267829
|
+
let newpixel = [pixelPoint[0] + leftpixel, pixelPoint[1] + toppixel];
|
|
267813
267830
|
let newcoordinate = this.map.getCoordinateFromPixel(newpixel);
|
|
267814
267831
|
this.zoomInBylatlon(newcoordinate, zoom);
|
|
267832
|
+
},
|
|
267833
|
+
getNowZoom() {
|
|
267834
|
+
return this.map.getView().getZoom();
|
|
267815
267835
|
}
|
|
267816
267836
|
}
|
|
267817
267837
|
});
|