gis-map-universal 1.1.8 → 1.1.9

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.
Files changed (2) hide show
  1. package/gismap.umd.js +537 -510
  2. 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/corridorLayers/CityAreaLayer.vue?vue&type=template&id=5e1a4ac4&scoped=true
263574
- var CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_render = function render() {
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: "divtitleone"
263581
- }, [_vm._v("城市综合评估:")]), _c('div', {
263582
- ref: "etCharts",
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
- "height": "1.3rem",
263585
- "width": "100%"
263672
+ "width": "81%"
263586
263673
  }
263587
- }), _c('div', {
263588
- staticClass: "divtitletwo"
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_5e1a4ac4_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: "header-item"
263619
- }, [_vm._v("公共交通客运")]), _c('div', {
263620
- staticClass: "header-item"
263621
- }, [_vm._v("基础设施数量")]), _c('div', {
263622
- staticClass: "header-item"
263623
- }, [_vm._v("设施说明")])]);
263624
- }];
263625
-
263626
- // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=template&id=5e1a4ac4&scoped=true
263627
-
263628
- // CONCATENATED MODULE: ./packages/gisMapTianditu/src/js/requestDSQ.js
263629
-
263630
-
263631
-
263632
- const requestDSQ_service = lib_axios.create({
263633
- timeout: 30000
263634
- });
263635
- requestDSQ_service.interceptors.request.use(config => {
263636
- var _Vue$prototype$$Globa;
263637
- 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;
263638
- return config;
263639
- }, error => {
263640
- console.log(error);
263641
- return Promise.reject(error);
263642
- });
263643
- requestDSQ_service.interceptors.response.use(response => {
263644
- const res = response.data;
263645
- return res;
263646
- }, error => {
263647
- return Promise.reject(error);
263648
- });
263649
- /* harmony default export */ var requestDSQ = (requestDSQ_service);
263650
- // CONCATENATED MODULE: ./packages/gisMapTianditu/src/api/dushiquanApi.js
263651
-
263652
- // 公共交通客运分析
263653
- function getpublicTrfList(data) {
263654
- return requestDSQ({
263655
- url: "/prod-api/public/SERVICE_003_011/query/traffic/list",
263656
- method: "post",
263657
- data
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
- /* harmony default export */ var CityAreaLayervue_type_script_lang_js = ({
263672
- name: "CityAreaLayer",
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=5e1a4ac4&prod&scoped=true&lang=css
263930
- var CityAreaLayervue_type_style_index_0_id_5e1a4ac4_prod_scoped_true_lang_css = __webpack_require__("4601");
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_5e1a4ac4_scoped_true_render,
263944
- CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_staticRenderFns,
263945
- false,
263946
- null,
263947
- "5e1a4ac4",
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/dsfg_qsb?",
264785
- lightUrl:"https://service.sdmap.gov.cn/tileservice/sdpubmap?",geoJSONUrl:"/china_full.json",sdAreaUrl:"/sdArea.json",subwayLineUrl:"/ditieline.json",darkFillColor:"#1b2639",lightFillColor:"#eeeee9",darkStrokeColor:"#3578E0",lightStrokeColor:"#b4b4b1"};},methods:{initBaseLayers(){let that=this;// 加载WMTS
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"};},methods:{initBaseLayers(){let that=this;// 加载WMTS
264786
264489
  // let resolutions = [
264787
264490
  // 0.010986328125, 0.0054931640625, 0.00274658283125, 0.001373291815625,
264788
264491
  // 0.0006866455078125, 0.00034332275390625, 0.000171661376953125,
@@ -264811,7 +264514,7 @@ lightUrl:"https://service.sdmap.gov.cn/tileservice/sdpubmap?",geoJSONUrl:"/china
264811
264514
  // });
264812
264515
  // this.map.addLayer(wmtslayer);
264813
264516
  let baseRoadlayer=new layer_Tile["default"]({layerName:"baseRoadlayer",source:new source_TileWMS({url:'http://localhost:8090/iserver/services/map-WorkSpace/wms130',params:{LAYERS:"T84",FORMAT:"image/png"}}),zIndex:4,projection:"EPSG:3857"});// this.map.addLayer(baseRoadlayer);
264814
- that.normalizedThemeStyle==="light"?that.tiandituLayerUrl=that.lightUrl:that.tiandituLayerUrl=that.darkUrl;this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:this.tiandituLayerUrl,key:"aaaea01715112ff36a1d2a25f345ba4f",projection:"EPSG:4326"}),zIndex:1});this.map.addLayer(this.tiandituLayer);// // 测试车道线
264517
+ that.normalizedThemeStyle==="light"?that.tiandituLayerUrl=that.lightUrl:that.tiandituLayerUrl=that.darkUrl;this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:this.tiandituLayerUrl,key:this.tiandituKey,projection:"EPSG:4326"}),zIndex:1});this.map.addLayer(this.tiandituLayer);// // 测试车道线
264815
264518
  // const token = `?token=d6bWDtdlxIc-VPNRQWQF-VaTDzwYZIOK_tWug3ZNffcW1nMltpiEdtsrNLCkc_XoVWbV1LhkGcUv5kOLpXt7kA..`
264816
264519
  // let chedaoBGLayer = new TileLayer({
264817
264520
  // layerName: "chedaoBGLayer",
@@ -264837,17 +264540,34 @@ style:function(feature){return new Style["default"]({fill:new Fill["default"]({c
264837
264540
  width:1// 边界线宽度
264838
264541
  })});}});this.map.addLayer(this.china_full_Layer);});//监听点击事件
264839
264542
  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=>{// 检查是否正在进行区域分析绘制
264840
- 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({center:newCenterPoint,duration:800});this.overlayPopup.set("popupBS","clusterList");}else{this.map.getView().animate({center:feature.getGeometry().getCoordinates(),zoom:this.map.getView().getZoom()*2,duration:1200});}}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;}const type=properties.type;const data=properties;if(type){switch(type){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;case"cityArea":this.popupHeight=530;this.popupWidth=400;this.currentTabComponent=CityAreaLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML='都市圈综合分析';break;}this.showPopup();}}else{this.closePopup();}// this.overlayPopup.setPosition(mousePoint);
264543
+ 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({
264544
+ // center: newCenterPoint,
264545
+ // duration: 800,
264546
+ // });
264547
+ this.overlayPopup.set("popupBS","clusterList");}else{// this.map.getView().animate({
264548
+ // center: feature.getGeometry().getCoordinates(),
264549
+ // zoom: this.map.getView().getZoom() * 2,
264550
+ // duration: 1200,
264551
+ // });
264552
+ }}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);
264841
264553
  // this.overlayPopup.setOffset([
264842
264554
  // -this.popupWidth / 2,
264843
264555
  // -this.popupHeight,
264844
264556
  // ]);
264845
- 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({center:newCenterPoint,duration:800});}}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;}const type=properties.type;const data=properties;if(type){switch(type){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;case"cityArea":this.popupHeight=530;this.popupWidth=400;this.currentTabComponent=CityAreaLayer;this.popupAttributes=data;popupHeaderTitle.innerHTML="";popupHeaderTitle.innerHTML='都市圈综合分析';break;}this.showPopup();}else{this.closePopup();}}else{this.closePopup();}// this.overlayPopup.setPosition(mousePoint);
264557
+ 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({
264558
+ // center: newCenterPoint,
264559
+ // duration: 800,
264560
+ // });
264561
+ }}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);
264846
264562
  // this.overlayPopup.setOffset([
264847
264563
  // -this.popupWidth / 2,
264848
264564
  // -this.popupHeight - 20,
264849
264565
  // ]);
264850
- 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({center:newCenterPoint,duration:800});}}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信息
264566
+ 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({
264567
+ // center: newCenterPoint,
264568
+ // duration: 800,
264569
+ // });
264570
+ }}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信息
264851
264571
  fetch("http://api.datamatrices.com/api/precTileInfo/114.60168/34.260503/122.919454/38.400545").then(response=>response.json()).then(data=>{// 从返回数据中获取forecastTime和tileName
264852
264572
  const forecastTime=data.data.forecastTime;// 假设返回数据中有forecastTime字段
264853
264573
  const tileName=data.data.tileName;// 假设返回数据中有tileName字段
@@ -265103,7 +264823,7 @@ initAreaGDPLayer(){let data=[{city:"济南",latlng:[117.218567,36.63746469],leve
265103
264823
  }else if(value===4){return"#FFD700";// 金色
265104
264824
  }else if(value===5){return"#00FFFF";// 青色
265105
264825
  }else{return"#2E2E2E";// 深灰色,用于默认或其他情况
265106
- }}}}}]};if(this.largeTruckLayer){this.largeTruckLayer.setChartOptions(option);}},removeLargeTruckLayer(){if(this.largeTruckLayer){this.largeTruckLayer.remove();this.largeTruckLayer=null;}}},watch:{themeStyle(val){let _this=this;if(val==="dark"){if(_this.tiandituLayer){_this.map.removeLayer(_this.tiandituLayer);_this.map.removeLayer(_this.china_full_Layer);_this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:_this.darkUrl,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1});_this.map.addLayer(_this.tiandituLayer);fetch(_this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();_this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:_this.darkFillColor}),stroke:new Stroke["default"]({color:_this.darkStrokeColor,width:1})});}});_this.map.addLayer(_this.china_full_Layer);});}}else if(val==="light"){_this.map.removeLayer(_this.tiandituLayer);_this.map.removeLayer(_this.china_full_Layer);_this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:_this.lightUrl,key:"aaaea01715112ff36a1d2a25f345ba4f",projection:"EPSG:4326"}),zIndex:1});_this.map.addLayer(_this.tiandituLayer);fetch(_this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();_this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:_this.lightFillColor}),stroke:new Stroke["default"]({color:_this.lightStrokeColor,width:1})});}});_this.map.addLayer(_this.china_full_Layer);});}}}});
264826
+ }}}}}]};if(this.largeTruckLayer){this.largeTruckLayer.setChartOptions(option);}},removeLargeTruckLayer(){if(this.largeTruckLayer){this.largeTruckLayer.remove();this.largeTruckLayer=null;}}},watch:{themeStyle(val){let _this=this;if(val==="dark"){if(_this.tiandituLayer){_this.map.removeLayer(_this.tiandituLayer);_this.map.removeLayer(_this.china_full_Layer);_this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:_this.darkUrl,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1});_this.map.addLayer(_this.tiandituLayer);fetch(_this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();_this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:_this.darkFillColor}),stroke:new Stroke["default"]({color:_this.darkStrokeColor,width:1})});}});_this.map.addLayer(_this.china_full_Layer);});}}else if(val==="light"){_this.map.removeLayer(_this.tiandituLayer);_this.map.removeLayer(_this.china_full_Layer);_this.tiandituLayer=new layer_Tile["default"]({source:new Tianditu_Tianditu({url:_this.lightUrl,key:this.tiandituKey,projection:"EPSG:4326"}),zIndex:1});_this.map.addLayer(_this.tiandituLayer);fetch(_this.geoJSONUrl).then(response=>response.json()).then(data=>{let geoJSONFormat=new ol_format_GeoJSON["default"]();_this.china_full_Layer=new layer_Vector["default"]({layerName:"xxxx",source:new source_Vector["default"]({format:geoJSONFormat,features:geoJSONFormat.readFeatures(data,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(feature){return new Style["default"]({fill:new Fill["default"]({color:_this.lightFillColor}),stroke:new Stroke["default"]({color:_this.lightStrokeColor,width:1})});}});_this.map.addLayer(_this.china_full_Layer);});}}}});
265107
264827
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
265108
264828
  var es_array_reduce = __webpack_require__("13d5");
265109
264829
 
@@ -266143,70 +265863,367 @@ var es_error_cause = __webpack_require__("d9e2");
266143
265863
  // EXTERNAL MODULE: ./node_modules/ol/style/RegularShape.js
266144
265864
  var ol_style_RegularShape = __webpack_require__("35d8");
266145
265865
 
266146
- // 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
266147
- var customPointLayervue_type_template_id_3b5ee555_scoped_true_render = function render() {
265866
+ // 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=5e1a4ac4&scoped=true
265867
+ var CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_render = function render() {
266148
265868
  var _vm = this,
266149
265869
  _c = _vm._self._c;
266150
- return _vm.isshow ? _c('div', {
266151
- style: {
266152
- height: _vm.height,
266153
- width: _vm.width
266154
- }
266155
- }, [_c('iframe', {
265870
+ return _c('div', {
265871
+ staticClass: "Popup"
265872
+ }, [_c('div', {
265873
+ staticClass: "divtitleone"
265874
+ }, [_vm._v("城市综合评估:")]), _c('div', {
265875
+ ref: "etCharts",
266156
265876
  staticStyle: {
266157
- "width": "100%",
266158
- "height": "100%",
266159
- "border": "none"
266160
- },
266161
- attrs: {
266162
- "src": _vm.popupAttr.popupUrl
265877
+ "height": "1.3rem",
265878
+ "width": "100%"
266163
265879
  }
266164
- })]) : _vm._e();
265880
+ }), _c('div', {
265881
+ staticClass: "divtitletwo"
265882
+ }, [_vm._v("公共交通客运分析:")]), _c('div', {
265883
+ staticClass: "data-list"
265884
+ }, [_vm._m(0), _c('div', {
265885
+ staticClass: "list-content"
265886
+ }, _vm._l(_vm.infrastructureList, function (item, index) {
265887
+ return _c('div', {
265888
+ key: index,
265889
+ staticClass: "list-item"
265890
+ }, [_c('div', {
265891
+ staticClass: "list-cell"
265892
+ }, [_vm._v(_vm._s(item.transportName))]), _c('div', {
265893
+ staticClass: "list-cell"
265894
+ }, [_vm._v(_vm._s(item.infrastructureCount))]), _c('div', {
265895
+ staticClass: "list-cell remark",
265896
+ on: {
265897
+ "mouseenter": function ($event) {
265898
+ return _vm.showTooltip($event, item.remark);
265899
+ },
265900
+ "mouseleave": _vm.hideTooltip
265901
+ }
265902
+ }, [_vm._v(" " + _vm._s(_vm.truncateText(item.remark, 15)) + " ")])]);
265903
+ }), 0)])]);
266165
265904
  };
266166
- var customPointLayervue_type_template_id_3b5ee555_scoped_true_staticRenderFns = [];
265905
+ var CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_staticRenderFns = [function () {
265906
+ var _vm = this,
265907
+ _c = _vm._self._c;
265908
+ return _c('div', {
265909
+ staticClass: "list-header"
265910
+ }, [_c('div', {
265911
+ staticClass: "header-item"
265912
+ }, [_vm._v("公共交通客运")]), _c('div', {
265913
+ staticClass: "header-item"
265914
+ }, [_vm._v("基础设施数量")]), _c('div', {
265915
+ staticClass: "header-item"
265916
+ }, [_vm._v("设施说明")])]);
265917
+ }];
265918
+
265919
+ // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=template&id=5e1a4ac4&scoped=true
265920
+
265921
+ // CONCATENATED MODULE: ./packages/gisMapTianditu/src/js/requestDSQ.js
265922
+
265923
+
265924
+
265925
+ const requestDSQ_service = lib_axios.create({
265926
+ timeout: 30000
265927
+ });
265928
+ requestDSQ_service.interceptors.request.use(config => {
265929
+ var _Vue$prototype$$Globa;
265930
+ 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;
265931
+ return config;
265932
+ }, error => {
265933
+ console.log(error);
265934
+ return Promise.reject(error);
265935
+ });
265936
+ requestDSQ_service.interceptors.response.use(response => {
265937
+ const res = response.data;
265938
+ return res;
265939
+ }, error => {
265940
+ return Promise.reject(error);
265941
+ });
265942
+ /* harmony default export */ var requestDSQ = (requestDSQ_service);
265943
+ // CONCATENATED MODULE: ./packages/gisMapTianditu/src/api/dushiquanApi.js
265944
+
265945
+ // 公共交通客运分析
265946
+ function getpublicTrfList(data) {
265947
+ return requestDSQ({
265948
+ url: "/prod-api/public/SERVICE_003_011/query/traffic/list",
265949
+ method: "post",
265950
+ data
265951
+ });
265952
+ }
265953
+ // 公共交通客运分析
265954
+ function gettransportInfoList(data) {
265955
+ return requestDSQ({
265956
+ url: "/prod-api/public/SERVICE_003_011/query/transportInfo/getInfo",
265957
+ method: "post",
265958
+ data
265959
+ });
265960
+ }
265961
+ // 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
265962
+
265963
+
265964
+ /* harmony default export */ var CityAreaLayervue_type_script_lang_js = ({
265965
+ name: "CityAreaLayer",
265966
+ props: {
265967
+ popupAttr: Object
265968
+ },
265969
+ data() {
265970
+ return {
265971
+ infrastructureList: [],
265972
+ currentTooltip: null,
265973
+ myChart: null // 图表实例引用
265974
+ };
265975
+ },
265976
+ created() {},
265977
+ mounted() {
265978
+ this.fuyuanv();
265979
+ },
265980
+ beforeDestroy() {
265981
+ // 清理提示框
265982
+ this.hideTooltip();
265983
+ // 销毁图表实例
265984
+ if (this.myChart) {
265985
+ this.myChart.dispose();
265986
+ this.myChart = null;
265987
+ }
265988
+ },
265989
+ methods: {
265990
+ fuyuanv() {
265991
+ this.infrastructureList = [];
265992
+ this.currentTooltip = null;
265993
+ // 销毁旧的图表实例
265994
+ if (this.myChart) {
265995
+ this.myChart.dispose();
265996
+ this.myChart = null;
265997
+ }
265998
+ this.fetchInfrastructureData();
265999
+ this.initEcharts();
266000
+ },
266001
+ // 截断文本并添加省略号
266002
+ truncateText(text, maxLength = 15) {
266003
+ if (!text || text.length <= maxLength) {
266004
+ return text;
266005
+ }
266006
+ return text.substring(0, maxLength) + "...";
266007
+ },
266008
+ // 显示自定义提示框
266009
+ showTooltip(event, content) {
266010
+ // 如果内容长度不超过限制,不显示提示框
266011
+ if (content.length <= 15) return;
266167
266012
 
266168
- // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/customPointLayer.vue?vue&type=template&id=3b5ee555&scoped=true
266013
+ // 移除旧的提示框
266014
+ this.hideTooltip();
266169
266015
 
266170
- // 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
266171
- /* harmony default export */ var customPointLayervue_type_script_lang_js = ({
266172
- name: '',
266173
- components: {},
266174
- created() {},
266175
- mounted() {},
266176
- props: {
266177
- popupAttr: Object
266178
- },
266179
- data() {
266180
- return {
266181
- isshow: false,
266182
- height: 0,
266183
- width: 0
266184
- };
266185
- },
266186
- methods: {
266187
- fuyuan() {
266188
- this.isshow = false;
266189
- this.$nextTick(() => {
266190
- let fontSize = Number(document.getElementsByTagName('html')[0].style.fontSize.split('px')[0]);
266191
- let frameHeight = (this.popupAttr.popupHeight - 110) / 192 * fontSize;
266192
- let frameWidth = (this.popupAttr.popupWidth - 30) / 192 * fontSize;
266193
- this.height = frameHeight + 'px';
266194
- this.width = frameWidth + 'px';
266195
- this.isshow = true;
266016
+ // 创建新的提示框
266017
+ const tooltip = document.createElement("div");
266018
+ tooltip.className = "custom-tooltip";
266019
+ tooltip.textContent = content;
266020
+ tooltip.style.position = "fixed";
266021
+ tooltip.style.zIndex = "9999";
266022
+ tooltip.style.background = "rgba(0, 0, 0, 0.9)";
266023
+ tooltip.style.color = "#fff";
266024
+ tooltip.style.padding = "8px";
266025
+ tooltip.style.borderRadius = "4px";
266026
+ tooltip.style.fontSize = "12px";
266027
+ tooltip.style.maxWidth = "300px";
266028
+ tooltip.style.wordBreak = "break-word";
266029
+
266030
+ // 设置位置,稍微偏移鼠标位置
266031
+ const rect = event.target.getBoundingClientRect();
266032
+ tooltip.style.left = event.clientX + 10 + "px";
266033
+ tooltip.style.top = event.clientY - 10 + "px";
266034
+ document.body.appendChild(tooltip);
266035
+ this.currentTooltip = tooltip;
266036
+ },
266037
+ // 隐藏提示框
266038
+ hideTooltip() {
266039
+ if (this.currentTooltip && this.currentTooltip.parentNode) {
266040
+ document.body.removeChild(this.currentTooltip);
266041
+ this.currentTooltip = null;
266042
+ }
266043
+ },
266044
+ // 获取基础设施数据
266045
+ fetchInfrastructureData() {
266046
+ let param = {
266047
+ sysid: "brain_cockpit",
266048
+ service_code: "API_003_035_006",
266049
+ parameters: {
266050
+ cityCode: this.popupAttr.adcode
266051
+ }
266052
+ };
266053
+ getpublicTrfList(param).then(response => {
266054
+ if (response.code === 200 && response.data) {
266055
+ this.infrastructureList = response.data;
266056
+ }
266057
+ }).catch(error => {
266058
+ console.error("获取基础设施数据失败:", error);
266196
266059
  });
266197
266060
  },
266198
- destroyFlv() {
266199
- this.isshow = false;
266061
+ initEcharts() {
266062
+ let param = {
266063
+ sysid: "brain_cockpit",
266064
+ service_code: "API_003_035_005",
266065
+ parameters: {
266066
+ transportId: this.popupAttr.adcode
266067
+ }
266068
+ };
266069
+ gettransportInfoList(param).then(response => {
266070
+ if (response.code === 200 && response.data) {
266071
+ const data = response.data;
266072
+ const values = [parseFloat(data.cityArea),
266073
+ // 面积
266074
+ parseFloat(data.population),
266075
+ // 常驻人口
266076
+ parseFloat(data.highspeedMileage),
266077
+ // 高速铁路
266078
+ parseFloat(data.railwayMileage),
266079
+ // 铁路
266080
+ parseFloat(data.roadMileage),
266081
+ // 公路
266082
+ parseFloat(data.freewayMileage) // 高速公路
266083
+ ];
266084
+ // 初始化或复用图表实例
266085
+ if (!this.myChart) {
266086
+ this.myChart = echarts_init(this.$refs.etCharts);
266087
+ } else {
266088
+ this.myChart.resize();
266089
+ }
266090
+ let myChart = this.myChart;
266091
+ var legendData = ["城市综合评估"];
266092
+ var indicator = [{
266093
+ text: "面积",
266094
+ max: 17192
266095
+ }, {
266096
+ text: "常驻人口",
266097
+ max: 1101.8
266098
+ }, {
266099
+ text: "高速铁路",
266100
+ max: 460
266101
+ }, {
266102
+ text: "铁路",
266103
+ max: 835
266104
+ }, {
266105
+ text: "公路",
266106
+ max: 33072.2
266107
+ }, {
266108
+ text: "高速公路",
266109
+ max: 908.6
266110
+ }];
266111
+ var dataArr = [{
266112
+ value: values,
266113
+ name: legendData[0],
266114
+ itemStyle: {
266115
+ normal: {
266116
+ lineStyle: {
266117
+ color: "#4BFFFC"
266118
+ },
266119
+ shadowColor: "#4BFFFC",
266120
+ shadowBlur: 10
266121
+ }
266122
+ },
266123
+ areaStyle: {
266124
+ normal: {
266125
+ color: {
266126
+ type: "linear",
266127
+ x: 0,
266128
+ y: 0,
266129
+ x2: 1,
266130
+ y2: 1,
266131
+ colorStops: [{
266132
+ offset: 0,
266133
+ color: "#4BFFFC"
266134
+ }, {
266135
+ offset: 0.5,
266136
+ color: "rgba(0,0,0,0)"
266137
+ }, {
266138
+ offset: 1,
266139
+ color: "#4BFFFC"
266140
+ }],
266141
+ globalCoord: false
266142
+ },
266143
+ opacity: 1
266144
+ }
266145
+ }
266146
+ }];
266147
+ var colorArr = ["#4BFFFC"];
266148
+ let option = {
266149
+ color: colorArr,
266150
+ tooltip: {
266151
+ trigger: "item",
266152
+ position: "inside",
266153
+ backgroundColor: "rgba(0, 0, 0, 0.7)",
266154
+ borderColor: "rgba(75, 255, 252, 0.3)",
266155
+ borderWidth: 1,
266156
+ textStyle: {
266157
+ color: "#fff",
266158
+ fontSize: 10
266159
+ },
266160
+ padding: 5
266161
+ },
266162
+ radar: {
266163
+ center: ["50%", "50%"],
266164
+ radius: ["0%", "60%"],
266165
+ name: {
266166
+ textStyle: {
266167
+ color: "#fff",
266168
+ fontSize: 10
266169
+ },
266170
+ padding: [0, 0, 0, 0]
266171
+ },
266172
+ indicator: indicator,
266173
+ splitArea: {
266174
+ show: true,
266175
+ areaStyle: {
266176
+ color: ["rgba(255,255,255,0)", "rgba(255,255,255,0)"]
266177
+ }
266178
+ },
266179
+ axisLine: {
266180
+ lineStyle: {
266181
+ color: "#153269",
266182
+ width: 0.5
266183
+ }
266184
+ },
266185
+ splitLine: {
266186
+ lineStyle: {
266187
+ color: "#3583b0",
266188
+ width: 0.8
266189
+ }
266190
+ }
266191
+ },
266192
+ series: [{
266193
+ type: "radar",
266194
+ symbolSize: 3,
266195
+ lineStyle: {
266196
+ width: 1
266197
+ },
266198
+ areaStyle: {
266199
+ opacity: 0.7
266200
+ },
266201
+ data: dataArr
266202
+ }]
266203
+ };
266204
+ myChart.setOption(option);
266205
+ }
266206
+ });
266200
266207
  }
266201
266208
  },
266202
- computed: {},
266203
- mounted() {
266204
- this.fuyuan();
266209
+ watch: {
266210
+ popupAttr: {
266211
+ handler(newVal, oldVal) {
266212
+ if (newVal && newVal.adcode && newVal.adcode !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.adcode)) {
266213
+ this.fuyuanv();
266214
+ }
266215
+ },
266216
+ deep: true
266217
+ }
266205
266218
  }
266206
266219
  });
266207
- // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/customPointLayer.vue?vue&type=script&lang=js
266208
- /* harmony default export */ var component_customPointLayervue_type_script_lang_js = (customPointLayervue_type_script_lang_js);
266209
- // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/customPointLayer.vue
266220
+ // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=script&lang=js
266221
+ /* harmony default export */ var corridorLayers_CityAreaLayervue_type_script_lang_js = (CityAreaLayervue_type_script_lang_js);
266222
+ // EXTERNAL MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=style&index=0&id=5e1a4ac4&prod&scoped=true&lang=css
266223
+ var CityAreaLayervue_type_style_index_0_id_5e1a4ac4_prod_scoped_true_lang_css = __webpack_require__("4601");
266224
+
266225
+ // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue
266226
+
266210
266227
 
266211
266228
 
266212
266229
 
@@ -266214,18 +266231,18 @@ var customPointLayervue_type_template_id_3b5ee555_scoped_true_staticRenderFns =
266214
266231
 
266215
266232
  /* normalize component */
266216
266233
 
266217
- var customPointLayer_component = normalizeComponent(
266218
- component_customPointLayervue_type_script_lang_js,
266219
- customPointLayervue_type_template_id_3b5ee555_scoped_true_render,
266220
- customPointLayervue_type_template_id_3b5ee555_scoped_true_staticRenderFns,
266234
+ var CityAreaLayer_component = normalizeComponent(
266235
+ corridorLayers_CityAreaLayervue_type_script_lang_js,
266236
+ CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_render,
266237
+ CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_staticRenderFns,
266221
266238
  false,
266222
266239
  null,
266223
- "3b5ee555",
266240
+ "5e1a4ac4",
266224
266241
  null
266225
266242
 
266226
266243
  )
266227
266244
 
266228
- /* harmony default export */ var customPointLayer = (customPointLayer_component.exports);
266245
+ /* harmony default export */ var CityAreaLayer = (CityAreaLayer_component.exports);
266229
266246
  // CONCATENATED MODULE: ./packages/gisMapTianditu/src/js/utills.js
266230
266247
 
266231
266248
 
@@ -266862,7 +266879,14 @@ var customPointLayer_component = normalizeComponent(
266862
266879
  lineCap: lineItem.lineCap || "butt"
266863
266880
  })
266864
266881
  }));
266882
+ lineFeature.set("longitude", lineItem.xyArr[0][0]);
266883
+ lineFeature.set("latitude", lineItem.xyArr[0][1]);
266884
+ lineFeature.set("type", lineItem.type);
266865
266885
  lineFeature.set("popoup", lineItem.popoup);
266886
+ lineFeature.set("popupTitle", lineItem.popupTitle);
266887
+ lineFeature.set("popupUrl", lineItem.popupUrl);
266888
+ lineFeature.set("popupWidth", lineItem.popupWidth);
266889
+ lineFeature.set("popupHeight", lineItem.popupHeight);
266866
266890
  lineFeature.set("lineInfo", lineItem.lineInfo);
266867
266891
  lineFeature.set("lineItemData", lineItem); // 保存完整的线数据
266868
266892
  lineFeatures.push(lineFeature);
@@ -267068,8 +267092,7 @@ var customPointLayer_component = normalizeComponent(
267068
267092
  const defaultStyle = {
267069
267093
  fillColor: "rgba(0, 0, 255, 0.3)",
267070
267094
  strokeColor: "#0000ff",
267071
- strokeWidth: 2,
267072
- popoup: false
267095
+ strokeWidth: 2
267073
267096
  };
267074
267097
  let polygonFeatures = [];
267075
267098
 
@@ -267079,8 +267102,7 @@ var customPointLayer_component = normalizeComponent(
267079
267102
  const itemStyle = Object.assign({}, defaultStyle, {
267080
267103
  fillColor: polygonItem.fillColor,
267081
267104
  strokeColor: polygonItem.strokeColor,
267082
- strokeWidth: polygonItem.strokeWidth,
267083
- popoup: polygonItem.popoup !== undefined ? polygonItem.popoup : false
267105
+ strokeWidth: polygonItem.strokeWidth
267084
267106
  });
267085
267107
 
267086
267108
  // 获取坐标数组
@@ -267101,10 +267123,15 @@ var customPointLayer_component = normalizeComponent(
267101
267123
  width: itemStyle.strokeWidth
267102
267124
  })
267103
267125
  }));
267104
-
267105
267126
  // 设置属性信息
267106
- polygonFeature.set("popoup", itemStyle.popoup);
267107
-
267127
+ polygonFeature.set("longitude", polygonItem.xyArr[0][0]);
267128
+ polygonFeature.set("latitude", polygonItem.xyArr[0][1]);
267129
+ polygonFeature.set("type", polygonItem.type);
267130
+ polygonFeature.set("popoup", polygonItem.popoup);
267131
+ polygonFeature.set("popupTitle", polygonItem.popupTitle);
267132
+ polygonFeature.set("popupUrl", polygonItem.popupUrl);
267133
+ polygonFeature.set("popupWidth", polygonItem.popupWidth);
267134
+ polygonFeature.set("popupHeight", polygonItem.popupHeight);
267108
267135
  // 设置多边形信息
267109
267136
  if (polygonItem.polygonInfo) {
267110
267137
  polygonFeature.set("polygonInfo", polygonItem.polygonInfo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-map-universal",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "GIS通用组件",
5
5
  "main": "gismap.umd.js",
6
6
  "private": false,