xy-map 1.1.26 → 1.1.28
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/package.json +1 -1
- package/xy-map.common.js +1186 -213
- package/xy-map.umd.js +1186 -213
- package/xy-map.umd.min.js +2 -2
package/xy-map.common.js
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
/******/ (function() { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
+
/***/ 5249:
|
|
5
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2389);
|
|
10
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
11
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7125);
|
|
12
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
13
|
+
// Imports
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
17
|
+
// Module
|
|
18
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".el-scrollbar .el-scrollbar__view .el-select-dropdown__item[data-v-5a009b74]{height:auto;max-height:274px;padding:0;overflow:hidden;overflow-y:auto}.el-select-dropdown__item.selected[data-v-5a009b74]{font-weight:400}ul li[data-v-5a009b74] .el-tree .el-tree-node__content{height:auto;padding:0 20px}.el-tree-node__label[data-v-5a009b74]{font-weight:400}.el-tree[data-v-5a009b74] .is-current .el-tree-node__label{color:#409eff;font-weight:700}.el-tree[data-v-5a009b74] .is-current .el-tree-node__children .el-tree-node__label{color:#606266;font-weight:400}.selectInput[data-v-5a009b74]{padding:0 5px;box-sizing:border-box}", ""]);
|
|
19
|
+
// Exports
|
|
20
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/***/ }),
|
|
24
|
+
|
|
4
25
|
/***/ 5203:
|
|
5
26
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6
27
|
|
|
@@ -224,7 +245,28 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".snow[data-v-59d7e867]{position:absolu
|
|
|
224
245
|
|
|
225
246
|
/***/ }),
|
|
226
247
|
|
|
227
|
-
/***/
|
|
248
|
+
/***/ 976:
|
|
249
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
250
|
+
|
|
251
|
+
"use strict";
|
|
252
|
+
__webpack_require__.r(__webpack_exports__);
|
|
253
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2389);
|
|
254
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
255
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7125);
|
|
256
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
257
|
+
// Imports
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
261
|
+
// Module
|
|
262
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".tools[data-v-551ff8b1]{position:absolute;left:0;top:0;margin:15px;background-color:hsla(0,0%,100%,.9);padding:14px;border-radius:5px}.tools .tools-bar[data-v-551ff8b1]{cursor:pointer}.right-fixed[data-v-551ff8b1]{position:absolute;right:0;top:0;margin:15px}", ""]);
|
|
263
|
+
// Exports
|
|
264
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
/***/ }),
|
|
268
|
+
|
|
269
|
+
/***/ 2915:
|
|
228
270
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
229
271
|
|
|
230
272
|
"use strict";
|
|
@@ -238,14 +280,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
238
280
|
|
|
239
281
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
240
282
|
// Module
|
|
241
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".
|
|
283
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".upload[data-v-18d75a4e]{position:relative}.upload input[data-v-18d75a4e]{position:absolute;width:100%;height:100%;left:0;top:0;opacity:0}", ""]);
|
|
242
284
|
// Exports
|
|
243
285
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
244
286
|
|
|
245
287
|
|
|
246
288
|
/***/ }),
|
|
247
289
|
|
|
248
|
-
/***/
|
|
290
|
+
/***/ 3973:
|
|
249
291
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
250
292
|
|
|
251
293
|
"use strict";
|
|
@@ -259,7 +301,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
259
301
|
|
|
260
302
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
261
303
|
// Module
|
|
262
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".upload[data-v-
|
|
304
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".upload[data-v-0f36a3d8]{position:relative}.upload input[data-v-0f36a3d8]{position:absolute;width:100%;height:100%;left:0;top:0;opacity:0}", ""]);
|
|
263
305
|
// Exports
|
|
264
306
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
265
307
|
|
|
@@ -12582,6 +12624,612 @@ module.exports = function shimFlags() {
|
|
|
12582
12624
|
|
|
12583
12625
|
/***/ }),
|
|
12584
12626
|
|
|
12627
|
+
/***/ 1393:
|
|
12628
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12629
|
+
|
|
12630
|
+
"use strict";
|
|
12631
|
+
// ESM COMPAT FLAG
|
|
12632
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12633
|
+
|
|
12634
|
+
// EXPORTS
|
|
12635
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12636
|
+
"open": function() { return /* binding */ shapefile_open; },
|
|
12637
|
+
"openDbf": function() { return /* binding */ openDbf; },
|
|
12638
|
+
"openShp": function() { return /* binding */ openShp; },
|
|
12639
|
+
"read": function() { return /* binding */ node_modules_shapefile_read; }
|
|
12640
|
+
});
|
|
12641
|
+
|
|
12642
|
+
;// CONCATENATED MODULE: ./node_modules/array-source/cancel.js
|
|
12643
|
+
/* harmony default export */ function cancel() {
|
|
12644
|
+
this._array = null;
|
|
12645
|
+
return Promise.resolve();
|
|
12646
|
+
}
|
|
12647
|
+
;// CONCATENATED MODULE: ./node_modules/array-source/read.js
|
|
12648
|
+
/* harmony default export */ function read() {
|
|
12649
|
+
var array = this._array;
|
|
12650
|
+
this._array = null;
|
|
12651
|
+
return Promise.resolve(array ? {
|
|
12652
|
+
done: false,
|
|
12653
|
+
value: array
|
|
12654
|
+
} : {
|
|
12655
|
+
done: true,
|
|
12656
|
+
value: undefined
|
|
12657
|
+
});
|
|
12658
|
+
}
|
|
12659
|
+
;// CONCATENATED MODULE: ./node_modules/array-source/index.js
|
|
12660
|
+
|
|
12661
|
+
|
|
12662
|
+
function array(array) {
|
|
12663
|
+
return new ArraySource(array instanceof Uint8Array ? array : new Uint8Array(array));
|
|
12664
|
+
}
|
|
12665
|
+
function ArraySource(array) {
|
|
12666
|
+
this._array = array;
|
|
12667
|
+
}
|
|
12668
|
+
ArraySource.prototype.read = read;
|
|
12669
|
+
ArraySource.prototype.cancel = cancel;
|
|
12670
|
+
;// CONCATENATED MODULE: ./node_modules/path-source/fetch.js
|
|
12671
|
+
|
|
12672
|
+
/* harmony default export */ function path_source_fetch(url) {
|
|
12673
|
+
return fetch(url).then(function (response) {
|
|
12674
|
+
return response.body && response.body.getReader ? response.body.getReader() : response.arrayBuffer().then(array);
|
|
12675
|
+
});
|
|
12676
|
+
}
|
|
12677
|
+
;// CONCATENATED MODULE: ./node_modules/path-source/request.js
|
|
12678
|
+
|
|
12679
|
+
/* harmony default export */ function request(url) {
|
|
12680
|
+
return new Promise(function (resolve, reject) {
|
|
12681
|
+
var request = new XMLHttpRequest();
|
|
12682
|
+
request.responseType = "arraybuffer";
|
|
12683
|
+
request.onload = function () {
|
|
12684
|
+
resolve(array(request.response));
|
|
12685
|
+
};
|
|
12686
|
+
request.onerror = reject;
|
|
12687
|
+
request.ontimeout = reject;
|
|
12688
|
+
request.open("GET", url, true);
|
|
12689
|
+
request.send();
|
|
12690
|
+
});
|
|
12691
|
+
}
|
|
12692
|
+
;// CONCATENATED MODULE: ./node_modules/path-source/index.js
|
|
12693
|
+
|
|
12694
|
+
|
|
12695
|
+
function path(path) {
|
|
12696
|
+
return (typeof fetch === "function" ? path_source_fetch : request)(path);
|
|
12697
|
+
}
|
|
12698
|
+
;// CONCATENATED MODULE: ./node_modules/stream-source/index.js
|
|
12699
|
+
function stream(source) {
|
|
12700
|
+
return typeof source.read === "function" ? source : source.getReader();
|
|
12701
|
+
}
|
|
12702
|
+
;// CONCATENATED MODULE: ./node_modules/slice-source/empty.js
|
|
12703
|
+
/* harmony default export */ var empty = (new Uint8Array(0));
|
|
12704
|
+
;// CONCATENATED MODULE: ./node_modules/slice-source/cancel.js
|
|
12705
|
+
/* harmony default export */ function slice_source_cancel() {
|
|
12706
|
+
return this._source.cancel();
|
|
12707
|
+
}
|
|
12708
|
+
;// CONCATENATED MODULE: ./node_modules/slice-source/concat.js
|
|
12709
|
+
function concat(a, b) {
|
|
12710
|
+
if (!a.length) return b;
|
|
12711
|
+
if (!b.length) return a;
|
|
12712
|
+
var c = new Uint8Array(a.length + b.length);
|
|
12713
|
+
c.set(a);
|
|
12714
|
+
c.set(b, a.length);
|
|
12715
|
+
return c;
|
|
12716
|
+
}
|
|
12717
|
+
;// CONCATENATED MODULE: ./node_modules/slice-source/read.js
|
|
12718
|
+
|
|
12719
|
+
|
|
12720
|
+
/* harmony default export */ function slice_source_read() {
|
|
12721
|
+
var that = this,
|
|
12722
|
+
array = that._array.subarray(that._index);
|
|
12723
|
+
return that._source.read().then(function (result) {
|
|
12724
|
+
that._array = empty;
|
|
12725
|
+
that._index = 0;
|
|
12726
|
+
return result.done ? array.length > 0 ? {
|
|
12727
|
+
done: false,
|
|
12728
|
+
value: array
|
|
12729
|
+
} : {
|
|
12730
|
+
done: true,
|
|
12731
|
+
value: undefined
|
|
12732
|
+
} : {
|
|
12733
|
+
done: false,
|
|
12734
|
+
value: concat(array, result.value)
|
|
12735
|
+
};
|
|
12736
|
+
});
|
|
12737
|
+
}
|
|
12738
|
+
;// CONCATENATED MODULE: ./node_modules/slice-source/slice.js
|
|
12739
|
+
|
|
12740
|
+
/* harmony default export */ function slice(length) {
|
|
12741
|
+
if ((length |= 0) < 0) throw new Error("invalid length");
|
|
12742
|
+
var that = this,
|
|
12743
|
+
index = this._array.length - this._index;
|
|
12744
|
+
|
|
12745
|
+
// If the request fits within the remaining buffer, resolve it immediately.
|
|
12746
|
+
if (this._index + length <= this._array.length) {
|
|
12747
|
+
return Promise.resolve(this._array.subarray(this._index, this._index += length));
|
|
12748
|
+
}
|
|
12749
|
+
|
|
12750
|
+
// Otherwise, read chunks repeatedly until the request is fulfilled.
|
|
12751
|
+
var array = new Uint8Array(length);
|
|
12752
|
+
array.set(this._array.subarray(this._index));
|
|
12753
|
+
return function read() {
|
|
12754
|
+
return that._source.read().then(function (result) {
|
|
12755
|
+
// When done, it’s possible the request wasn’t fully fullfilled!
|
|
12756
|
+
// If so, the pre-allocated array is too big and needs slicing.
|
|
12757
|
+
if (result.done) {
|
|
12758
|
+
that._array = empty;
|
|
12759
|
+
that._index = 0;
|
|
12760
|
+
return index > 0 ? array.subarray(0, index) : null;
|
|
12761
|
+
}
|
|
12762
|
+
|
|
12763
|
+
// If this chunk fulfills the request, return the resulting array.
|
|
12764
|
+
if (index + result.value.length >= length) {
|
|
12765
|
+
that._array = result.value;
|
|
12766
|
+
that._index = length - index;
|
|
12767
|
+
array.set(result.value.subarray(0, length - index), index);
|
|
12768
|
+
return array;
|
|
12769
|
+
}
|
|
12770
|
+
|
|
12771
|
+
// Otherwise copy this chunk into the array, then read the next chunk.
|
|
12772
|
+
array.set(result.value, index);
|
|
12773
|
+
index += result.value.length;
|
|
12774
|
+
return read();
|
|
12775
|
+
});
|
|
12776
|
+
}();
|
|
12777
|
+
}
|
|
12778
|
+
;// CONCATENATED MODULE: ./node_modules/slice-source/index.js
|
|
12779
|
+
|
|
12780
|
+
|
|
12781
|
+
|
|
12782
|
+
|
|
12783
|
+
function slice_source_slice(source) {
|
|
12784
|
+
return typeof source.slice === "function" ? source : new SliceSource(typeof source.read === "function" ? source : source.getReader());
|
|
12785
|
+
}
|
|
12786
|
+
function SliceSource(source) {
|
|
12787
|
+
this._source = source;
|
|
12788
|
+
this._array = empty;
|
|
12789
|
+
this._index = 0;
|
|
12790
|
+
}
|
|
12791
|
+
SliceSource.prototype.read = slice_source_read;
|
|
12792
|
+
SliceSource.prototype.slice = slice;
|
|
12793
|
+
SliceSource.prototype.cancel = slice_source_cancel;
|
|
12794
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/cancel.js
|
|
12795
|
+
/* harmony default export */ function dbf_cancel() {
|
|
12796
|
+
return this._source.cancel();
|
|
12797
|
+
}
|
|
12798
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/boolean.js
|
|
12799
|
+
/* harmony default export */ function dbf_boolean(value) {
|
|
12800
|
+
return /^[nf]$/i.test(value) ? false : /^[yt]$/i.test(value) ? true : null;
|
|
12801
|
+
}
|
|
12802
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/date.js
|
|
12803
|
+
/* harmony default export */ function date(value) {
|
|
12804
|
+
return new Date(+value.substring(0, 4), value.substring(4, 6) - 1, +value.substring(6, 8));
|
|
12805
|
+
}
|
|
12806
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/number.js
|
|
12807
|
+
/* harmony default export */ function number(value) {
|
|
12808
|
+
return !(value = value.trim()) || isNaN(value = +value) ? null : value;
|
|
12809
|
+
}
|
|
12810
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/string.js
|
|
12811
|
+
/* harmony default export */ function string(value) {
|
|
12812
|
+
return value.trim() || null;
|
|
12813
|
+
}
|
|
12814
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/read.js
|
|
12815
|
+
|
|
12816
|
+
|
|
12817
|
+
|
|
12818
|
+
|
|
12819
|
+
var types = {
|
|
12820
|
+
B: number,
|
|
12821
|
+
C: string,
|
|
12822
|
+
D: date,
|
|
12823
|
+
F: number,
|
|
12824
|
+
L: dbf_boolean,
|
|
12825
|
+
M: number,
|
|
12826
|
+
N: number
|
|
12827
|
+
};
|
|
12828
|
+
/* harmony default export */ function dbf_read() {
|
|
12829
|
+
var that = this,
|
|
12830
|
+
i = 1;
|
|
12831
|
+
return that._source.slice(that._recordLength).then(function (value) {
|
|
12832
|
+
return value && value[0] !== 0x1a ? {
|
|
12833
|
+
done: false,
|
|
12834
|
+
value: that._fields.reduce(function (p, f) {
|
|
12835
|
+
p[f.name] = types[f.type](that._decode(value.subarray(i, i += f.length)));
|
|
12836
|
+
return p;
|
|
12837
|
+
}, {})
|
|
12838
|
+
} : {
|
|
12839
|
+
done: true,
|
|
12840
|
+
value: undefined
|
|
12841
|
+
};
|
|
12842
|
+
});
|
|
12843
|
+
}
|
|
12844
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/view.js
|
|
12845
|
+
/* harmony default export */ function view(array) {
|
|
12846
|
+
return new DataView(array.buffer, array.byteOffset, array.byteLength);
|
|
12847
|
+
}
|
|
12848
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/index.js
|
|
12849
|
+
|
|
12850
|
+
|
|
12851
|
+
|
|
12852
|
+
|
|
12853
|
+
/* harmony default export */ function dbf(source, decoder) {
|
|
12854
|
+
source = slice_source_slice(source);
|
|
12855
|
+
return source.slice(32).then(function (array) {
|
|
12856
|
+
var head = view(array);
|
|
12857
|
+
return source.slice(head.getUint16(8, true) - 32).then(function (array) {
|
|
12858
|
+
return new Dbf(source, decoder, head, view(array));
|
|
12859
|
+
});
|
|
12860
|
+
});
|
|
12861
|
+
}
|
|
12862
|
+
function Dbf(source, decoder, head, body) {
|
|
12863
|
+
this._source = source;
|
|
12864
|
+
this._decode = decoder.decode.bind(decoder);
|
|
12865
|
+
this._recordLength = head.getUint16(10, true);
|
|
12866
|
+
this._fields = [];
|
|
12867
|
+
for (var n = 0; body.getUint8(n) !== 0x0d; n += 32) {
|
|
12868
|
+
for (var j = 0; j < 11; ++j) if (body.getUint8(n + j) === 0) break;
|
|
12869
|
+
this._fields.push({
|
|
12870
|
+
name: this._decode(new Uint8Array(body.buffer, body.byteOffset + n, j)),
|
|
12871
|
+
type: String.fromCharCode(body.getUint8(n + 11)),
|
|
12872
|
+
length: body.getUint8(n + 16)
|
|
12873
|
+
});
|
|
12874
|
+
}
|
|
12875
|
+
}
|
|
12876
|
+
var dbf_prototype = Dbf.prototype;
|
|
12877
|
+
dbf_prototype.read = dbf_read;
|
|
12878
|
+
dbf_prototype.cancel = dbf_cancel;
|
|
12879
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/cancel.js
|
|
12880
|
+
function cancel_cancel() {
|
|
12881
|
+
return this._source.cancel();
|
|
12882
|
+
}
|
|
12883
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/multipoint.js
|
|
12884
|
+
/* harmony default export */ function multipoint(record) {
|
|
12885
|
+
var i = 40,
|
|
12886
|
+
j,
|
|
12887
|
+
n = record.getInt32(36, true),
|
|
12888
|
+
coordinates = new Array(n);
|
|
12889
|
+
for (j = 0; j < n; ++j, i += 16) coordinates[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
|
|
12890
|
+
return {
|
|
12891
|
+
type: "MultiPoint",
|
|
12892
|
+
coordinates: coordinates
|
|
12893
|
+
};
|
|
12894
|
+
}
|
|
12895
|
+
;
|
|
12896
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/null.js
|
|
12897
|
+
/* harmony default export */ function shp_null() {
|
|
12898
|
+
return null;
|
|
12899
|
+
}
|
|
12900
|
+
;
|
|
12901
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/point.js
|
|
12902
|
+
/* harmony default export */ function point(record) {
|
|
12903
|
+
return {
|
|
12904
|
+
type: "Point",
|
|
12905
|
+
coordinates: [record.getFloat64(4, true), record.getFloat64(12, true)]
|
|
12906
|
+
};
|
|
12907
|
+
}
|
|
12908
|
+
;
|
|
12909
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/polygon.js
|
|
12910
|
+
/* harmony default export */ function polygon(record) {
|
|
12911
|
+
var i = 44,
|
|
12912
|
+
j,
|
|
12913
|
+
n = record.getInt32(36, true),
|
|
12914
|
+
m = record.getInt32(40, true),
|
|
12915
|
+
parts = new Array(n),
|
|
12916
|
+
points = new Array(m),
|
|
12917
|
+
polygons = [],
|
|
12918
|
+
holes = [];
|
|
12919
|
+
for (j = 0; j < n; ++j, i += 4) parts[j] = record.getInt32(i, true);
|
|
12920
|
+
for (j = 0; j < m; ++j, i += 16) points[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
|
|
12921
|
+
parts.forEach(function (i, j) {
|
|
12922
|
+
var ring = points.slice(i, parts[j + 1]);
|
|
12923
|
+
if (ringClockwise(ring)) polygons.push([ring]);else holes.push(ring);
|
|
12924
|
+
});
|
|
12925
|
+
holes.forEach(function (hole) {
|
|
12926
|
+
polygons.some(function (polygon) {
|
|
12927
|
+
if (ringContainsSome(polygon[0], hole)) {
|
|
12928
|
+
polygon.push(hole);
|
|
12929
|
+
return true;
|
|
12930
|
+
}
|
|
12931
|
+
}) || polygons.push([hole]);
|
|
12932
|
+
});
|
|
12933
|
+
return polygons.length === 1 ? {
|
|
12934
|
+
type: "Polygon",
|
|
12935
|
+
coordinates: polygons[0]
|
|
12936
|
+
} : {
|
|
12937
|
+
type: "MultiPolygon",
|
|
12938
|
+
coordinates: polygons
|
|
12939
|
+
};
|
|
12940
|
+
}
|
|
12941
|
+
;
|
|
12942
|
+
function ringClockwise(ring) {
|
|
12943
|
+
if ((n = ring.length) < 4) return false;
|
|
12944
|
+
var i = 0,
|
|
12945
|
+
n,
|
|
12946
|
+
area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];
|
|
12947
|
+
while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];
|
|
12948
|
+
return area >= 0;
|
|
12949
|
+
}
|
|
12950
|
+
function ringContainsSome(ring, hole) {
|
|
12951
|
+
var i = -1,
|
|
12952
|
+
n = hole.length,
|
|
12953
|
+
c;
|
|
12954
|
+
while (++i < n) {
|
|
12955
|
+
if (c = ringContains(ring, hole[i])) {
|
|
12956
|
+
return c > 0;
|
|
12957
|
+
}
|
|
12958
|
+
}
|
|
12959
|
+
return false;
|
|
12960
|
+
}
|
|
12961
|
+
function ringContains(ring, point) {
|
|
12962
|
+
var x = point[0],
|
|
12963
|
+
y = point[1],
|
|
12964
|
+
contains = -1;
|
|
12965
|
+
for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {
|
|
12966
|
+
var pi = ring[i],
|
|
12967
|
+
xi = pi[0],
|
|
12968
|
+
yi = pi[1],
|
|
12969
|
+
pj = ring[j],
|
|
12970
|
+
xj = pj[0],
|
|
12971
|
+
yj = pj[1];
|
|
12972
|
+
if (segmentContains(pi, pj, point)) {
|
|
12973
|
+
return 0;
|
|
12974
|
+
}
|
|
12975
|
+
if (yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi) {
|
|
12976
|
+
contains = -contains;
|
|
12977
|
+
}
|
|
12978
|
+
}
|
|
12979
|
+
return contains;
|
|
12980
|
+
}
|
|
12981
|
+
function segmentContains(p0, p1, p2) {
|
|
12982
|
+
var x20 = p2[0] - p0[0],
|
|
12983
|
+
y20 = p2[1] - p0[1];
|
|
12984
|
+
if (x20 === 0 && y20 === 0) return true;
|
|
12985
|
+
var x10 = p1[0] - p0[0],
|
|
12986
|
+
y10 = p1[1] - p0[1];
|
|
12987
|
+
if (x10 === 0 && y10 === 0) return false;
|
|
12988
|
+
var t = (x20 * x10 + y20 * y10) / (x10 * x10 + y10 * y10);
|
|
12989
|
+
return t < 0 || t > 1 ? false : t === 0 || t === 1 ? true : t * x10 === x20 && t * y10 === y20;
|
|
12990
|
+
}
|
|
12991
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/polyline.js
|
|
12992
|
+
/* harmony default export */ function polyline(record) {
|
|
12993
|
+
var i = 44,
|
|
12994
|
+
j,
|
|
12995
|
+
n = record.getInt32(36, true),
|
|
12996
|
+
m = record.getInt32(40, true),
|
|
12997
|
+
parts = new Array(n),
|
|
12998
|
+
points = new Array(m);
|
|
12999
|
+
for (j = 0; j < n; ++j, i += 4) parts[j] = record.getInt32(i, true);
|
|
13000
|
+
for (j = 0; j < m; ++j, i += 16) points[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
|
|
13001
|
+
return n === 1 ? {
|
|
13002
|
+
type: "LineString",
|
|
13003
|
+
coordinates: points
|
|
13004
|
+
} : {
|
|
13005
|
+
type: "MultiLineString",
|
|
13006
|
+
coordinates: parts.map(function (i, j) {
|
|
13007
|
+
return points.slice(i, parts[j + 1]);
|
|
13008
|
+
})
|
|
13009
|
+
};
|
|
13010
|
+
}
|
|
13011
|
+
;
|
|
13012
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/concat.js
|
|
13013
|
+
/* harmony default export */ function shp_concat(a, b) {
|
|
13014
|
+
var ab = new Uint8Array(a.length + b.length);
|
|
13015
|
+
ab.set(a, 0);
|
|
13016
|
+
ab.set(b, a.length);
|
|
13017
|
+
return ab;
|
|
13018
|
+
}
|
|
13019
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/read.js
|
|
13020
|
+
|
|
13021
|
+
|
|
13022
|
+
/* harmony default export */ function shp_read() {
|
|
13023
|
+
var that = this;
|
|
13024
|
+
++that._index;
|
|
13025
|
+
return that._source.slice(12).then(function (array) {
|
|
13026
|
+
if (array == null) return {
|
|
13027
|
+
done: true,
|
|
13028
|
+
value: undefined
|
|
13029
|
+
};
|
|
13030
|
+
var header = view(array);
|
|
13031
|
+
|
|
13032
|
+
// If the record starts with an invalid shape type (see #36), scan ahead in
|
|
13033
|
+
// four-byte increments to find the next valid record, identified by the
|
|
13034
|
+
// expected index, a non-empty content length and a valid shape type.
|
|
13035
|
+
function skip() {
|
|
13036
|
+
return that._source.slice(4).then(function (chunk) {
|
|
13037
|
+
if (chunk == null) return {
|
|
13038
|
+
done: true,
|
|
13039
|
+
value: undefined
|
|
13040
|
+
};
|
|
13041
|
+
header = view(array = shp_concat(array.slice(4), chunk));
|
|
13042
|
+
return header.getInt32(0, false) !== that._index ? skip() : read();
|
|
13043
|
+
});
|
|
13044
|
+
}
|
|
13045
|
+
|
|
13046
|
+
// All records should have at least four bytes (for the record shape type),
|
|
13047
|
+
// so an invalid content length indicates corruption.
|
|
13048
|
+
function read() {
|
|
13049
|
+
var length = header.getInt32(4, false) * 2 - 4,
|
|
13050
|
+
type = header.getInt32(8, true);
|
|
13051
|
+
return length < 0 || type && type !== that._type ? skip() : that._source.slice(length).then(function (chunk) {
|
|
13052
|
+
return {
|
|
13053
|
+
done: false,
|
|
13054
|
+
value: type ? that._parse(view(shp_concat(array.slice(8), chunk))) : null
|
|
13055
|
+
};
|
|
13056
|
+
});
|
|
13057
|
+
}
|
|
13058
|
+
return read();
|
|
13059
|
+
});
|
|
13060
|
+
}
|
|
13061
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shp/index.js
|
|
13062
|
+
|
|
13063
|
+
|
|
13064
|
+
|
|
13065
|
+
|
|
13066
|
+
|
|
13067
|
+
|
|
13068
|
+
|
|
13069
|
+
|
|
13070
|
+
|
|
13071
|
+
var parsers = {
|
|
13072
|
+
0: shp_null,
|
|
13073
|
+
1: point,
|
|
13074
|
+
3: polyline,
|
|
13075
|
+
5: polygon,
|
|
13076
|
+
8: multipoint,
|
|
13077
|
+
11: point,
|
|
13078
|
+
// PointZ
|
|
13079
|
+
13: polyline,
|
|
13080
|
+
// PolyLineZ
|
|
13081
|
+
15: polygon,
|
|
13082
|
+
// PolygonZ
|
|
13083
|
+
18: multipoint,
|
|
13084
|
+
// MultiPointZ
|
|
13085
|
+
21: point,
|
|
13086
|
+
// PointM
|
|
13087
|
+
23: polyline,
|
|
13088
|
+
// PolyLineM
|
|
13089
|
+
25: polygon,
|
|
13090
|
+
// PolygonM
|
|
13091
|
+
28: multipoint // MultiPointM
|
|
13092
|
+
};
|
|
13093
|
+
|
|
13094
|
+
/* harmony default export */ function shp(source) {
|
|
13095
|
+
source = slice_source_slice(source);
|
|
13096
|
+
return source.slice(100).then(function (array) {
|
|
13097
|
+
return new Shp(source, view(array));
|
|
13098
|
+
});
|
|
13099
|
+
}
|
|
13100
|
+
;
|
|
13101
|
+
function Shp(source, header) {
|
|
13102
|
+
var type = header.getInt32(32, true);
|
|
13103
|
+
if (!(type in parsers)) throw new Error("unsupported shape type: " + type);
|
|
13104
|
+
this._source = source;
|
|
13105
|
+
this._type = type;
|
|
13106
|
+
this._index = 0;
|
|
13107
|
+
this._parse = parsers[type];
|
|
13108
|
+
this.bbox = [header.getFloat64(36, true), header.getFloat64(44, true), header.getFloat64(52, true), header.getFloat64(60, true)];
|
|
13109
|
+
}
|
|
13110
|
+
var shp_prototype = Shp.prototype;
|
|
13111
|
+
shp_prototype.read = shp_read;
|
|
13112
|
+
shp_prototype.cancel = cancel_cancel;
|
|
13113
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shapefile/cancel.js
|
|
13114
|
+
function noop() {}
|
|
13115
|
+
/* harmony default export */ function shapefile_cancel() {
|
|
13116
|
+
return Promise.all([this._dbf && this._dbf.cancel(), this._shp.cancel()]).then(noop);
|
|
13117
|
+
}
|
|
13118
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shapefile/read.js
|
|
13119
|
+
/* harmony default export */ function shapefile_read() {
|
|
13120
|
+
var that = this;
|
|
13121
|
+
return Promise.all([that._dbf ? that._dbf.read() : {
|
|
13122
|
+
value: {}
|
|
13123
|
+
}, that._shp.read()]).then(function (results) {
|
|
13124
|
+
var dbf = results[0],
|
|
13125
|
+
shp = results[1];
|
|
13126
|
+
return shp.done ? shp : {
|
|
13127
|
+
done: false,
|
|
13128
|
+
value: {
|
|
13129
|
+
type: "Feature",
|
|
13130
|
+
properties: dbf.value,
|
|
13131
|
+
geometry: shp.value
|
|
13132
|
+
}
|
|
13133
|
+
};
|
|
13134
|
+
});
|
|
13135
|
+
}
|
|
13136
|
+
;
|
|
13137
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/shapefile/index.js
|
|
13138
|
+
|
|
13139
|
+
|
|
13140
|
+
|
|
13141
|
+
|
|
13142
|
+
/* harmony default export */ function shapefile(shpSource, dbfSource, decoder) {
|
|
13143
|
+
return Promise.all([shp(shpSource), dbfSource && dbf(dbfSource, decoder)]).then(function (sources) {
|
|
13144
|
+
return new Shapefile(sources[0], sources[1]);
|
|
13145
|
+
});
|
|
13146
|
+
}
|
|
13147
|
+
function Shapefile(shp, dbf) {
|
|
13148
|
+
this._shp = shp;
|
|
13149
|
+
this._dbf = dbf;
|
|
13150
|
+
this.bbox = shp.bbox;
|
|
13151
|
+
}
|
|
13152
|
+
var shapefile_prototype = Shapefile.prototype;
|
|
13153
|
+
shapefile_prototype.read = shapefile_read;
|
|
13154
|
+
shapefile_prototype.cancel = shapefile_cancel;
|
|
13155
|
+
;// CONCATENATED MODULE: ./node_modules/shapefile/index.js
|
|
13156
|
+
|
|
13157
|
+
|
|
13158
|
+
|
|
13159
|
+
|
|
13160
|
+
|
|
13161
|
+
|
|
13162
|
+
function shapefile_open(shp, dbf, options) {
|
|
13163
|
+
if (typeof dbf === "string") {
|
|
13164
|
+
if (!/\.dbf$/.test(dbf)) dbf += ".dbf";
|
|
13165
|
+
dbf = path(dbf, options);
|
|
13166
|
+
} else if (dbf instanceof ArrayBuffer || dbf instanceof Uint8Array) {
|
|
13167
|
+
dbf = array(dbf);
|
|
13168
|
+
} else if (dbf != null) {
|
|
13169
|
+
dbf = stream(dbf);
|
|
13170
|
+
}
|
|
13171
|
+
if (typeof shp === "string") {
|
|
13172
|
+
if (!/\.shp$/.test(shp)) shp += ".shp";
|
|
13173
|
+
if (dbf === undefined) dbf = path(shp.substring(0, shp.length - 4) + ".dbf", options).catch(function () {});
|
|
13174
|
+
shp = path(shp, options);
|
|
13175
|
+
} else if (shp instanceof ArrayBuffer || shp instanceof Uint8Array) {
|
|
13176
|
+
shp = array(shp);
|
|
13177
|
+
} else {
|
|
13178
|
+
shp = stream(shp);
|
|
13179
|
+
}
|
|
13180
|
+
return Promise.all([shp, dbf]).then(function (sources) {
|
|
13181
|
+
var shp = sources[0],
|
|
13182
|
+
dbf = sources[1],
|
|
13183
|
+
encoding = "windows-1252";
|
|
13184
|
+
if (options && options.encoding != null) encoding = options.encoding;
|
|
13185
|
+
return shapefile(shp, dbf, dbf && new TextDecoder(encoding));
|
|
13186
|
+
});
|
|
13187
|
+
}
|
|
13188
|
+
function openShp(source, options) {
|
|
13189
|
+
if (typeof source === "string") {
|
|
13190
|
+
if (!/\.shp$/.test(source)) source += ".shp";
|
|
13191
|
+
source = path(source, options);
|
|
13192
|
+
} else if (source instanceof ArrayBuffer || source instanceof Uint8Array) {
|
|
13193
|
+
source = array(source);
|
|
13194
|
+
} else {
|
|
13195
|
+
source = stream(source);
|
|
13196
|
+
}
|
|
13197
|
+
return Promise.resolve(source).then(shp);
|
|
13198
|
+
}
|
|
13199
|
+
function openDbf(source, options) {
|
|
13200
|
+
var encoding = "windows-1252";
|
|
13201
|
+
if (options && options.encoding != null) encoding = options.encoding;
|
|
13202
|
+
encoding = new TextDecoder(encoding);
|
|
13203
|
+
if (typeof source === "string") {
|
|
13204
|
+
if (!/\.dbf$/.test(source)) source += ".dbf";
|
|
13205
|
+
source = path(source, options);
|
|
13206
|
+
} else if (source instanceof ArrayBuffer || source instanceof Uint8Array) {
|
|
13207
|
+
source = array(source);
|
|
13208
|
+
} else {
|
|
13209
|
+
source = stream(source);
|
|
13210
|
+
}
|
|
13211
|
+
return Promise.resolve(source).then(function (source) {
|
|
13212
|
+
return dbf(source, encoding);
|
|
13213
|
+
});
|
|
13214
|
+
}
|
|
13215
|
+
function node_modules_shapefile_read(shp, dbf, options) {
|
|
13216
|
+
return shapefile_open(shp, dbf, options).then(function (source) {
|
|
13217
|
+
var features = [],
|
|
13218
|
+
collection = {
|
|
13219
|
+
type: "FeatureCollection",
|
|
13220
|
+
features: features,
|
|
13221
|
+
bbox: source.bbox
|
|
13222
|
+
};
|
|
13223
|
+
return source.read().then(function read(result) {
|
|
13224
|
+
if (result.done) return collection;
|
|
13225
|
+
features.push(result.value);
|
|
13226
|
+
return source.read().then(read);
|
|
13227
|
+
});
|
|
13228
|
+
});
|
|
13229
|
+
}
|
|
13230
|
+
|
|
13231
|
+
/***/ }),
|
|
13232
|
+
|
|
12585
13233
|
/***/ 5725:
|
|
12586
13234
|
/***/ (function(module) {
|
|
12587
13235
|
|
|
@@ -23676,6 +24324,22 @@ function defaultCompare(a, b) {
|
|
|
23676
24324
|
|
|
23677
24325
|
/***/ }),
|
|
23678
24326
|
|
|
24327
|
+
/***/ 6709:
|
|
24328
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
24329
|
+
|
|
24330
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
24331
|
+
|
|
24332
|
+
// load the styles
|
|
24333
|
+
var content = __webpack_require__(5249);
|
|
24334
|
+
if(content.__esModule) content = content.default;
|
|
24335
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
24336
|
+
if(content.locals) module.exports = content.locals;
|
|
24337
|
+
// add the styles to the DOM
|
|
24338
|
+
var add = (__webpack_require__(7037)/* ["default"] */ .Z)
|
|
24339
|
+
var update = add("02e52203", content, true, {"sourceMap":false,"shadowMode":false});
|
|
24340
|
+
|
|
24341
|
+
/***/ }),
|
|
24342
|
+
|
|
23679
24343
|
/***/ 6957:
|
|
23680
24344
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
23681
24345
|
|
|
@@ -23788,35 +24452,51 @@ var update = add("42e140a1", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
23788
24452
|
|
|
23789
24453
|
/***/ }),
|
|
23790
24454
|
|
|
23791
|
-
/***/
|
|
24455
|
+
/***/ 3817:
|
|
24456
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
24457
|
+
|
|
24458
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
24459
|
+
|
|
24460
|
+
// load the styles
|
|
24461
|
+
var content = __webpack_require__(976);
|
|
24462
|
+
if(content.__esModule) content = content.default;
|
|
24463
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
24464
|
+
if(content.locals) module.exports = content.locals;
|
|
24465
|
+
// add the styles to the DOM
|
|
24466
|
+
var add = (__webpack_require__(7037)/* ["default"] */ .Z)
|
|
24467
|
+
var update = add("18261548", content, true, {"sourceMap":false,"shadowMode":false});
|
|
24468
|
+
|
|
24469
|
+
/***/ }),
|
|
24470
|
+
|
|
24471
|
+
/***/ 2412:
|
|
23792
24472
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
23793
24473
|
|
|
23794
24474
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
23795
24475
|
|
|
23796
24476
|
// load the styles
|
|
23797
|
-
var content = __webpack_require__(
|
|
24477
|
+
var content = __webpack_require__(2915);
|
|
23798
24478
|
if(content.__esModule) content = content.default;
|
|
23799
24479
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
23800
24480
|
if(content.locals) module.exports = content.locals;
|
|
23801
24481
|
// add the styles to the DOM
|
|
23802
24482
|
var add = (__webpack_require__(7037)/* ["default"] */ .Z)
|
|
23803
|
-
var update = add("
|
|
24483
|
+
var update = add("4e2bfa31", content, true, {"sourceMap":false,"shadowMode":false});
|
|
23804
24484
|
|
|
23805
24485
|
/***/ }),
|
|
23806
24486
|
|
|
23807
|
-
/***/
|
|
24487
|
+
/***/ 1811:
|
|
23808
24488
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
23809
24489
|
|
|
23810
24490
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
23811
24491
|
|
|
23812
24492
|
// load the styles
|
|
23813
|
-
var content = __webpack_require__(
|
|
24493
|
+
var content = __webpack_require__(3973);
|
|
23814
24494
|
if(content.__esModule) content = content.default;
|
|
23815
24495
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
23816
24496
|
if(content.locals) module.exports = content.locals;
|
|
23817
24497
|
// add the styles to the DOM
|
|
23818
24498
|
var add = (__webpack_require__(7037)/* ["default"] */ .Z)
|
|
23819
|
-
var update = add("
|
|
24499
|
+
var update = add("6d5c4a29", content, true, {"sourceMap":false,"shadowMode":false});
|
|
23820
24500
|
|
|
23821
24501
|
/***/ }),
|
|
23822
24502
|
|
|
@@ -24496,6 +25176,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24496
25176
|
"drawPoint": function() { return /* reexport */ draw_point; },
|
|
24497
25177
|
"drawPolygon": function() { return /* reexport */ draw_polygon; },
|
|
24498
25178
|
"drawTools": function() { return /* reexport */ draw; },
|
|
25179
|
+
"elTreeSelect": function() { return /* reexport */ el_tree_select; },
|
|
25180
|
+
"jsonFile": function() { return /* reexport */ jsonFile; },
|
|
24499
25181
|
"mapDraw": function() { return /* reexport */ mapDraw; },
|
|
24500
25182
|
"mapEvent": function() { return /* reexport */ mapEvent; },
|
|
24501
25183
|
"mapFullScreen": function() { return /* reexport */ mapFullScreen; },
|
|
@@ -24504,7 +25186,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24504
25186
|
"mapMarker": function() { return /* reexport */ mapMarker; },
|
|
24505
25187
|
"mapRain": function() { return /* reexport */ mapRain; },
|
|
24506
25188
|
"mapSdk": function() { return /* reexport */ package_map; },
|
|
24507
|
-
"
|
|
25189
|
+
"mapStyle": function() { return /* reexport */ mapStyle; },
|
|
25190
|
+
"mapTools": function() { return /* reexport */ mapTools; },
|
|
25191
|
+
"shpFile": function() { return /* reexport */ shpFile; }
|
|
24508
25192
|
});
|
|
24509
25193
|
|
|
24510
25194
|
// NAMESPACE OBJECT: ./src/package/index.js
|
|
@@ -24515,6 +25199,8 @@ __webpack_require__.d(package_namespaceObject, {
|
|
|
24515
25199
|
"Qd": function() { return draw_point; },
|
|
24516
25200
|
"is": function() { return draw_polygon; },
|
|
24517
25201
|
"Cx": function() { return draw; },
|
|
25202
|
+
"FC": function() { return el_tree_select; },
|
|
25203
|
+
"tP": function() { return jsonFile; },
|
|
24518
25204
|
"Gx": function() { return mapDraw; },
|
|
24519
25205
|
"A": function() { return mapEvent; },
|
|
24520
25206
|
"C2": function() { return mapFullScreen; },
|
|
@@ -24523,7 +25209,9 @@ __webpack_require__.d(package_namespaceObject, {
|
|
|
24523
25209
|
"QT": function() { return mapMarker; },
|
|
24524
25210
|
"V_": function() { return mapRain; },
|
|
24525
25211
|
"xt": function() { return package_map; },
|
|
24526
|
-
"
|
|
25212
|
+
"UC": function() { return mapStyle; },
|
|
25213
|
+
"zg": function() { return mapTools; },
|
|
25214
|
+
"zn": function() { return shpFile; }
|
|
24527
25215
|
});
|
|
24528
25216
|
|
|
24529
25217
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -59084,8 +59772,304 @@ var mapFullScreen_component = normalizeComponent(
|
|
|
59084
59772
|
)
|
|
59085
59773
|
|
|
59086
59774
|
/* harmony default export */ var mapFullScreen = (mapFullScreen_component.exports);
|
|
59087
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/
|
|
59088
|
-
var
|
|
59775
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/el-tree-select.vue?vue&type=template&id=5a009b74&scoped=true&
|
|
59776
|
+
var el_tree_selectvue_type_template_id_5a009b74_scoped_true_render = function render() {
|
|
59777
|
+
var _vm = this,
|
|
59778
|
+
_c = _vm._self._c;
|
|
59779
|
+
return _c('el-select', _vm._b({
|
|
59780
|
+
ref: "treeSelect",
|
|
59781
|
+
staticStyle: {
|
|
59782
|
+
"width": "100%"
|
|
59783
|
+
},
|
|
59784
|
+
attrs: {
|
|
59785
|
+
"size": "small",
|
|
59786
|
+
"value": _vm.valueTitle,
|
|
59787
|
+
"clearable": _vm.clearable,
|
|
59788
|
+
"popper-append-to-body": false
|
|
59789
|
+
},
|
|
59790
|
+
on: {
|
|
59791
|
+
"clear": _vm.clearHandle
|
|
59792
|
+
}
|
|
59793
|
+
}, 'el-select', _vm.$attrs, false), [_c('div', [_c('el-input', _vm._b({
|
|
59794
|
+
staticClass: "selectInput",
|
|
59795
|
+
attrs: {
|
|
59796
|
+
"size": "small",
|
|
59797
|
+
"placeholder": _vm.placeholder
|
|
59798
|
+
},
|
|
59799
|
+
model: {
|
|
59800
|
+
value: _vm.filterText,
|
|
59801
|
+
callback: function ($$v) {
|
|
59802
|
+
_vm.filterText = $$v;
|
|
59803
|
+
},
|
|
59804
|
+
expression: "filterText"
|
|
59805
|
+
}
|
|
59806
|
+
}, 'el-input', _vm.$attrs, false)), _c('el-option', {
|
|
59807
|
+
staticClass: "options",
|
|
59808
|
+
attrs: {
|
|
59809
|
+
"value": _vm.valueTitle,
|
|
59810
|
+
"label": _vm.valueTitle
|
|
59811
|
+
}
|
|
59812
|
+
}, [_c('el-tree', _vm._b({
|
|
59813
|
+
ref: "selectTree",
|
|
59814
|
+
attrs: {
|
|
59815
|
+
"id": "tree-option",
|
|
59816
|
+
"size": "small",
|
|
59817
|
+
"accordion": _vm.accordion,
|
|
59818
|
+
"data": _vm.options,
|
|
59819
|
+
"props": _vm.props,
|
|
59820
|
+
"node-key": _vm.props.value,
|
|
59821
|
+
"default-expanded-keys": _vm.defaultExpandedKey,
|
|
59822
|
+
"filter-node-method": _vm.filterNode
|
|
59823
|
+
},
|
|
59824
|
+
on: {
|
|
59825
|
+
"node-click": _vm.handleNodeClick
|
|
59826
|
+
}
|
|
59827
|
+
}, 'el-tree', _vm.$attrs, false))], 1)], 1)]);
|
|
59828
|
+
};
|
|
59829
|
+
var el_tree_selectvue_type_template_id_5a009b74_scoped_true_staticRenderFns = [];
|
|
59830
|
+
|
|
59831
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/el-tree-select.vue?vue&type=script&lang=js&
|
|
59832
|
+
/* harmony default export */ var el_tree_selectvue_type_script_lang_js_ = ({
|
|
59833
|
+
name: 'el-tree-select',
|
|
59834
|
+
props: {
|
|
59835
|
+
/* 配置项 */
|
|
59836
|
+
props: {
|
|
59837
|
+
type: Object,
|
|
59838
|
+
default: () => {
|
|
59839
|
+
return {
|
|
59840
|
+
value: 'id',
|
|
59841
|
+
// ID字段名
|
|
59842
|
+
label: 'title',
|
|
59843
|
+
// 显示名称
|
|
59844
|
+
children: 'children' // 子级字段名
|
|
59845
|
+
};
|
|
59846
|
+
}
|
|
59847
|
+
},
|
|
59848
|
+
|
|
59849
|
+
/* 选项列表数据(树形结构的对象数组) */
|
|
59850
|
+
options: {
|
|
59851
|
+
type: Array,
|
|
59852
|
+
default: () => {
|
|
59853
|
+
return [];
|
|
59854
|
+
}
|
|
59855
|
+
},
|
|
59856
|
+
/* 初始值 */
|
|
59857
|
+
value: {
|
|
59858
|
+
type: Number,
|
|
59859
|
+
default: () => {
|
|
59860
|
+
return null;
|
|
59861
|
+
}
|
|
59862
|
+
},
|
|
59863
|
+
/* 可清空选项 */
|
|
59864
|
+
clearable: {
|
|
59865
|
+
type: Boolean,
|
|
59866
|
+
default: () => {
|
|
59867
|
+
return true;
|
|
59868
|
+
}
|
|
59869
|
+
},
|
|
59870
|
+
/* 自动收起 */
|
|
59871
|
+
accordion: {
|
|
59872
|
+
type: Boolean,
|
|
59873
|
+
default: () => {
|
|
59874
|
+
return false;
|
|
59875
|
+
}
|
|
59876
|
+
},
|
|
59877
|
+
placeholder: {
|
|
59878
|
+
type: String,
|
|
59879
|
+
default: () => {
|
|
59880
|
+
return '搜索关键字';
|
|
59881
|
+
}
|
|
59882
|
+
}
|
|
59883
|
+
},
|
|
59884
|
+
data() {
|
|
59885
|
+
return {
|
|
59886
|
+
filterText: '',
|
|
59887
|
+
valueId: this.value,
|
|
59888
|
+
// 初始值
|
|
59889
|
+
valueTitle: '',
|
|
59890
|
+
defaultExpandedKey: []
|
|
59891
|
+
};
|
|
59892
|
+
},
|
|
59893
|
+
mounted() {
|
|
59894
|
+
this.initHandle();
|
|
59895
|
+
},
|
|
59896
|
+
methods: {
|
|
59897
|
+
// 初始化值
|
|
59898
|
+
initHandle() {
|
|
59899
|
+
if (this.valueId) {
|
|
59900
|
+
this.valueTitle = this.$refs.selectTree.getNode(this.valueId).data[this.props.label]; // 初始化显示
|
|
59901
|
+
this.$refs.selectTree.setCurrentKey(this.valueId); // 设置默认选中
|
|
59902
|
+
this.defaultExpandedKey = [this.valueId]; // 设置默认展开
|
|
59903
|
+
}
|
|
59904
|
+
|
|
59905
|
+
this.initScroll();
|
|
59906
|
+
},
|
|
59907
|
+
// 初始化滚动条
|
|
59908
|
+
initScroll() {
|
|
59909
|
+
this.$nextTick(() => {
|
|
59910
|
+
let scrollWrap = document.querySelectorAll('.el-scrollbar .el-select-dropdown__wrap')[0];
|
|
59911
|
+
let scrollBar = document.querySelectorAll('.el-scrollbar .el-scrollbar__bar');
|
|
59912
|
+
scrollWrap.style.cssText = 'margin: 0px; max-height: none; overflow: hidden;';
|
|
59913
|
+
scrollBar.forEach(ele => ele.style.width = 0);
|
|
59914
|
+
});
|
|
59915
|
+
},
|
|
59916
|
+
// 切换选项
|
|
59917
|
+
handleNodeClick(node) {
|
|
59918
|
+
this.valueTitle = node[this.props.label];
|
|
59919
|
+
this.valueId = node[this.props.value];
|
|
59920
|
+
this.$emit('getValue', this.valueId);
|
|
59921
|
+
this.$emit('input', this.valueId);
|
|
59922
|
+
// console.log(this.valueId)
|
|
59923
|
+
this.defaultExpandedKey = [];
|
|
59924
|
+
if (!node.children || !node.children.length) {
|
|
59925
|
+
//补录选择完选项弹框不能收起
|
|
59926
|
+
this.$refs.treeSelect.blur();
|
|
59927
|
+
}
|
|
59928
|
+
},
|
|
59929
|
+
// 清除选中
|
|
59930
|
+
clearHandle() {
|
|
59931
|
+
this.valueTitle = '';
|
|
59932
|
+
this.valueId = null;
|
|
59933
|
+
this.defaultExpandedKey = [];
|
|
59934
|
+
this.clearSelected();
|
|
59935
|
+
this.$emit('getValue', null);
|
|
59936
|
+
},
|
|
59937
|
+
/* 清空选中样式 */
|
|
59938
|
+
clearSelected() {
|
|
59939
|
+
let allNode = document.querySelectorAll('#tree-option .el-tree-node');
|
|
59940
|
+
allNode.forEach(element => element.classList.remove('is-current'));
|
|
59941
|
+
},
|
|
59942
|
+
filterNode(value, data) {
|
|
59943
|
+
if (!value) return true;
|
|
59944
|
+
return data.name.indexOf(value) !== -1;
|
|
59945
|
+
}
|
|
59946
|
+
},
|
|
59947
|
+
watch: {
|
|
59948
|
+
value() {
|
|
59949
|
+
this.valueId = this.value;
|
|
59950
|
+
this.initHandle();
|
|
59951
|
+
},
|
|
59952
|
+
filterText(val) {
|
|
59953
|
+
this.$refs.selectTree.filter(val);
|
|
59954
|
+
}
|
|
59955
|
+
}
|
|
59956
|
+
});
|
|
59957
|
+
;// CONCATENATED MODULE: ./src/package/components/el-tree-select.vue?vue&type=script&lang=js&
|
|
59958
|
+
/* harmony default export */ var components_el_tree_selectvue_type_script_lang_js_ = (el_tree_selectvue_type_script_lang_js_);
|
|
59959
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/el-tree-select.vue?vue&type=style&index=0&id=5a009b74&prod&scoped=true&lang=css&
|
|
59960
|
+
var el_tree_selectvue_type_style_index_0_id_5a009b74_prod_scoped_true_lang_css_ = __webpack_require__(6709);
|
|
59961
|
+
;// CONCATENATED MODULE: ./src/package/components/el-tree-select.vue?vue&type=style&index=0&id=5a009b74&prod&scoped=true&lang=css&
|
|
59962
|
+
|
|
59963
|
+
;// CONCATENATED MODULE: ./src/package/components/el-tree-select.vue
|
|
59964
|
+
|
|
59965
|
+
|
|
59966
|
+
|
|
59967
|
+
;
|
|
59968
|
+
|
|
59969
|
+
|
|
59970
|
+
/* normalize component */
|
|
59971
|
+
|
|
59972
|
+
var el_tree_select_component = normalizeComponent(
|
|
59973
|
+
components_el_tree_selectvue_type_script_lang_js_,
|
|
59974
|
+
el_tree_selectvue_type_template_id_5a009b74_scoped_true_render,
|
|
59975
|
+
el_tree_selectvue_type_template_id_5a009b74_scoped_true_staticRenderFns,
|
|
59976
|
+
false,
|
|
59977
|
+
null,
|
|
59978
|
+
"5a009b74",
|
|
59979
|
+
null
|
|
59980
|
+
|
|
59981
|
+
)
|
|
59982
|
+
|
|
59983
|
+
/* harmony default export */ var el_tree_select = (el_tree_select_component.exports);
|
|
59984
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapStyle.vue?vue&type=template&id=1a040aed&scoped=true&
|
|
59985
|
+
var mapStylevue_type_template_id_1a040aed_scoped_true_render = function render() {
|
|
59986
|
+
var _vm = this,
|
|
59987
|
+
_c = _vm._self._c;
|
|
59988
|
+
return _c('div', [_c('el-radio-group', {
|
|
59989
|
+
attrs: {
|
|
59990
|
+
"size": "small"
|
|
59991
|
+
},
|
|
59992
|
+
model: {
|
|
59993
|
+
value: _vm.radio,
|
|
59994
|
+
callback: function ($$v) {
|
|
59995
|
+
_vm.radio = $$v;
|
|
59996
|
+
},
|
|
59997
|
+
expression: "radio"
|
|
59998
|
+
}
|
|
59999
|
+
}, [_c('el-radio-button', {
|
|
60000
|
+
attrs: {
|
|
60001
|
+
"label": 1
|
|
60002
|
+
}
|
|
60003
|
+
}, [_vm._v("卫星图")]), _c('el-radio-button', {
|
|
60004
|
+
attrs: {
|
|
60005
|
+
"label": 2
|
|
60006
|
+
}
|
|
60007
|
+
}, [_vm._v("矢量图")])], 1)], 1);
|
|
60008
|
+
};
|
|
60009
|
+
var mapStylevue_type_template_id_1a040aed_scoped_true_staticRenderFns = [];
|
|
60010
|
+
|
|
60011
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapStyle.vue?vue&type=script&lang=js&
|
|
60012
|
+
|
|
60013
|
+
// import { showLayer } from '../layers/index.js'
|
|
60014
|
+
|
|
60015
|
+
/* harmony default export */ var mapStylevue_type_script_lang_js_ = ({
|
|
60016
|
+
props: {
|
|
60017
|
+
type: {
|
|
60018
|
+
type: Number,
|
|
60019
|
+
default: 1
|
|
60020
|
+
}
|
|
60021
|
+
},
|
|
60022
|
+
data() {
|
|
60023
|
+
return {
|
|
60024
|
+
radio: 1,
|
|
60025
|
+
default: ''
|
|
60026
|
+
};
|
|
60027
|
+
},
|
|
60028
|
+
watch: {
|
|
60029
|
+
radio(val) {
|
|
60030
|
+
if (val === 1) {
|
|
60031
|
+
package_map.checkStyle(this.default).then(() => {
|
|
60032
|
+
this.$emit('checkStyle', val);
|
|
60033
|
+
});
|
|
60034
|
+
} else {
|
|
60035
|
+
package_map.checkStyle('mapbox://styles/mapbox/streets-v11').then(() => {
|
|
60036
|
+
this.$emit('checkStyle', val);
|
|
60037
|
+
});
|
|
60038
|
+
}
|
|
60039
|
+
}
|
|
60040
|
+
},
|
|
60041
|
+
mounted() {
|
|
60042
|
+
this.radio = this.type;
|
|
60043
|
+
setTimeout(() => {
|
|
60044
|
+
this.default = package_map.map.getStyle();
|
|
60045
|
+
// console.log(this.default)
|
|
60046
|
+
}, 1000);
|
|
60047
|
+
}
|
|
60048
|
+
});
|
|
60049
|
+
;// CONCATENATED MODULE: ./src/package/components/mapStyle.vue?vue&type=script&lang=js&
|
|
60050
|
+
/* harmony default export */ var components_mapStylevue_type_script_lang_js_ = (mapStylevue_type_script_lang_js_);
|
|
60051
|
+
;// CONCATENATED MODULE: ./src/package/components/mapStyle.vue
|
|
60052
|
+
|
|
60053
|
+
|
|
60054
|
+
|
|
60055
|
+
|
|
60056
|
+
|
|
60057
|
+
/* normalize component */
|
|
60058
|
+
;
|
|
60059
|
+
var mapStyle_component = normalizeComponent(
|
|
60060
|
+
components_mapStylevue_type_script_lang_js_,
|
|
60061
|
+
mapStylevue_type_template_id_1a040aed_scoped_true_render,
|
|
60062
|
+
mapStylevue_type_template_id_1a040aed_scoped_true_staticRenderFns,
|
|
60063
|
+
false,
|
|
60064
|
+
null,
|
|
60065
|
+
"1a040aed",
|
|
60066
|
+
null
|
|
60067
|
+
|
|
60068
|
+
)
|
|
60069
|
+
|
|
60070
|
+
/* harmony default export */ var mapStyle = (mapStyle_component.exports);
|
|
60071
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/index.vue?vue&type=template&id=551ff8b1&scoped=true&
|
|
60072
|
+
var drawvue_type_template_id_551ff8b1_scoped_true_render = function render() {
|
|
59089
60073
|
var _vm = this,
|
|
59090
60074
|
_c = _vm._self._c;
|
|
59091
60075
|
return _c('div', [_c('div', {
|
|
@@ -59202,104 +60186,183 @@ var drawvue_type_template_id_3900f585_scoped_true_render = function render() {
|
|
|
59202
60186
|
on: {
|
|
59203
60187
|
"click": _vm.search
|
|
59204
60188
|
}
|
|
59205
|
-
}, [_vm._v("搜索")])], 1)]) : _vm._e(), _vm.
|
|
60189
|
+
}, [_vm._v("搜索")])], 1)]) : _vm._e(), _vm.uploadShp || _vm.uploadJson ? _c('div', {
|
|
60190
|
+
staticClass: "mt-15"
|
|
60191
|
+
}, [_vm.uploadShp ? _c('shp-file', {
|
|
60192
|
+
on: {
|
|
60193
|
+
"upload": _vm.getUpload
|
|
60194
|
+
}
|
|
60195
|
+
}) : _vm._e(), _vm.uploadJson ? _c('json-file', {
|
|
60196
|
+
on: {
|
|
60197
|
+
"upload": _vm.getUpload
|
|
60198
|
+
}
|
|
60199
|
+
}) : _vm._e()], 1) : _vm._e(), _vm._t("tools")], 2), _c('div', {
|
|
59206
60200
|
staticClass: "right-fixed"
|
|
59207
60201
|
}, [_vm._t("right-fixed")], 2)]);
|
|
59208
60202
|
};
|
|
59209
|
-
var
|
|
60203
|
+
var drawvue_type_template_id_551ff8b1_scoped_true_staticRenderFns = [];
|
|
59210
60204
|
|
|
59211
60205
|
// EXTERNAL MODULE: ./node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.js
|
|
59212
60206
|
var mapbox_gl_draw = __webpack_require__(5884);
|
|
59213
60207
|
var mapbox_gl_draw_default = /*#__PURE__*/__webpack_require__.n(mapbox_gl_draw);
|
|
59214
60208
|
// EXTERNAL MODULE: ./node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css
|
|
59215
60209
|
var dist_mapbox_gl_draw = __webpack_require__(6957);
|
|
59216
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/
|
|
59217
|
-
var
|
|
60210
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/jsonFile.vue?vue&type=template&id=18d75a4e&scoped=true&
|
|
60211
|
+
var jsonFilevue_type_template_id_18d75a4e_scoped_true_render = function render() {
|
|
59218
60212
|
var _vm = this,
|
|
59219
60213
|
_c = _vm._self._c;
|
|
59220
|
-
return _c('
|
|
60214
|
+
return _c('el-button', {
|
|
60215
|
+
staticClass: "upload",
|
|
59221
60216
|
attrs: {
|
|
59222
|
-
"size": "small"
|
|
60217
|
+
"size": "small",
|
|
60218
|
+
"type": "warning"
|
|
60219
|
+
}
|
|
60220
|
+
}, [_vm._v(" JSON上传 "), _c('input', {
|
|
60221
|
+
staticClass: "file",
|
|
60222
|
+
attrs: {
|
|
60223
|
+
"type": "file",
|
|
60224
|
+
"accept": ".json"
|
|
59223
60225
|
},
|
|
59224
|
-
|
|
59225
|
-
|
|
59226
|
-
callback: function ($$v) {
|
|
59227
|
-
_vm.radio = $$v;
|
|
59228
|
-
},
|
|
59229
|
-
expression: "radio"
|
|
60226
|
+
on: {
|
|
60227
|
+
"change": _vm.getFile
|
|
59230
60228
|
}
|
|
59231
|
-
}
|
|
60229
|
+
})]);
|
|
60230
|
+
};
|
|
60231
|
+
var jsonFilevue_type_template_id_18d75a4e_scoped_true_staticRenderFns = [];
|
|
60232
|
+
|
|
60233
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/jsonFile.vue?vue&type=script&lang=js&
|
|
60234
|
+
|
|
60235
|
+
/* harmony default export */ var jsonFilevue_type_script_lang_js_ = ({
|
|
60236
|
+
data() {
|
|
60237
|
+
return {};
|
|
60238
|
+
},
|
|
60239
|
+
methods: {
|
|
60240
|
+
getFile(e) {
|
|
60241
|
+
const file = e.target.files ? e.target.files[0] : '';
|
|
60242
|
+
if (file) {
|
|
60243
|
+
let reader = new FileReader();
|
|
60244
|
+
reader.readAsText(file, 'UTF-8');
|
|
60245
|
+
reader.onload = f => {
|
|
60246
|
+
let json = f.target.result;
|
|
60247
|
+
if (json) {
|
|
60248
|
+
json = JSON.parse(json);
|
|
60249
|
+
if (!json.features) {
|
|
60250
|
+
json = arcGisToGeoJson(json);
|
|
60251
|
+
}
|
|
60252
|
+
this.$emit('upload', json);
|
|
60253
|
+
}
|
|
60254
|
+
};
|
|
60255
|
+
}
|
|
60256
|
+
}
|
|
60257
|
+
}
|
|
60258
|
+
});
|
|
60259
|
+
;// CONCATENATED MODULE: ./src/package/draw/jsonFile.vue?vue&type=script&lang=js&
|
|
60260
|
+
/* harmony default export */ var draw_jsonFilevue_type_script_lang_js_ = (jsonFilevue_type_script_lang_js_);
|
|
60261
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/jsonFile.vue?vue&type=style&index=0&id=18d75a4e&prod&lang=scss&scoped=true&
|
|
60262
|
+
var jsonFilevue_type_style_index_0_id_18d75a4e_prod_lang_scss_scoped_true_ = __webpack_require__(2412);
|
|
60263
|
+
;// CONCATENATED MODULE: ./src/package/draw/jsonFile.vue?vue&type=style&index=0&id=18d75a4e&prod&lang=scss&scoped=true&
|
|
60264
|
+
|
|
60265
|
+
;// CONCATENATED MODULE: ./src/package/draw/jsonFile.vue
|
|
60266
|
+
|
|
60267
|
+
|
|
60268
|
+
|
|
60269
|
+
;
|
|
60270
|
+
|
|
60271
|
+
|
|
60272
|
+
/* normalize component */
|
|
60273
|
+
|
|
60274
|
+
var jsonFile_component = normalizeComponent(
|
|
60275
|
+
draw_jsonFilevue_type_script_lang_js_,
|
|
60276
|
+
jsonFilevue_type_template_id_18d75a4e_scoped_true_render,
|
|
60277
|
+
jsonFilevue_type_template_id_18d75a4e_scoped_true_staticRenderFns,
|
|
60278
|
+
false,
|
|
60279
|
+
null,
|
|
60280
|
+
"18d75a4e",
|
|
60281
|
+
null
|
|
60282
|
+
|
|
60283
|
+
)
|
|
60284
|
+
|
|
60285
|
+
/* harmony default export */ var jsonFile = (jsonFile_component.exports);
|
|
60286
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/shpFile.vue?vue&type=template&id=0f36a3d8&scoped=true&
|
|
60287
|
+
var shpFilevue_type_template_id_0f36a3d8_scoped_true_render = function render() {
|
|
60288
|
+
var _vm = this,
|
|
60289
|
+
_c = _vm._self._c;
|
|
60290
|
+
return _c('el-button', {
|
|
60291
|
+
staticClass: "upload",
|
|
59232
60292
|
attrs: {
|
|
59233
|
-
"
|
|
60293
|
+
"size": "small",
|
|
60294
|
+
"type": "warning"
|
|
59234
60295
|
}
|
|
59235
|
-
}, [_vm._v("
|
|
60296
|
+
}, [_vm._v(" SHP上传 "), _c('input', {
|
|
60297
|
+
staticClass: "file",
|
|
59236
60298
|
attrs: {
|
|
59237
|
-
"
|
|
60299
|
+
"type": "file",
|
|
60300
|
+
"accept": ".shp"
|
|
60301
|
+
},
|
|
60302
|
+
on: {
|
|
60303
|
+
"change": _vm.getFile
|
|
59238
60304
|
}
|
|
59239
|
-
}
|
|
60305
|
+
})]);
|
|
59240
60306
|
};
|
|
59241
|
-
var
|
|
60307
|
+
var shpFilevue_type_template_id_0f36a3d8_scoped_true_staticRenderFns = [];
|
|
59242
60308
|
|
|
59243
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/
|
|
60309
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/shpFile.vue?vue&type=script&lang=js&
|
|
59244
60310
|
|
|
59245
|
-
|
|
60311
|
+
const shapeFile = __webpack_require__(1393); // 导入shpfile.js
|
|
59246
60312
|
|
|
59247
|
-
/* harmony default export */ var
|
|
59248
|
-
props: {
|
|
59249
|
-
type: {
|
|
59250
|
-
type: Number,
|
|
59251
|
-
default: 1
|
|
59252
|
-
}
|
|
59253
|
-
},
|
|
60313
|
+
/* harmony default export */ var shpFilevue_type_script_lang_js_ = ({
|
|
59254
60314
|
data() {
|
|
59255
|
-
return {
|
|
59256
|
-
radio: 1,
|
|
59257
|
-
default: ''
|
|
59258
|
-
};
|
|
60315
|
+
return {};
|
|
59259
60316
|
},
|
|
59260
|
-
|
|
59261
|
-
|
|
59262
|
-
|
|
59263
|
-
|
|
59264
|
-
|
|
59265
|
-
|
|
59266
|
-
|
|
59267
|
-
|
|
59268
|
-
|
|
59269
|
-
|
|
60317
|
+
methods: {
|
|
60318
|
+
getFile(e) {
|
|
60319
|
+
const file = e.target.files ? e.target.files[0] : '';
|
|
60320
|
+
if (file) {
|
|
60321
|
+
let reader = new FileReader();
|
|
60322
|
+
reader.readAsArrayBuffer(file);
|
|
60323
|
+
reader.onload = f => {
|
|
60324
|
+
const result = f.target.result;
|
|
60325
|
+
if (result) {
|
|
60326
|
+
shapeFile.read(result).then(json => {
|
|
60327
|
+
if (!json.features) {
|
|
60328
|
+
json = arcGisToGeoJson(json);
|
|
60329
|
+
}
|
|
60330
|
+
// console.log(json)
|
|
60331
|
+
this.$emit('upload', json);
|
|
60332
|
+
});
|
|
60333
|
+
}
|
|
60334
|
+
};
|
|
59270
60335
|
}
|
|
59271
60336
|
}
|
|
59272
|
-
},
|
|
59273
|
-
mounted() {
|
|
59274
|
-
this.radio = this.type;
|
|
59275
|
-
setTimeout(() => {
|
|
59276
|
-
this.default = package_map.map.getStyle();
|
|
59277
|
-
// console.log(this.default)
|
|
59278
|
-
}, 1000);
|
|
59279
60337
|
}
|
|
59280
60338
|
});
|
|
59281
|
-
;// CONCATENATED MODULE: ./src/package/
|
|
59282
|
-
/* harmony default export */ var
|
|
59283
|
-
|
|
60339
|
+
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=script&lang=js&
|
|
60340
|
+
/* harmony default export */ var draw_shpFilevue_type_script_lang_js_ = (shpFilevue_type_script_lang_js_);
|
|
60341
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/shpFile.vue?vue&type=style&index=0&id=0f36a3d8&prod&lang=scss&scoped=true&
|
|
60342
|
+
var shpFilevue_type_style_index_0_id_0f36a3d8_prod_lang_scss_scoped_true_ = __webpack_require__(1811);
|
|
60343
|
+
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=style&index=0&id=0f36a3d8&prod&lang=scss&scoped=true&
|
|
60344
|
+
|
|
60345
|
+
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue
|
|
59284
60346
|
|
|
59285
60347
|
|
|
59286
60348
|
|
|
60349
|
+
;
|
|
59287
60350
|
|
|
59288
60351
|
|
|
59289
60352
|
/* normalize component */
|
|
59290
|
-
|
|
59291
|
-
var
|
|
59292
|
-
|
|
59293
|
-
|
|
59294
|
-
|
|
60353
|
+
|
|
60354
|
+
var shpFile_component = normalizeComponent(
|
|
60355
|
+
draw_shpFilevue_type_script_lang_js_,
|
|
60356
|
+
shpFilevue_type_template_id_0f36a3d8_scoped_true_render,
|
|
60357
|
+
shpFilevue_type_template_id_0f36a3d8_scoped_true_staticRenderFns,
|
|
59295
60358
|
false,
|
|
59296
60359
|
null,
|
|
59297
|
-
"
|
|
60360
|
+
"0f36a3d8",
|
|
59298
60361
|
null
|
|
59299
60362
|
|
|
59300
60363
|
)
|
|
59301
60364
|
|
|
59302
|
-
/* harmony default export */ var
|
|
60365
|
+
/* harmony default export */ var shpFile = (shpFile_component.exports);
|
|
59303
60366
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/index.vue?vue&type=script&lang=js&
|
|
59304
60367
|
|
|
59305
60368
|
|
|
@@ -59310,14 +60373,12 @@ var mapStyle_component = normalizeComponent(
|
|
|
59310
60373
|
|
|
59311
60374
|
|
|
59312
60375
|
|
|
59313
|
-
// import { getLayerAll } from '../layers/index.js'
|
|
59314
|
-
|
|
59315
|
-
// import styles from './styles'
|
|
59316
|
-
|
|
59317
60376
|
/* harmony default export */ var drawvue_type_script_lang_js_ = ({
|
|
59318
60377
|
components: {
|
|
59319
60378
|
mapFullScreen: mapFullScreen,
|
|
59320
|
-
mapStyle: mapStyle
|
|
60379
|
+
mapStyle: mapStyle,
|
|
60380
|
+
jsonFile: jsonFile,
|
|
60381
|
+
shpFile: shpFile
|
|
59321
60382
|
},
|
|
59322
60383
|
props: {
|
|
59323
60384
|
fullDom: {
|
|
@@ -59362,6 +60423,14 @@ var mapStyle_component = normalizeComponent(
|
|
|
59362
60423
|
// 是否显示当前位置
|
|
59363
60424
|
type: Boolean,
|
|
59364
60425
|
default: true
|
|
60426
|
+
},
|
|
60427
|
+
uploadJson: {
|
|
60428
|
+
type: Boolean,
|
|
60429
|
+
default: false
|
|
60430
|
+
},
|
|
60431
|
+
uploadShp: {
|
|
60432
|
+
type: Boolean,
|
|
60433
|
+
default: false
|
|
59365
60434
|
}
|
|
59366
60435
|
},
|
|
59367
60436
|
data() {
|
|
@@ -59549,14 +60618,17 @@ var mapStyle_component = normalizeComponent(
|
|
|
59549
60618
|
if (hasLayer('search-marker')) {
|
|
59550
60619
|
showLayer('search-marker', true);
|
|
59551
60620
|
}
|
|
60621
|
+
},
|
|
60622
|
+
getUpload(json) {
|
|
60623
|
+
this.$emit('getUpload', json);
|
|
59552
60624
|
}
|
|
59553
60625
|
}
|
|
59554
60626
|
});
|
|
59555
60627
|
;// CONCATENATED MODULE: ./src/package/draw/index.vue?vue&type=script&lang=js&
|
|
59556
60628
|
/* harmony default export */ var package_drawvue_type_script_lang_js_ = (drawvue_type_script_lang_js_);
|
|
59557
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/index.vue?vue&type=style&index=0&id=
|
|
59558
|
-
var
|
|
59559
|
-
;// CONCATENATED MODULE: ./src/package/draw/index.vue?vue&type=style&index=0&id=
|
|
60629
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/index.vue?vue&type=style&index=0&id=551ff8b1&prod&lang=scss&scoped=true&
|
|
60630
|
+
var drawvue_type_style_index_0_id_551ff8b1_prod_lang_scss_scoped_true_ = __webpack_require__(3817);
|
|
60631
|
+
;// CONCATENATED MODULE: ./src/package/draw/index.vue?vue&type=style&index=0&id=551ff8b1&prod&lang=scss&scoped=true&
|
|
59560
60632
|
|
|
59561
60633
|
;// CONCATENATED MODULE: ./src/package/draw/index.vue
|
|
59562
60634
|
|
|
@@ -59569,11 +60641,11 @@ var drawvue_type_style_index_0_id_3900f585_prod_lang_scss_scoped_true_ = __webpa
|
|
|
59569
60641
|
|
|
59570
60642
|
var draw_component = normalizeComponent(
|
|
59571
60643
|
package_drawvue_type_script_lang_js_,
|
|
59572
|
-
|
|
59573
|
-
|
|
60644
|
+
drawvue_type_template_id_551ff8b1_scoped_true_render,
|
|
60645
|
+
drawvue_type_template_id_551ff8b1_scoped_true_staticRenderFns,
|
|
59574
60646
|
false,
|
|
59575
60647
|
null,
|
|
59576
|
-
"
|
|
60648
|
+
"551ff8b1",
|
|
59577
60649
|
null
|
|
59578
60650
|
|
|
59579
60651
|
)
|
|
@@ -59779,8 +60851,8 @@ var point_component = normalizeComponent(
|
|
|
59779
60851
|
)
|
|
59780
60852
|
|
|
59781
60853
|
/* harmony default export */ var draw_point = (point_component.exports);
|
|
59782
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/line.vue?vue&type=template&id=
|
|
59783
|
-
var
|
|
60854
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/line.vue?vue&type=template&id=6f5160fa&
|
|
60855
|
+
var linevue_type_template_id_6f5160fa_render = function render() {
|
|
59784
60856
|
var _vm = this,
|
|
59785
60857
|
_c = _vm._self._c;
|
|
59786
60858
|
return _c('div', {
|
|
@@ -59804,15 +60876,17 @@ var linevue_type_template_id_6271cf22_render = function render() {
|
|
|
59804
60876
|
"update": _vm.drawUpdate,
|
|
59805
60877
|
"end": _vm.drawUpdate,
|
|
59806
60878
|
"delete": _vm.drawUpdate,
|
|
59807
|
-
"clear": _vm.clear
|
|
60879
|
+
"clear": _vm.clear,
|
|
60880
|
+
"getUpload": _vm.getUpload
|
|
59808
60881
|
}
|
|
59809
60882
|
}, 'draw-tools', _vm.$attrs, false), [_c('div', {
|
|
59810
|
-
staticClass: "mt-15 flex",
|
|
60883
|
+
staticClass: "mt-15 flex flex-wrap",
|
|
59811
60884
|
attrs: {
|
|
59812
60885
|
"slot": "tools"
|
|
59813
60886
|
},
|
|
59814
60887
|
slot: "tools"
|
|
59815
60888
|
}, [_c('el-input', {
|
|
60889
|
+
staticClass: "flex-child-grow",
|
|
59816
60890
|
staticStyle: {
|
|
59817
60891
|
"width": "300px",
|
|
59818
60892
|
"margin-right": "10px"
|
|
@@ -59823,11 +60897,7 @@ var linevue_type_template_id_6271cf22_render = function render() {
|
|
|
59823
60897
|
"placeholder": "点击地图获取坐标",
|
|
59824
60898
|
"readonly": _vm.readonly
|
|
59825
60899
|
}
|
|
59826
|
-
}),
|
|
59827
|
-
on: {
|
|
59828
|
-
"upload": _vm.getShp
|
|
59829
|
-
}
|
|
59830
|
-
}) : _vm._e(), _c('el-button', {
|
|
60900
|
+
}), _c('el-button', {
|
|
59831
60901
|
attrs: {
|
|
59832
60902
|
"type": "primary",
|
|
59833
60903
|
"size": "small"
|
|
@@ -59835,95 +60905,16 @@ var linevue_type_template_id_6271cf22_render = function render() {
|
|
|
59835
60905
|
on: {
|
|
59836
60906
|
"click": _vm.save
|
|
59837
60907
|
}
|
|
59838
|
-
}, [_vm._v("保存")])],
|
|
60908
|
+
}, [_vm._v("保存")]), _vm._t("default")], 2)])], 1);
|
|
59839
60909
|
};
|
|
59840
|
-
var
|
|
59841
|
-
|
|
59842
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/shpFile.vue?vue&type=template&id=4be01ab4&scoped=true&
|
|
59843
|
-
var shpFilevue_type_template_id_4be01ab4_scoped_true_render = function render() {
|
|
59844
|
-
var _vm = this,
|
|
59845
|
-
_c = _vm._self._c;
|
|
59846
|
-
return _c('el-button', {
|
|
59847
|
-
staticClass: "upload",
|
|
59848
|
-
attrs: {
|
|
59849
|
-
"size": "small",
|
|
59850
|
-
"type": "warning"
|
|
59851
|
-
}
|
|
59852
|
-
}, [_vm._v(" JSON上传 "), _c('input', {
|
|
59853
|
-
staticClass: "file",
|
|
59854
|
-
attrs: {
|
|
59855
|
-
"type": "file",
|
|
59856
|
-
"accept": ".json"
|
|
59857
|
-
},
|
|
59858
|
-
on: {
|
|
59859
|
-
"change": _vm.getFile
|
|
59860
|
-
}
|
|
59861
|
-
})]);
|
|
59862
|
-
};
|
|
59863
|
-
var shpFilevue_type_template_id_4be01ab4_scoped_true_staticRenderFns = [];
|
|
59864
|
-
|
|
59865
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/shpFile.vue?vue&type=script&lang=js&
|
|
59866
|
-
|
|
59867
|
-
/* harmony default export */ var shpFilevue_type_script_lang_js_ = ({
|
|
59868
|
-
data() {
|
|
59869
|
-
return {};
|
|
59870
|
-
},
|
|
59871
|
-
methods: {
|
|
59872
|
-
getFile(e) {
|
|
59873
|
-
const file = e.target.files ? e.target.files[0] : '';
|
|
59874
|
-
if (file) {
|
|
59875
|
-
let reader = new FileReader();
|
|
59876
|
-
reader.readAsText(file, 'UTF-8');
|
|
59877
|
-
reader.onload = f => {
|
|
59878
|
-
let json = f.target.result;
|
|
59879
|
-
if (json) {
|
|
59880
|
-
json = JSON.parse(json);
|
|
59881
|
-
if (!json.FeatureCollection) {
|
|
59882
|
-
json = arcGisToGeoJson(json);
|
|
59883
|
-
}
|
|
59884
|
-
console.log(json);
|
|
59885
|
-
this.$emit('upload', json);
|
|
59886
|
-
}
|
|
59887
|
-
};
|
|
59888
|
-
}
|
|
59889
|
-
}
|
|
59890
|
-
}
|
|
59891
|
-
});
|
|
59892
|
-
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=script&lang=js&
|
|
59893
|
-
/* harmony default export */ var draw_shpFilevue_type_script_lang_js_ = (shpFilevue_type_script_lang_js_);
|
|
59894
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/shpFile.vue?vue&type=style&index=0&id=4be01ab4&prod&lang=scss&scoped=true&
|
|
59895
|
-
var shpFilevue_type_style_index_0_id_4be01ab4_prod_lang_scss_scoped_true_ = __webpack_require__(9766);
|
|
59896
|
-
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=style&index=0&id=4be01ab4&prod&lang=scss&scoped=true&
|
|
59897
|
-
|
|
59898
|
-
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue
|
|
59899
|
-
|
|
59900
|
-
|
|
59901
|
-
|
|
59902
|
-
;
|
|
59903
|
-
|
|
59904
|
-
|
|
59905
|
-
/* normalize component */
|
|
59906
|
-
|
|
59907
|
-
var shpFile_component = normalizeComponent(
|
|
59908
|
-
draw_shpFilevue_type_script_lang_js_,
|
|
59909
|
-
shpFilevue_type_template_id_4be01ab4_scoped_true_render,
|
|
59910
|
-
shpFilevue_type_template_id_4be01ab4_scoped_true_staticRenderFns,
|
|
59911
|
-
false,
|
|
59912
|
-
null,
|
|
59913
|
-
"4be01ab4",
|
|
59914
|
-
null
|
|
59915
|
-
|
|
59916
|
-
)
|
|
60910
|
+
var linevue_type_template_id_6f5160fa_staticRenderFns = [];
|
|
59917
60911
|
|
|
59918
|
-
/* harmony default export */ var shpFile = (shpFile_component.exports);
|
|
59919
60912
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/line.vue?vue&type=script&lang=js&
|
|
59920
60913
|
|
|
59921
60914
|
|
|
59922
|
-
|
|
59923
60915
|
/* harmony default export */ var linevue_type_script_lang_js_ = ({
|
|
59924
60916
|
components: {
|
|
59925
|
-
drawTools: draw
|
|
59926
|
-
shpFile: shpFile
|
|
60917
|
+
drawTools: draw
|
|
59927
60918
|
},
|
|
59928
60919
|
props: {
|
|
59929
60920
|
config: {
|
|
@@ -59934,20 +60925,11 @@ var shpFile_component = normalizeComponent(
|
|
|
59934
60925
|
type: Boolean,
|
|
59935
60926
|
default: false
|
|
59936
60927
|
},
|
|
59937
|
-
upload: {
|
|
59938
|
-
// shp文件上传
|
|
59939
|
-
type: Boolean,
|
|
59940
|
-
default: false
|
|
59941
|
-
},
|
|
59942
60928
|
autoZoom: {
|
|
59943
60929
|
// 自动缩放适应边界
|
|
59944
60930
|
type: Boolean,
|
|
59945
60931
|
default: false
|
|
59946
60932
|
},
|
|
59947
|
-
zoom: {
|
|
59948
|
-
type: Number,
|
|
59949
|
-
default: 14
|
|
59950
|
-
},
|
|
59951
60933
|
single: {
|
|
59952
60934
|
type: Boolean,
|
|
59953
60935
|
default: false
|
|
@@ -59982,7 +60964,6 @@ var shpFile_component = normalizeComponent(
|
|
|
59982
60964
|
init() {
|
|
59983
60965
|
let config = Object.assign({}, {
|
|
59984
60966
|
accessToken: 'pk.eyJ1IjoiaGo0NjI3NzEzOTYiLCJhIjoiY2w5YzNjOTZvMDF6NDNwb2d6YmJkYWRpMCJ9.-fW-OChGB1oY2DCMO_c8sg',
|
|
59985
|
-
zoom: this.zoom,
|
|
59986
60967
|
center: [102.83643451528434, 24.81972792178513],
|
|
59987
60968
|
is3d: false
|
|
59988
60969
|
// defaultLanguage: 'zh-Hant',
|
|
@@ -60048,7 +61029,8 @@ var shpFile_component = normalizeComponent(
|
|
|
60048
61029
|
this.geoJson = '';
|
|
60049
61030
|
this.position = '';
|
|
60050
61031
|
},
|
|
60051
|
-
|
|
61032
|
+
getUpload(shp) {
|
|
61033
|
+
console.log(shp);
|
|
60052
61034
|
this.$refs.draw.clear(); // 先清空画布
|
|
60053
61035
|
this.drawUpdate(shp, true);
|
|
60054
61036
|
this.edit();
|
|
@@ -60067,8 +61049,8 @@ var shpFile_component = normalizeComponent(
|
|
|
60067
61049
|
;
|
|
60068
61050
|
var line_component = normalizeComponent(
|
|
60069
61051
|
draw_linevue_type_script_lang_js_,
|
|
60070
|
-
|
|
60071
|
-
|
|
61052
|
+
linevue_type_template_id_6f5160fa_render,
|
|
61053
|
+
linevue_type_template_id_6f5160fa_staticRenderFns,
|
|
60072
61054
|
false,
|
|
60073
61055
|
null,
|
|
60074
61056
|
null,
|
|
@@ -60077,8 +61059,8 @@ var line_component = normalizeComponent(
|
|
|
60077
61059
|
)
|
|
60078
61060
|
|
|
60079
61061
|
/* harmony default export */ var line = (line_component.exports);
|
|
60080
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/polygon.vue?vue&type=template&id=
|
|
60081
|
-
var
|
|
61062
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/polygon.vue?vue&type=template&id=a652ccb4&
|
|
61063
|
+
var polygonvue_type_template_id_a652ccb4_render = function render() {
|
|
60082
61064
|
var _vm = this,
|
|
60083
61065
|
_c = _vm._self._c;
|
|
60084
61066
|
return _c('div', {
|
|
@@ -60102,15 +61084,17 @@ var polygonvue_type_template_id_5b00e058_render = function render() {
|
|
|
60102
61084
|
"update": _vm.drawUpdate,
|
|
60103
61085
|
"end": _vm.drawUpdate,
|
|
60104
61086
|
"delete": _vm.drawUpdate,
|
|
60105
|
-
"clear": _vm.clear
|
|
61087
|
+
"clear": _vm.clear,
|
|
61088
|
+
"getUpload": _vm.getUpload
|
|
60106
61089
|
}
|
|
60107
61090
|
}, 'draw-tools', _vm.$attrs, false), [_c('div', {
|
|
60108
|
-
staticClass: "mt-15",
|
|
61091
|
+
staticClass: "mt-15 flex flex-wrap",
|
|
60109
61092
|
attrs: {
|
|
60110
61093
|
"slot": "tools"
|
|
60111
61094
|
},
|
|
60112
61095
|
slot: "tools"
|
|
60113
61096
|
}, [_c('el-input', {
|
|
61097
|
+
staticClass: "flex-child-grow",
|
|
60114
61098
|
staticStyle: {
|
|
60115
61099
|
"width": "300px",
|
|
60116
61100
|
"margin-right": "10px"
|
|
@@ -60121,11 +61105,7 @@ var polygonvue_type_template_id_5b00e058_render = function render() {
|
|
|
60121
61105
|
"placeholder": "点击地图获取坐标",
|
|
60122
61106
|
"readonly": _vm.readonly
|
|
60123
61107
|
}
|
|
60124
|
-
}),
|
|
60125
|
-
on: {
|
|
60126
|
-
"upload": _vm.getShp
|
|
60127
|
-
}
|
|
60128
|
-
}) : _vm._e(), _c('el-button', {
|
|
61108
|
+
}), _c('el-button', {
|
|
60129
61109
|
attrs: {
|
|
60130
61110
|
"type": "primary",
|
|
60131
61111
|
"size": "small"
|
|
@@ -60133,18 +61113,16 @@ var polygonvue_type_template_id_5b00e058_render = function render() {
|
|
|
60133
61113
|
on: {
|
|
60134
61114
|
"click": _vm.save
|
|
60135
61115
|
}
|
|
60136
|
-
}, [_vm._v("保存")])],
|
|
61116
|
+
}, [_vm._v("保存")]), _vm._t("default")], 2)])], 1);
|
|
60137
61117
|
};
|
|
60138
|
-
var
|
|
61118
|
+
var polygonvue_type_template_id_a652ccb4_staticRenderFns = [];
|
|
60139
61119
|
|
|
60140
61120
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/polygon.vue?vue&type=script&lang=js&
|
|
60141
61121
|
|
|
60142
61122
|
|
|
60143
|
-
|
|
60144
61123
|
/* harmony default export */ var polygonvue_type_script_lang_js_ = ({
|
|
60145
61124
|
components: {
|
|
60146
|
-
drawTools: draw
|
|
60147
|
-
shpFile: shpFile
|
|
61125
|
+
drawTools: draw
|
|
60148
61126
|
},
|
|
60149
61127
|
props: {
|
|
60150
61128
|
config: {
|
|
@@ -60164,14 +61142,6 @@ var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
|
|
|
60164
61142
|
type: Boolean,
|
|
60165
61143
|
default: true
|
|
60166
61144
|
},
|
|
60167
|
-
upload: {
|
|
60168
|
-
type: Boolean,
|
|
60169
|
-
default: false
|
|
60170
|
-
},
|
|
60171
|
-
zoom: {
|
|
60172
|
-
type: Number,
|
|
60173
|
-
default: 14
|
|
60174
|
-
},
|
|
60175
61145
|
geoData: {
|
|
60176
61146
|
type: [Object, String],
|
|
60177
61147
|
default: ''
|
|
@@ -60202,7 +61172,6 @@ var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
|
|
|
60202
61172
|
init() {
|
|
60203
61173
|
let config = Object.assign({}, {
|
|
60204
61174
|
accessToken: 'pk.eyJ1IjoiaGo0NjI3NzEzOTYiLCJhIjoiY2w5YzNjOTZvMDF6NDNwb2d6YmJkYWRpMCJ9.-fW-OChGB1oY2DCMO_c8sg',
|
|
60205
|
-
zoom: this.zoom,
|
|
60206
61175
|
center: [102.83643451528434, 24.81972792178513],
|
|
60207
61176
|
is3d: false
|
|
60208
61177
|
// defaultLanguage: 'zh-Hant',
|
|
@@ -60266,7 +61235,7 @@ var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
|
|
|
60266
61235
|
this.geoJson = '';
|
|
60267
61236
|
this.position = '';
|
|
60268
61237
|
},
|
|
60269
|
-
|
|
61238
|
+
getUpload(shp) {
|
|
60270
61239
|
console.log(shp);
|
|
60271
61240
|
this.$refs.draw.clear(); // 先清空画布
|
|
60272
61241
|
this.drawUpdate(shp, true);
|
|
@@ -60286,8 +61255,8 @@ var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
|
|
|
60286
61255
|
;
|
|
60287
61256
|
var polygon_component = normalizeComponent(
|
|
60288
61257
|
draw_polygonvue_type_script_lang_js_,
|
|
60289
|
-
|
|
60290
|
-
|
|
61258
|
+
polygonvue_type_template_id_a652ccb4_render,
|
|
61259
|
+
polygonvue_type_template_id_a652ccb4_staticRenderFns,
|
|
60291
61260
|
false,
|
|
60292
61261
|
null,
|
|
60293
61262
|
null,
|
|
@@ -60372,6 +61341,10 @@ const mapEvent = {
|
|
|
60372
61341
|
|
|
60373
61342
|
|
|
60374
61343
|
|
|
61344
|
+
// 选择树组件
|
|
61345
|
+
// 修改地图风格
|
|
61346
|
+
|
|
61347
|
+
|
|
60375
61348
|
|
|
60376
61349
|
|
|
60377
61350
|
|