gis-map-universal 1.1.7 → 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 +303 -257
  2. package/package.json +1 -1
package/gismap.umd.js CHANGED
@@ -1716,17 +1716,6 @@ function extentFromProjection(projection) {
1716
1716
  }
1717
1717
 
1718
1718
 
1719
- /***/ }),
1720
-
1721
- /***/ "08e6":
1722
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1723
-
1724
- "use strict";
1725
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CityAreaLayer_vue_vue_type_style_index_0_id_b70a5ef4_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a279");
1726
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CityAreaLayer_vue_vue_type_style_index_0_id_b70a5ef4_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CityAreaLayer_vue_vue_type_style_index_0_id_b70a5ef4_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
1727
- /* unused harmony reexport * */
1728
-
1729
-
1730
1719
  /***/ }),
1731
1720
 
1732
1721
  /***/ "0999":
@@ -11349,20 +11338,6 @@ module.exports = fails(function () {
11349
11338
  });
11350
11339
 
11351
11340
 
11352
- /***/ }),
11353
-
11354
- /***/ "1176":
11355
- /***/ (function(module, exports, __webpack_require__) {
11356
-
11357
- // Imports
11358
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
11359
- exports = ___CSS_LOADER_API_IMPORT___(false);
11360
- // Module
11361
- exports.push([module.i, ".Popup[data-v-b70a5ef4]{width:2.2rem;height:2.2rem}.data-list[data-v-b70a5ef4]{margin-top:.1rem;width:100%;font-size:.08rem;color:#fff;max-height:1.3rem;overflow-y:auto}.list-header[data-v-b70a5ef4]{display:flex;background-color:rgba(75,255,252,.2);border-bottom:1px solid rgba(75,255,252,.3);padding:.05rem 0;position:sticky;top:0;z-index:10}.header-item[data-v-b70a5ef4]{flex:1;text-align:center;font-weight:700;color:#4bfffc}.header-item[data-v-b70a5ef4]:last-child{flex:1.5;text-align:center;padding-left:.05rem}.list-content[data-v-b70a5ef4]{width:100%}.list-item[data-v-b70a5ef4]{display:flex;border-bottom:1px solid hsla(0,0%,100%,.1);padding:.05rem 0}.list-item[data-v-b70a5ef4]:last-child{border-bottom:none}.list-cell[data-v-b70a5ef4]{flex:1;text-align:center;word-break:break-word}.list-cell.remark[data-v-b70a5ef4]{text-align:left;flex:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:help}.list-cell.remark[data-v-b70a5ef4]::-webkit-tooltip{display:none}.custom-tooltip{pointer-events:none;box-shadow:0 2px 8px rgba(0,0,0,.3)}.list-content[data-v-b70a5ef4]::-webkit-scrollbar{width:4px}.list-content[data-v-b70a5ef4]::-webkit-scrollbar-track{background:hsla(0,0%,100%,.1)}.list-content[data-v-b70a5ef4]::-webkit-scrollbar-thumb{background:rgba(75,255,252,.5);border-radius:2px}.list-content[data-v-b70a5ef4]::-webkit-scrollbar-thumb:hover{background:rgba(75,255,252,.8)}", ""]);
11362
- // Exports
11363
- module.exports = exports;
11364
-
11365
-
11366
11341
  /***/ }),
11367
11342
 
11368
11343
  /***/ "11b0":
@@ -26464,6 +26439,17 @@ module.exports = function (it) {
26464
26439
  /* harmony default export */ __webpack_exports__["a"] = (null);
26465
26440
 
26466
26441
 
26442
+ /***/ }),
26443
+
26444
+ /***/ "4601":
26445
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
26446
+
26447
+ "use strict";
26448
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CityAreaLayer_vue_vue_type_style_index_0_id_5e1a4ac4_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f43b");
26449
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CityAreaLayer_vue_vue_type_style_index_0_id_5e1a4ac4_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_CityAreaLayer_vue_vue_type_style_index_0_id_5e1a4ac4_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
26450
+ /* unused harmony reexport * */
26451
+
26452
+
26467
26453
  /***/ }),
26468
26454
 
26469
26455
  /***/ "4625":
@@ -42899,6 +42885,20 @@ exports.push([module.i, "#map[data-v-cb037cc4]{width:100%;height:var(--height)}.
42899
42885
  module.exports = exports;
42900
42886
 
42901
42887
 
42888
+ /***/ }),
42889
+
42890
+ /***/ "77c2":
42891
+ /***/ (function(module, exports, __webpack_require__) {
42892
+
42893
+ // Imports
42894
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
42895
+ exports = ___CSS_LOADER_API_IMPORT___(false);
42896
+ // Module
42897
+ exports.push([module.i, ".Popup[data-v-5e1a4ac4]{width:2.2rem;height:2.5rem}.divtitleone[data-v-5e1a4ac4]{padding:.01rem 0 .01rem .04rem;margin-top:.05rem;width:26%}.divtitleone[data-v-5e1a4ac4],.divtitletwo[data-v-5e1a4ac4]{background:linear-gradient(135deg,rgba(75,255,252,.2),rgba(75,255,252,.1));color:#4bfffc;font-weight:700;border-radius:3px;font-size:.08rem;border-left:3px solid #4bfffc}.divtitletwo[data-v-5e1a4ac4]{padding:.01rem 0 .02rem .04rem;width:34%}.data-list[data-v-5e1a4ac4]{margin-top:.1rem;width:100%;font-size:.08rem;color:#fff;overflow-y:auto}.list-header[data-v-5e1a4ac4]{display:flex;background-color:rgba(75,255,252,.2);border-bottom:1px solid rgba(75,255,252,.3);padding:.05rem 0;position:sticky;top:0;z-index:10}.header-item[data-v-5e1a4ac4]{flex:1;text-align:center;font-weight:700;color:#4bfffc}.header-item[data-v-5e1a4ac4]:last-child{flex:1.5;text-align:center;padding-left:.05rem}.list-content[data-v-5e1a4ac4]{width:100%}.list-item[data-v-5e1a4ac4]{display:flex;border-bottom:1px solid hsla(0,0%,100%,.1);padding:.05rem 0}.list-item[data-v-5e1a4ac4]:last-child{border-bottom:none}.list-cell[data-v-5e1a4ac4]{flex:1;text-align:center;word-break:break-word}.list-cell.remark[data-v-5e1a4ac4]{text-align:left;flex:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.list-cell.remark[data-v-5e1a4ac4]::-webkit-tooltip{display:none}.custom-tooltip{pointer-events:none;box-shadow:0 2px 8px rgba(0,0,0,.3)}.list-content[data-v-5e1a4ac4]::-webkit-scrollbar{width:4px}.list-content[data-v-5e1a4ac4]::-webkit-scrollbar-track{background:hsla(0,0%,100%,.1)}.list-content[data-v-5e1a4ac4]::-webkit-scrollbar-thumb{background:rgba(75,255,252,.5);border-radius:2px}.list-content[data-v-5e1a4ac4]::-webkit-scrollbar-thumb:hover{background:rgba(75,255,252,.8)}", ""]);
42898
+ // Exports
42899
+ module.exports = exports;
42900
+
42901
+
42902
42902
  /***/ }),
42903
42903
 
42904
42904
  /***/ "7804":
@@ -55649,22 +55649,6 @@ module.exports = {
55649
55649
  };
55650
55650
 
55651
55651
 
55652
- /***/ }),
55653
-
55654
- /***/ "a279":
55655
- /***/ (function(module, exports, __webpack_require__) {
55656
-
55657
- // style-loader: Adds some css to the DOM by adding a <style> tag
55658
-
55659
- // load the styles
55660
- var content = __webpack_require__("1176");
55661
- if(content.__esModule) content = content.default;
55662
- if(typeof content === 'string') content = [[module.i, content, '']];
55663
- if(content.locals) module.exports = content.locals;
55664
- // add the styles to the DOM
55665
- var add = __webpack_require__("499e").default
55666
- var update = add("8e217a0c", content, true, {"sourceMap":false,"shadowMode":false});
55667
-
55668
55652
  /***/ }),
55669
55653
 
55670
55654
  /***/ "a2c7":
@@ -79468,6 +79452,22 @@ class Point extends _SimpleGeometry_js__WEBPACK_IMPORTED_MODULE_0__[/* default *
79468
79452
  /* unused harmony reexport * */
79469
79453
 
79470
79454
 
79455
+ /***/ }),
79456
+
79457
+ /***/ "f43b":
79458
+ /***/ (function(module, exports, __webpack_require__) {
79459
+
79460
+ // style-loader: Adds some css to the DOM by adding a <style> tag
79461
+
79462
+ // load the styles
79463
+ var content = __webpack_require__("77c2");
79464
+ if(content.__esModule) content = content.default;
79465
+ if(typeof content === 'string') content = [[module.i, content, '']];
79466
+ if(content.locals) module.exports = content.locals;
79467
+ // add the styles to the DOM
79468
+ var add = __webpack_require__("499e").default
79469
+ var update = add("5e246b40", content, true, {"sourceMap":false,"shadowMode":false});
79470
+
79471
79471
  /***/ }),
79472
79472
 
79473
79473
  /***/ "f46c":
@@ -264485,7 +264485,7 @@ function layersApi_getCongestionEventLayerData() {
264485
264485
  // 重大活动--活动地点
264486
264486
  /* harmony default export */ var js_initBaseLayers = ({data(){return{lastHoverFeature:null,// 记录上一次悬停的要素
264487
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"};},methods:{initBaseLayers(){let that=this;// 加载WMTS
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
264489
264489
  // let resolutions = [
264490
264490
  // 0.010986328125, 0.0054931640625, 0.00274658283125, 0.001373291815625,
264491
264491
  // 0.0006866455078125, 0.00034332275390625, 0.000171661376953125,
@@ -264514,7 +264514,7 @@ geoJSONUrl:"/china_full.json",sdAreaUrl:"/sdArea.json",subwayLineUrl:"/ditieline
264514
264514
  // });
264515
264515
  // this.map.addLayer(wmtslayer);
264516
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);
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:"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);// // 测试车道线
264518
264518
  // const token = `?token=d6bWDtdlxIc-VPNRQWQF-VaTDzwYZIOK_tWug3ZNffcW1nMltpiEdtsrNLCkc_XoVWbV1LhkGcUv5kOLpXt7kA..`
264519
264519
  // let chedaoBGLayer = new TileLayer({
264520
264520
  // layerName: "chedaoBGLayer",
@@ -264823,7 +264823,7 @@ initAreaGDPLayer(){let data=[{city:"济南",latlng:[117.218567,36.63746469],leve
264823
264823
  }else if(value===4){return"#FFD700";// 金色
264824
264824
  }else if(value===5){return"#00FFFF";// 青色
264825
264825
  }else{return"#2E2E2E";// 深灰色,用于默认或其他情况
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:"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);});}}}});
264827
264827
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
264828
264828
  var es_array_reduce = __webpack_require__("13d5");
264829
264829
 
@@ -265654,6 +265654,9 @@ var scratch = __webpack_require__("c1ec");
265654
265654
  case "旅游走廊":
265655
265655
  this.initTravelLayer();
265656
265656
  break;
265657
+ case "都市圈":
265658
+ this.initdushiquanLayer();
265659
+ break;
265657
265660
  case "三维效果演示":
265658
265661
  this.initBIMand3DLayer();
265659
265662
  break;
@@ -265860,19 +265863,23 @@ var es_error_cause = __webpack_require__("d9e2");
265860
265863
  // EXTERNAL MODULE: ./node_modules/ol/style/RegularShape.js
265861
265864
  var ol_style_RegularShape = __webpack_require__("35d8");
265862
265865
 
265863
- // 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=b70a5ef4&scoped=true
265864
- var CityAreaLayervue_type_template_id_b70a5ef4_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() {
265865
265868
  var _vm = this,
265866
265869
  _c = _vm._self._c;
265867
265870
  return _c('div', {
265868
265871
  staticClass: "Popup"
265869
- }, [_c('div', [_vm._v("城市综合评估")]), _c('div', {
265872
+ }, [_c('div', {
265873
+ staticClass: "divtitleone"
265874
+ }, [_vm._v("城市综合评估:")]), _c('div', {
265870
265875
  ref: "etCharts",
265871
265876
  staticStyle: {
265872
265877
  "height": "1.3rem",
265873
265878
  "width": "100%"
265874
265879
  }
265875
- }), _c('div', [_vm._v("公共交通客运分析")]), _c('div', {
265880
+ }), _c('div', {
265881
+ staticClass: "divtitletwo"
265882
+ }, [_vm._v("公共交通客运分析:")]), _c('div', {
265876
265883
  staticClass: "data-list"
265877
265884
  }, [_vm._m(0), _c('div', {
265878
265885
  staticClass: "list-content"
@@ -265895,7 +265902,7 @@ var CityAreaLayervue_type_template_id_b70a5ef4_scoped_true_render = function ren
265895
265902
  }, [_vm._v(" " + _vm._s(_vm.truncateText(item.remark, 15)) + " ")])]);
265896
265903
  }), 0)])]);
265897
265904
  };
265898
- var CityAreaLayervue_type_template_id_b70a5ef4_scoped_true_staticRenderFns = [function () {
265905
+ var CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_staticRenderFns = [function () {
265899
265906
  var _vm = this,
265900
265907
  _c = _vm._self._c;
265901
265908
  return _c('div', {
@@ -265909,10 +265916,51 @@ var CityAreaLayervue_type_template_id_b70a5ef4_scoped_true_staticRenderFns = [fu
265909
265916
  }, [_vm._v("设施说明")])]);
265910
265917
  }];
265911
265918
 
265912
- // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=template&id=b70a5ef4&scoped=true
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
+
265913
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
+ }
265914
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
265915
265962
 
265963
+
265916
265964
  /* harmony default export */ var CityAreaLayervue_type_script_lang_js = ({
265917
265965
  name: "CityAreaLayer",
265918
265966
  props: {
@@ -265921,19 +265969,35 @@ var CityAreaLayervue_type_template_id_b70a5ef4_scoped_true_staticRenderFns = [fu
265921
265969
  data() {
265922
265970
  return {
265923
265971
  infrastructureList: [],
265924
- currentTooltip: null
265972
+ currentTooltip: null,
265973
+ myChart: null // 图表实例引用
265925
265974
  };
265926
265975
  },
265927
265976
  created() {},
265928
265977
  mounted() {
265929
- this.initEcharts();
265930
- this.fetchInfrastructureData();
265978
+ this.fuyuanv();
265931
265979
  },
265932
265980
  beforeDestroy() {
265933
265981
  // 清理提示框
265934
265982
  this.hideTooltip();
265983
+ // 销毁图表实例
265984
+ if (this.myChart) {
265985
+ this.myChart.dispose();
265986
+ this.myChart = null;
265987
+ }
265935
265988
  },
265936
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
+ },
265937
266001
  // 截断文本并添加省略号
265938
266002
  truncateText(text, maxLength = 15) {
265939
266003
  if (!text || text.length <= maxLength) {
@@ -265979,212 +266043,184 @@ var CityAreaLayervue_type_template_id_b70a5ef4_scoped_true_staticRenderFns = [fu
265979
266043
  },
265980
266044
  // 获取基础设施数据
265981
266045
  fetchInfrastructureData() {
265982
- // 这里应该是实际的API调用,现在使用模拟数据
265983
- const mockRes = {
265984
- msg: "操作成功",
265985
- code: 200,
265986
- data: [{
265987
- structureId: null,
265988
- cityCode: "3701",
265989
- cityName: "济南市",
265990
- transportName: "高铁站",
265991
- infrastructureCount: "12",
265992
- remark: "济南西站、济南站、大明湖站、济南东站、历城站、章丘站、章丘北站、章丘南站、雪野站、莱芜北站、钢城站、长清站",
265993
- createBy: null,
265994
- createTime: null,
265995
- updateBy: null,
265996
- updateTime: null,
265997
- transportType: "高铁站"
265998
- }]
266046
+ let param = {
266047
+ sysid: "brain_cockpit",
266048
+ service_code: "API_003_035_006",
266049
+ parameters: {
266050
+ cityCode: this.popupAttr.adcode
266051
+ }
265999
266052
  };
266000
-
266001
- // 模拟API调用后的处理
266002
- if (mockRes.code === 200 && mockRes.data) {
266003
- this.infrastructureList = mockRes.data;
266004
- }
266005
-
266006
- // 实际项目中应该替换为:
266007
- // axios.get('/api/your-endpoint')
266008
- // .then(response => {
266009
- // const res = response.data;
266010
- // if (res.code === 200 && res.data) {
266011
- // this.infrastructureList = res.data;
266012
- // }
266013
- // })
266014
- // .catch(error => {
266015
- // console.error('获取基础设施数据失败:', error);
266016
- // });
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);
266059
+ });
266017
266060
  },
266018
266061
  initEcharts() {
266019
- let response = {
266020
- msg: "操作成功",
266021
- code: 200,
266022
- data: {
266023
- createBy: null,
266024
- createTime: null,
266025
- updateBy: null,
266026
- updateTime: null,
266027
- remark: null,
266028
- transportId: 3701,
266029
- startCityName: "济南市",
266030
- cityArea: "10244",
266031
- population: "941.5",
266032
- metropolitanType: "37",
266033
- metropolitanName: "省会都市圈",
266034
- roadMileage: "0",
266035
- highwayMileage: "18426.1",
266036
- railwayMileage: "835",
266037
- passagener: "0",
266038
- transportType: "32,33,34,35,36,42",
266039
- transportName: null,
266040
- distance: "0",
266041
- dataResource: "手工录入",
266042
- startCityCode: "jinan",
266043
- endCityName: null,
266044
- endCityCode: null,
266045
- freewayMileage: "890.8",
266046
- highspeedMileage: "446",
266047
- max: null,
266048
- min: null,
266049
- avg: null
266062
+ let param = {
266063
+ sysid: "brain_cockpit",
266064
+ service_code: "API_003_035_005",
266065
+ parameters: {
266066
+ transportId: this.popupAttr.adcode
266050
266067
  }
266051
266068
  };
266052
- const data = response.data;
266053
- const values = [parseFloat(data.cityArea),
266054
- // 面积
266055
- parseFloat(data.population),
266056
- // 常驻人口
266057
- parseFloat(data.highspeedMileage),
266058
- // 高速铁路
266059
- parseFloat(data.railwayMileage),
266060
- // 铁路
266061
- parseFloat(data.roadMileage),
266062
- // 公路
266063
- parseFloat(data.freewayMileage) // 高速公路
266064
- ];
266065
- let myChart = echarts_init(this.$refs.etCharts);
266066
- var legendData = ["城市综合评估"];
266067
- var indicator = [{
266068
- text: "面积",
266069
- max: 17192
266070
- }, {
266071
- text: "常驻人口",
266072
- max: 1101.8
266073
- }, {
266074
- text: "高速铁路",
266075
- max: 460
266076
- }, {
266077
- text: "铁路",
266078
- max: 835
266079
- }, {
266080
- text: "公路",
266081
- max: 33072.2
266082
- }, {
266083
- text: "高速公路",
266084
- max: 908.6
266085
- }];
266086
- var dataArr = [{
266087
- value: values,
266088
- name: legendData[0],
266089
- itemStyle: {
266090
- normal: {
266091
- lineStyle: {
266092
- color: "#4BFFFC"
266093
- },
266094
- shadowColor: "#4BFFFC",
266095
- shadowBlur: 10
266096
- }
266097
- },
266098
- areaStyle: {
266099
- normal: {
266100
- color: {
266101
- type: "linear",
266102
- x: 0,
266103
- y: 0,
266104
- x2: 1,
266105
- y2: 1,
266106
- colorStops: [{
266107
- offset: 0,
266108
- color: "#4BFFFC"
266109
- }, {
266110
- offset: 0.5,
266111
- color: "rgba(0,0,0,0)"
266112
- }, {
266113
- offset: 1,
266114
- color: "#4BFFFC"
266115
- }],
266116
- globalCoord: false
266117
- },
266118
- opacity: 1
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();
266119
266089
  }
266120
- }
266121
- }];
266122
- var colorArr = ["#4BFFFC"];
266123
- let option = {
266124
- color: colorArr,
266125
- tooltip: {
266126
- trigger: "item",
266127
- position: 'inside',
266128
- backgroundColor: "rgba(0, 0, 0, 0.7)",
266129
- borderColor: "rgba(75, 255, 252, 0.3)",
266130
- borderWidth: 1,
266131
- textStyle: {
266132
- color: "#fff",
266133
- fontSize: 10
266134
- },
266135
- padding: 5
266136
- },
266137
- radar: {
266138
- center: ["50%", "50%"],
266139
- radius: ["0%", "60%"],
266140
- name: {
266141
- textStyle: {
266142
- color: "#fff",
266143
- fontSize: 10
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
+ }
266144
266122
  },
266145
- padding: [0, 0, 0, 0]
266146
- },
266147
- indicator: indicator,
266148
- splitArea: {
266149
- show: true,
266150
266123
  areaStyle: {
266151
- color: ["rgba(255,255,255,0)", "rgba(255,255,255,0)"]
266152
- }
266153
- },
266154
- axisLine: {
266155
- lineStyle: {
266156
- color: "#153269",
266157
- width: 0.5
266158
- }
266159
- },
266160
- splitLine: {
266161
- lineStyle: {
266162
- color: "#3583b0",
266163
- width: 0.8
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
+ }
266164
266145
  }
266165
- }
266166
- },
266167
- series: [{
266168
- type: "radar",
266169
- symbolSize: 3,
266170
- lineStyle: {
266171
- width: 1
266172
- },
266173
- areaStyle: {
266174
- opacity: 0.7
266175
- },
266176
- data: dataArr
266177
- }]
266178
- };
266179
- myChart.setOption(option);
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
+ });
266180
266207
  }
266181
266208
  },
266182
- watch: {}
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
+ }
266218
+ }
266183
266219
  });
266184
266220
  // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=script&lang=js
266185
266221
  /* harmony default export */ var corridorLayers_CityAreaLayervue_type_script_lang_js = (CityAreaLayervue_type_script_lang_js);
266186
- // EXTERNAL MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue?vue&type=style&index=0&id=b70a5ef4&prod&scoped=true&lang=css
266187
- var CityAreaLayervue_type_style_index_0_id_b70a5ef4_prod_scoped_true_lang_css = __webpack_require__("08e6");
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");
266188
266224
 
266189
266225
  // CONCATENATED MODULE: ./packages/gisMapTianditu/src/component/corridorLayers/CityAreaLayer.vue
266190
266226
 
@@ -266197,11 +266233,11 @@ var CityAreaLayervue_type_style_index_0_id_b70a5ef4_prod_scoped_true_lang_css =
266197
266233
 
266198
266234
  var CityAreaLayer_component = normalizeComponent(
266199
266235
  corridorLayers_CityAreaLayervue_type_script_lang_js,
266200
- CityAreaLayervue_type_template_id_b70a5ef4_scoped_true_render,
266201
- CityAreaLayervue_type_template_id_b70a5ef4_scoped_true_staticRenderFns,
266236
+ CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_render,
266237
+ CityAreaLayervue_type_template_id_5e1a4ac4_scoped_true_staticRenderFns,
266202
266238
  false,
266203
266239
  null,
266204
- "b70a5ef4",
266240
+ "5e1a4ac4",
266205
266241
  null
266206
266242
 
266207
266243
  )
@@ -266508,8 +266544,8 @@ var CityAreaLayer_component = normalizeComponent(
266508
266544
  popupHeaderTitle.innerHTML = attr.otherInfo.portName;
266509
266545
  break;
266510
266546
  case "cityArea":
266511
- this.popupHeight = 500;
266512
- this.popupWidth = 350;
266547
+ this.popupHeight = 530;
266548
+ this.popupWidth = 400;
266513
266549
  this.currentTabComponent = CityAreaLayer;
266514
266550
  this.popupAttributes = data;
266515
266551
  popupHeaderTitle.innerHTML = "";
@@ -266843,7 +266879,14 @@ var CityAreaLayer_component = normalizeComponent(
266843
266879
  lineCap: lineItem.lineCap || "butt"
266844
266880
  })
266845
266881
  }));
266882
+ lineFeature.set("longitude", lineItem.xyArr[0][0]);
266883
+ lineFeature.set("latitude", lineItem.xyArr[0][1]);
266884
+ lineFeature.set("type", lineItem.type);
266846
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);
266847
266890
  lineFeature.set("lineInfo", lineItem.lineInfo);
266848
266891
  lineFeature.set("lineItemData", lineItem); // 保存完整的线数据
266849
266892
  lineFeatures.push(lineFeature);
@@ -267049,8 +267092,7 @@ var CityAreaLayer_component = normalizeComponent(
267049
267092
  const defaultStyle = {
267050
267093
  fillColor: "rgba(0, 0, 255, 0.3)",
267051
267094
  strokeColor: "#0000ff",
267052
- strokeWidth: 2,
267053
- popoup: false
267095
+ strokeWidth: 2
267054
267096
  };
267055
267097
  let polygonFeatures = [];
267056
267098
 
@@ -267060,8 +267102,7 @@ var CityAreaLayer_component = normalizeComponent(
267060
267102
  const itemStyle = Object.assign({}, defaultStyle, {
267061
267103
  fillColor: polygonItem.fillColor,
267062
267104
  strokeColor: polygonItem.strokeColor,
267063
- strokeWidth: polygonItem.strokeWidth,
267064
- popoup: polygonItem.popoup !== undefined ? polygonItem.popoup : false
267105
+ strokeWidth: polygonItem.strokeWidth
267065
267106
  });
267066
267107
 
267067
267108
  // 获取坐标数组
@@ -267082,10 +267123,15 @@ var CityAreaLayer_component = normalizeComponent(
267082
267123
  width: itemStyle.strokeWidth
267083
267124
  })
267084
267125
  }));
267085
-
267086
267126
  // 设置属性信息
267087
- polygonFeature.set("popoup", itemStyle.popoup);
267088
-
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);
267089
267135
  // 设置多边形信息
267090
267136
  if (polygonItem.polygonInfo) {
267091
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.7",
3
+ "version": "1.1.9",
4
4
  "description": "GIS通用组件",
5
5
  "main": "gismap.umd.js",
6
6
  "private": false,