gis-map-universal 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gismap.umd.js +88 -72
- package/package.json +1 -1
package/gismap.umd.js
CHANGED
|
@@ -76892,6 +76892,20 @@ exports.ConcentricLayout = ConcentricLayout;
|
|
|
76892
76892
|
/* harmony default export */ __webpack_exports__["a"] = (null);
|
|
76893
76893
|
|
|
76894
76894
|
|
|
76895
|
+
/***/ }),
|
|
76896
|
+
|
|
76897
|
+
/***/ "45c8":
|
|
76898
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
76899
|
+
|
|
76900
|
+
// Imports
|
|
76901
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
76902
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
76903
|
+
// Module
|
|
76904
|
+
exports.push([module.i, "#map{width:100%;height:var(--height);background-color:transparent!important}.popupBox{height:auto;width:auto;animation:fadenum .6s ease;box-shadow:0 0 8px #000;border:1.7px solid #1b9bba;position:absolute}#popupHeader{height:25px;line-height:25px;background:linear-gradient(90deg,#237d9a,#074055)}#popupHeaderTitle{float:left;margin:0 0 0 7px;color:#fff;font-size:14px;font-weight:600;text-shadow:0 0 1px;letter-spacing:1.5px}#closePopup{height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFqADAAQAAAABAAAAFgAAAAA/6RFgAAACAklEQVQ4EdVVuU5bQRQ91xBMDaKkSkgPwtjQ0ZAiBT38AmKRMCAhsUkUZhEKEr+QniJ1EI1xIM4HQEeJoDbrcO6MH2/m8RywQgquNJp3t+O7zTXw3kj+GvAv0w2DMdp85fnE08lzyXPG8wOC7xiQc34/o3TgU5PFFdYIOkmP9mdesaBG8F10YAk9ch2LQXGSqqYLt9gn6GBS1ZAXlPEBo+iTi8gmBHaR/mwKNEYqM/LhKPJMJLe3S//1kfrOmqH61ykG1kYBU5HC3oIc72IgixjBCgs5FLH21p44HMTAwDhLkA0MgREUZItW04FcsIC8rNI+H8i10W6KPOAHO1KhncE6jswsR+obFTNWKZgjaAkVM0F+J3SwnI4mWp8Ugo/8tTTaZHqG4Ns4MYfolyr5STxAfyyNdN69cauYawK3pVlaWQv6kJM/ODa9uEe1oZ3ghhll/Rrri0qnDJuqoCfGgWcwm25opRbHB9ZnmkYTLMMua1rEHX6z5tO2LI2mxT13r3n69pOk01CQPdZ0gWXaqKt3yE/ZaREsJl3IW5z45bmFc0qAeOTcnH6hbDkFoMgOHVB37OlqDPUzMzqPgVVbMSUaznmGzX0Ks8rLvDqFwP9tV+jq0y2l26oZirabtzr9qXBQuvp0S2laQO0FfN3HG9beW5nqE5YiifIP/yBJqDfjHwFTdJhmYEehHgAAAABJRU5ErkJggg==) 50% no-repeat;background-size:100% 100%;float:right;margin:0 2px;cursor:pointer}#popupContent{color:#fff;text-align:left;padding:0 5px 5px 5px;font-size:14px;width:100%;box-sizing:border-box;overflow:hidden;background-color:rgba(6,63,84,.8)}#popupContent:hover{overflow:overlay}#popupContent::-webkit-scrollbar{width:6px}#popupContent::-webkit-scrollbar-track{background-color:#477dd0;-webkit-box-shadow:inset 0 0 3px rgba(0,0,0,.1);border-radius:6px}#popupContent::-webkit-scrollbar-thumb{background:rgba(14,56,84,.8509803921568627);border-radius:6px}.radarSlider{height:10%;width:90%;z-index:999;margin-left:3%}.radarButton{z-index:999;padding:2px 4px;font-size:14px;color:#fff;background:linear-gradient(180deg,#39a3c4,#065572);border:1px solid #39a3c4;border-radius:3px;cursor:pointer}.radarControlBox{position:absolute;display:flex;align-items:center;justify-content:center;width:40%;height:auto;bottom:var(--bottom);right:var(--right)}.radarSliderTooltip{background-color:rgba(70,189,226,.8)!important}", ""]);
|
|
76905
|
+
// Exports
|
|
76906
|
+
module.exports = exports;
|
|
76907
|
+
|
|
76908
|
+
|
|
76895
76909
|
/***/ }),
|
|
76896
76910
|
|
|
76897
76911
|
/***/ "4625":
|
|
@@ -129217,6 +129231,22 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
|
|
|
129217
129231
|
|
|
129218
129232
|
/***/ }),
|
|
129219
129233
|
|
|
129234
|
+
/***/ "95a9":
|
|
129235
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
129236
|
+
|
|
129237
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
129238
|
+
|
|
129239
|
+
// load the styles
|
|
129240
|
+
var content = __webpack_require__("45c8");
|
|
129241
|
+
if(content.__esModule) content = content.default;
|
|
129242
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
129243
|
+
if(content.locals) module.exports = content.locals;
|
|
129244
|
+
// add the styles to the DOM
|
|
129245
|
+
var add = __webpack_require__("499e").default
|
|
129246
|
+
var update = add("69bea9d6", content, true, {"sourceMap":false,"shadowMode":false});
|
|
129247
|
+
|
|
129248
|
+
/***/ }),
|
|
129249
|
+
|
|
129220
129250
|
/***/ "9626":
|
|
129221
129251
|
/***/ (function(module, exports, __webpack_require__) {
|
|
129222
129252
|
|
|
@@ -143751,22 +143781,6 @@ var ImageStyle = /** @class */ (function () {
|
|
|
143751
143781
|
|
|
143752
143782
|
/***/ }),
|
|
143753
143783
|
|
|
143754
|
-
/***/ "ab7d":
|
|
143755
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
143756
|
-
|
|
143757
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
143758
|
-
|
|
143759
|
-
// load the styles
|
|
143760
|
-
var content = __webpack_require__("d2f0");
|
|
143761
|
-
if(content.__esModule) content = content.default;
|
|
143762
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
143763
|
-
if(content.locals) module.exports = content.locals;
|
|
143764
|
-
// add the styles to the DOM
|
|
143765
|
-
var add = __webpack_require__("499e").default
|
|
143766
|
-
var update = add("988c07e8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
143767
|
-
|
|
143768
|
-
/***/ }),
|
|
143769
|
-
|
|
143770
143784
|
/***/ "abb7":
|
|
143771
143785
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
143772
143786
|
|
|
@@ -168158,20 +168172,6 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
168158
168172
|
}() : undefined);
|
|
168159
168173
|
|
|
168160
168174
|
|
|
168161
|
-
/***/ }),
|
|
168162
|
-
|
|
168163
|
-
/***/ "d2f0":
|
|
168164
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
168165
|
-
|
|
168166
|
-
// Imports
|
|
168167
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
168168
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
168169
|
-
// Module
|
|
168170
|
-
exports.push([module.i, "#map{width:100%;height:var(--height);background-color:transparent!important}.popupBox{height:auto;width:auto;animation:fadenum .6s ease;box-shadow:0 0 8px #000;border:1.7px solid #1b9bba;position:absolute}#popupHeader{height:25px;line-height:25px;background:linear-gradient(90deg,#237d9a,#074055)}#popupHeaderTitle{float:left;margin:0 0 0 7px;color:#fff;font-size:14px;font-weight:600;text-shadow:0 0 1px;letter-spacing:1.5px}#closePopup{height:20px;width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFqADAAQAAAABAAAAFgAAAAA/6RFgAAACAklEQVQ4EdVVuU5bQRQ91xBMDaKkSkgPwtjQ0ZAiBT38AmKRMCAhsUkUZhEKEr+QniJ1EI1xIM4HQEeJoDbrcO6MH2/m8RywQgquNJp3t+O7zTXw3kj+GvAv0w2DMdp85fnE08lzyXPG8wOC7xiQc34/o3TgU5PFFdYIOkmP9mdesaBG8F10YAk9ch2LQXGSqqYLt9gn6GBS1ZAXlPEBo+iTi8gmBHaR/mwKNEYqM/LhKPJMJLe3S//1kfrOmqH61ykG1kYBU5HC3oIc72IgixjBCgs5FLH21p44HMTAwDhLkA0MgREUZItW04FcsIC8rNI+H8i10W6KPOAHO1KhncE6jswsR+obFTNWKZgjaAkVM0F+J3SwnI4mWp8Ugo/8tTTaZHqG4Ns4MYfolyr5STxAfyyNdN69cauYawK3pVlaWQv6kJM/ODa9uEe1oZ3ghhll/Rrri0qnDJuqoCfGgWcwm25opRbHB9ZnmkYTLMMua1rEHX6z5tO2LI2mxT13r3n69pOk01CQPdZ0gWXaqKt3yE/ZaREsJl3IW5z45bmFc0qAeOTcnH6hbDkFoMgOHVB37OlqDPUzMzqPgVVbMSUaznmGzX0Ks8rLvDqFwP9tV+jq0y2l26oZirabtzr9qXBQuvp0S2laQO0FfN3HG9beW5nqE5YiifIP/yBJqDfjHwFTdJhmYEehHgAAAABJRU5ErkJggg==) 50% no-repeat;background-size:100% 100%;float:right;margin:0 2px;cursor:pointer}#popupContent{color:#fff;text-align:left;padding:0 5px 5px 5px;font-size:14px;width:100%;box-sizing:border-box;overflow:hidden;background-color:rgba(6,63,84,.8)}#popupContent:hover{overflow:overlay}#popupContent::-webkit-scrollbar{width:6px}#popupContent::-webkit-scrollbar-track{background-color:#477dd0;-webkit-box-shadow:inset 0 0 3px rgba(0,0,0,.1);border-radius:6px}#popupContent::-webkit-scrollbar-thumb{background:rgba(14,56,84,.8509803921568627);border-radius:6px}.radarSlider{height:10%;width:90%;z-index:999;margin-left:3%}.radarButton{z-index:999;padding:2px 4px;font-size:14px;color:#fff;background:linear-gradient(180deg,#39a3c4,#065572);border:1px solid #39a3c4;border-radius:3px;cursor:pointer}.radarControlBox{position:absolute;display:flex;align-items:center;justify-content:center;width:40%;height:auto;bottom:var(--bottom);right:var(--right)}.radarSliderTooltip{background-color:rgba(70,189,226,.8)!important}", ""]);
|
|
168171
|
-
// Exports
|
|
168172
|
-
module.exports = exports;
|
|
168173
|
-
|
|
168174
|
-
|
|
168175
168175
|
/***/ }),
|
|
168176
168176
|
|
|
168177
168177
|
/***/ "d323":
|
|
@@ -168879,6 +168879,17 @@ module.exports = function (KEY, exec, FORCED, SHAM) {
|
|
|
168879
168879
|
};
|
|
168880
168880
|
|
|
168881
168881
|
|
|
168882
|
+
/***/ }),
|
|
168883
|
+
|
|
168884
|
+
/***/ "d7fb":
|
|
168885
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
168886
|
+
|
|
168887
|
+
"use strict";
|
|
168888
|
+
/* 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_index_vue_vue_type_style_index_0_id_1fb02f4a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("95a9");
|
|
168889
|
+
/* 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_index_vue_vue_type_style_index_0_id_1fb02f4a_prod_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_index_vue_vue_type_style_index_0_id_1fb02f4a_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
168890
|
+
/* unused harmony reexport * */
|
|
168891
|
+
|
|
168892
|
+
|
|
168882
168893
|
/***/ }),
|
|
168883
168894
|
|
|
168884
168895
|
/***/ "d871":
|
|
@@ -169087,17 +169098,6 @@ var getOutDegree = function getOutDegree(graphData, nodeId) {
|
|
|
169087
169098
|
};
|
|
169088
169099
|
exports.getOutDegree = getOutDegree;
|
|
169089
169100
|
|
|
169090
|
-
/***/ }),
|
|
169091
|
-
|
|
169092
|
-
/***/ "d9d8":
|
|
169093
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
169094
|
-
|
|
169095
|
-
"use strict";
|
|
169096
|
-
/* 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_index_vue_vue_type_style_index_0_id_7692f72c_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ab7d");
|
|
169097
|
-
/* 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_index_vue_vue_type_style_index_0_id_7692f72c_prod_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_index_vue_vue_type_style_index_0_id_7692f72c_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
169098
|
-
/* unused harmony reexport * */
|
|
169099
|
-
|
|
169100
|
-
|
|
169101
169101
|
/***/ }),
|
|
169102
169102
|
|
|
169103
169103
|
/***/ "da5c":
|
|
@@ -182586,13 +182586,13 @@ if (typeof window !== 'undefined') {
|
|
|
182586
182586
|
// Indicate to webpack that this file can be concatenated
|
|
182587
182587
|
/* harmony default export */ var setPublicPath = (null);
|
|
182588
182588
|
|
|
182589
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"50d482b6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMap2d/src/index.vue?vue&type=template&id=
|
|
182589
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"50d482b6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/gisMap2d/src/index.vue?vue&type=template&id=1fb02f4a
|
|
182590
182590
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{style:({ '--height': _vm.mapBoxHeight }),attrs:{"id":"map"}}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.shopPopup),expression:"shopPopup"}],ref:"popup",staticClass:"popupBox"},[_c('div',{attrs:{"id":"popupHeader"}},[_c('div',{attrs:{"id":"popupHeaderTitle"}},[_vm._v("详细信息")]),_c('div',{attrs:{"id":"closePopup"},on:{"click":_vm.closePopup}})]),_c('div',{attrs:{"id":"popupContent"}},[_c(_vm.currentTabComponent,{ref:"infoWindowRef",tag:"component",attrs:{"popupAttr":_vm.popupAttributes},on:{"clickPointEvent":_vm.clickPointEvent}})],1)]),(_vm.map)?_c('measureTool',{ref:"measureTool",attrs:{"map":_vm.map,"widgetBoxTop":_vm.widgetBoxTop,"widgetBoxRight":_vm.widgetBoxRight,"widgetBoxDisplay":_vm.widgetBoxDisplay},on:{"updateValue":_vm.measuredrawChange}}):_vm._e(),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRadarShow),expression:"isRadarShow"}],staticClass:"radarControlBox",style:({ '--bottom': _vm.radarSliderBottom, '--right': _vm.radarSliderRight })},[_c('button',{staticClass:"radarButton",on:{"click":_vm.togglePlayback}},[_vm._v(" "+_vm._s(_vm.playIcon)+" ")]),_c('el-slider',{ref:"slider",staticClass:"radarSlider",attrs:{"min":_vm.minValue,"max":_vm.maxValue,"show-stops":"","show-tooltip":_vm.tooltipIsShow,"tooltip-class":"radarSliderTooltip","marks":_vm.marks,"format-tooltip":_vm.formatTooltip},on:{"input":_vm.handleSliderChange},model:{value:(_vm.sliderValue),callback:function ($$v) {_vm.sliderValue=$$v},expression:"sliderValue"}})],1)],1)
|
|
182591
182591
|
}
|
|
182592
182592
|
var staticRenderFns = []
|
|
182593
182593
|
|
|
182594
182594
|
|
|
182595
|
-
// CONCATENATED MODULE: ./packages/gisMap2d/src/index.vue?vue&type=template&id=
|
|
182595
|
+
// CONCATENATED MODULE: ./packages/gisMap2d/src/index.vue?vue&type=template&id=1fb02f4a
|
|
182596
182596
|
|
|
182597
182597
|
// EXTERNAL MODULE: ./node_modules/ol/Map.js + 2 modules
|
|
182598
182598
|
var ol_Map = __webpack_require__("5eee");
|
|
@@ -457196,8 +457196,7 @@ var LatlonPick_component = normalizeComponent(
|
|
|
457196
457196
|
"https://10.0.111.11:8090/iserver/services/map-JHArea/wms111/JHArea";
|
|
457197
457197
|
const baseRoadUrl =
|
|
457198
457198
|
"https://10.0.111.11:8090/iserver/services/map-baseRoad/wms130";
|
|
457199
|
-
const G35Url =
|
|
457200
|
-
"https://10.0.111.11:8090/iserver/services/map-G35/wms130";
|
|
457199
|
+
const G35Url = "https://10.0.111.11:8090/iserver/services/map-G35/wms130";
|
|
457201
457200
|
const styleURL =
|
|
457202
457201
|
"https://10.0.111.11:8090/iserver/services/map-mvt-BaseMapG35/restjsr/v1/vectortile/maps/BaseMapG35/style.json";
|
|
457203
457202
|
// 加载ArcGIS服务
|
|
@@ -457220,7 +457219,7 @@ var LatlonPick_component = normalizeComponent(
|
|
|
457220
457219
|
zIndex: 1,
|
|
457221
457220
|
projection: "EPSG:3857",
|
|
457222
457221
|
});
|
|
457223
|
-
this.map.addLayer(baselayer);
|
|
457222
|
+
// this.map.addLayer(baselayer);
|
|
457224
457223
|
// 加载4市区划高亮WMS服务
|
|
457225
457224
|
let wmslayer = new Tile["default"]({
|
|
457226
457225
|
layerName: "wmslayer",
|
|
@@ -457289,29 +457288,46 @@ var LatlonPick_component = normalizeComponent(
|
|
|
457289
457288
|
});
|
|
457290
457289
|
// 加载geojson数据
|
|
457291
457290
|
let geoJSONUrl =
|
|
457292
|
-
"https://geo.datav.aliyun.com/areas_v2/bound/370000_full.json";
|
|
457291
|
+
// "https://geo.datav.aliyun.com/areas_v2/bound/370000_full.json";
|
|
457292
|
+
// "https://geo.datav.aliyun.com/areas_v3/bound/100000.json";
|
|
457293
|
+
'http://10.166.154.218:8081/imgforGis/china_full.json'
|
|
457293
457294
|
fetch(geoJSONUrl)
|
|
457294
457295
|
.then((response) => response.json())
|
|
457295
457296
|
.then((data) => {
|
|
457296
457297
|
let geoJSONFormat = new format_GeoJSON["default"]();
|
|
457297
457298
|
let vectorLayer = new layer_Vector["default"]({
|
|
457299
|
+
layerName: "xxxx",
|
|
457298
457300
|
source: new source_Vector["default"]({
|
|
457299
457301
|
format: geoJSONFormat,
|
|
457300
|
-
features: geoJSONFormat.readFeatures(data
|
|
457302
|
+
features: geoJSONFormat.readFeatures(data, {
|
|
457303
|
+
dataProjection: "EPSG:4326",
|
|
457304
|
+
featureProjection: "EPSG:3857",
|
|
457305
|
+
}),
|
|
457301
457306
|
}),
|
|
457302
|
-
zIndex:
|
|
457303
|
-
opacity:
|
|
457307
|
+
zIndex: 0,
|
|
457308
|
+
opacity: 1,
|
|
457309
|
+
style: function (feature) {
|
|
457310
|
+
return new Style["default"]({
|
|
457311
|
+
fill: new Fill["default"]({
|
|
457312
|
+
color: "#142747", // 这里设置填充颜色为半透明的红色
|
|
457313
|
+
}),
|
|
457314
|
+
stroke: new Stroke["default"]({
|
|
457315
|
+
color: "#3777d9", // 边界线的颜色
|
|
457316
|
+
width: 1, // 边界线的宽度
|
|
457317
|
+
}),
|
|
457318
|
+
});
|
|
457319
|
+
},
|
|
457304
457320
|
});
|
|
457305
|
-
|
|
457321
|
+
this.map.addLayer(vectorLayer);
|
|
457306
457322
|
});
|
|
457307
457323
|
|
|
457308
457324
|
//监听点击事件
|
|
457309
457325
|
let elPopup = this.$refs.popup;
|
|
457310
457326
|
this.overlayPopup = new Overlay["a" /* default */]({
|
|
457311
457327
|
element: elPopup,
|
|
457312
|
-
positioning: "bottom-
|
|
457328
|
+
positioning: "bottom-right",
|
|
457313
457329
|
stopEvent: true,
|
|
457314
|
-
autoPan: false
|
|
457330
|
+
autoPan: false,
|
|
457315
457331
|
});
|
|
457316
457332
|
this.map.addOverlay(this.overlayPopup);
|
|
457317
457333
|
this.map.on("click", (e) => {
|
|
@@ -457349,12 +457365,12 @@ var LatlonPick_component = normalizeComponent(
|
|
|
457349
457365
|
-this.popupWidth / 2,
|
|
457350
457366
|
-this.popupHeight,
|
|
457351
457367
|
]);
|
|
457352
|
-
this.overlayPopup.set(
|
|
457368
|
+
this.overlayPopup.set("popupBS", "clusterList");
|
|
457353
457369
|
} else {
|
|
457354
457370
|
this.map.getView().animate({
|
|
457355
457371
|
center: feature.getGeometry().getCoordinates(),
|
|
457356
457372
|
zoom: this.map.getView().getZoom() * 2,
|
|
457357
|
-
duration: 1200
|
|
457373
|
+
duration: 1200,
|
|
457358
457374
|
});
|
|
457359
457375
|
}
|
|
457360
457376
|
} else {
|
|
@@ -457478,20 +457494,20 @@ var LatlonPick_component = normalizeComponent(
|
|
|
457478
457494
|
}
|
|
457479
457495
|
}
|
|
457480
457496
|
});
|
|
457481
|
-
this.map.getView().on(
|
|
457497
|
+
this.map.getView().on("change", (event) => {
|
|
457482
457498
|
if (this.map.getView().getZoom() < 18) {
|
|
457483
|
-
let popupBS = this.overlayPopup.get(
|
|
457484
|
-
if (popupBS ===
|
|
457485
|
-
this.closePopup()
|
|
457499
|
+
let popupBS = this.overlayPopup.get("popupBS");
|
|
457500
|
+
if (popupBS === "clusterList") {
|
|
457501
|
+
this.closePopup();
|
|
457486
457502
|
}
|
|
457487
|
-
this.gongganTextLayerList.forEach(e => {
|
|
457488
|
-
e.setVisible(false)
|
|
457503
|
+
this.gongganTextLayerList.forEach((e) => {
|
|
457504
|
+
e.setVisible(false);
|
|
457489
457505
|
});
|
|
457490
|
-
}else{
|
|
457491
|
-
if(this.gongganTextLayerShow){
|
|
457492
|
-
this.gongganTextLayerList.forEach(e => {
|
|
457493
|
-
if(e.get("isvis")){
|
|
457494
|
-
e.setVisible(true)
|
|
457506
|
+
} else {
|
|
457507
|
+
if (this.gongganTextLayerShow) {
|
|
457508
|
+
this.gongganTextLayerList.forEach((e) => {
|
|
457509
|
+
if (e.get("isvis")) {
|
|
457510
|
+
e.setVisible(true);
|
|
457495
457511
|
}
|
|
457496
457512
|
});
|
|
457497
457513
|
}
|
|
@@ -457508,7 +457524,7 @@ var LatlonPick_component = normalizeComponent(
|
|
|
457508
457524
|
url: url,
|
|
457509
457525
|
projection: "EPSG:3857",
|
|
457510
457526
|
imageExtent: Object(ol_proj["transformExtent"])(
|
|
457511
|
-
[73.121466,9.789179,135.138754,53.595483],
|
|
457527
|
+
[73.121466, 9.789179, 135.138754, 53.595483],
|
|
457512
457528
|
"EPSG:4326",
|
|
457513
457529
|
"EPSG:3857"
|
|
457514
457530
|
),
|
|
@@ -457521,12 +457537,12 @@ var LatlonPick_component = normalizeComponent(
|
|
|
457521
457537
|
url: url,
|
|
457522
457538
|
projection: "EPSG:3857",
|
|
457523
457539
|
imageExtent: Object(ol_proj["transformExtent"])(
|
|
457524
|
-
[73.121466,9.789179,135.138754,53.595483],
|
|
457540
|
+
[73.121466, 9.789179, 135.138754, 53.595483],
|
|
457525
457541
|
"EPSG:4326",
|
|
457526
457542
|
"EPSG:3857"
|
|
457527
457543
|
),
|
|
457528
457544
|
});
|
|
457529
|
-
if(copylayer){
|
|
457545
|
+
if (copylayer) {
|
|
457530
457546
|
copylayer.setSource(newSource);
|
|
457531
457547
|
}
|
|
457532
457548
|
},
|
|
@@ -458530,7 +458546,7 @@ function getRadarImg() {
|
|
|
458530
458546
|
created() {},
|
|
458531
458547
|
mounted() {
|
|
458532
458548
|
this.initMap();
|
|
458533
|
-
console.log(this.intervalId);
|
|
458549
|
+
// console.log(this.intervalId);
|
|
458534
458550
|
// this.showRadarCloud();
|
|
458535
458551
|
},
|
|
458536
458552
|
destroyed() {
|
|
@@ -458540,8 +458556,8 @@ function getRadarImg() {
|
|
|
458540
458556
|
|
|
458541
458557
|
// CONCATENATED MODULE: ./packages/gisMap2d/src/index.vue?vue&type=script&lang=js
|
|
458542
458558
|
/* harmony default export */ var gisMap2d_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
|
458543
|
-
// EXTERNAL MODULE: ./packages/gisMap2d/src/index.vue?vue&type=style&index=0&id=
|
|
458544
|
-
var
|
|
458559
|
+
// EXTERNAL MODULE: ./packages/gisMap2d/src/index.vue?vue&type=style&index=0&id=1fb02f4a&prod&lang=css
|
|
458560
|
+
var srcvue_type_style_index_0_id_1fb02f4a_prod_lang_css = __webpack_require__("d7fb");
|
|
458545
458561
|
|
|
458546
458562
|
// CONCATENATED MODULE: ./packages/gisMap2d/src/index.vue
|
|
458547
458563
|
|