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/xy-map.umd.js CHANGED
@@ -11,6 +11,27 @@
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
+ /***/ 458:
15
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
+
17
+ "use strict";
18
+ __webpack_require__.r(__webpack_exports__);
19
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1371);
20
+ /* 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__);
21
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6527);
22
+ /* 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__);
23
+ // Imports
24
+
25
+
26
+ 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()));
27
+ // Module
28
+ ___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}", ""]);
29
+ // Exports
30
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
31
+
32
+
33
+ /***/ }),
34
+
14
35
  /***/ 1927:
15
36
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
37
 
@@ -234,7 +255,28 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".snow[data-v-59d7e867]{position:absolu
234
255
 
235
256
  /***/ }),
236
257
 
237
- /***/ 5578:
258
+ /***/ 1874:
259
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
260
+
261
+ "use strict";
262
+ __webpack_require__.r(__webpack_exports__);
263
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1371);
264
+ /* 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__);
265
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6527);
266
+ /* 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__);
267
+ // Imports
268
+
269
+
270
+ 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()));
271
+ // Module
272
+ ___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}", ""]);
273
+ // Exports
274
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
275
+
276
+
277
+ /***/ }),
278
+
279
+ /***/ 7238:
238
280
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
239
281
 
240
282
  "use strict";
@@ -248,14 +290,14 @@ __webpack_require__.r(__webpack_exports__);
248
290
 
249
291
  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()));
250
292
  // Module
251
- ___CSS_LOADER_EXPORT___.push([module.id, ".tools[data-v-3900f585]{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-3900f585]{cursor:pointer}.right-fixed[data-v-3900f585]{position:absolute;right:0;top:0;margin:15px}", ""]);
293
+ ___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}", ""]);
252
294
  // Exports
253
295
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
254
296
 
255
297
 
256
298
  /***/ }),
257
299
 
258
- /***/ 3676:
300
+ /***/ 5211:
259
301
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
260
302
 
261
303
  "use strict";
@@ -269,7 +311,7 @@ __webpack_require__.r(__webpack_exports__);
269
311
 
270
312
  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()));
271
313
  // Module
272
- ___CSS_LOADER_EXPORT___.push([module.id, ".upload[data-v-4be01ab4]{position:relative}.upload input[data-v-4be01ab4]{position:absolute;width:100%;height:100%;left:0;top:0;opacity:0}", ""]);
314
+ ___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}", ""]);
273
315
  // Exports
274
316
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
275
317
 
@@ -12592,6 +12634,612 @@ module.exports = function shimFlags() {
12592
12634
 
12593
12635
  /***/ }),
12594
12636
 
12637
+ /***/ 4952:
12638
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
12639
+
12640
+ "use strict";
12641
+ // ESM COMPAT FLAG
12642
+ __webpack_require__.r(__webpack_exports__);
12643
+
12644
+ // EXPORTS
12645
+ __webpack_require__.d(__webpack_exports__, {
12646
+ "open": function() { return /* binding */ shapefile_open; },
12647
+ "openDbf": function() { return /* binding */ openDbf; },
12648
+ "openShp": function() { return /* binding */ openShp; },
12649
+ "read": function() { return /* binding */ node_modules_shapefile_read; }
12650
+ });
12651
+
12652
+ ;// CONCATENATED MODULE: ./node_modules/array-source/cancel.js
12653
+ /* harmony default export */ function cancel() {
12654
+ this._array = null;
12655
+ return Promise.resolve();
12656
+ }
12657
+ ;// CONCATENATED MODULE: ./node_modules/array-source/read.js
12658
+ /* harmony default export */ function read() {
12659
+ var array = this._array;
12660
+ this._array = null;
12661
+ return Promise.resolve(array ? {
12662
+ done: false,
12663
+ value: array
12664
+ } : {
12665
+ done: true,
12666
+ value: undefined
12667
+ });
12668
+ }
12669
+ ;// CONCATENATED MODULE: ./node_modules/array-source/index.js
12670
+
12671
+
12672
+ function array(array) {
12673
+ return new ArraySource(array instanceof Uint8Array ? array : new Uint8Array(array));
12674
+ }
12675
+ function ArraySource(array) {
12676
+ this._array = array;
12677
+ }
12678
+ ArraySource.prototype.read = read;
12679
+ ArraySource.prototype.cancel = cancel;
12680
+ ;// CONCATENATED MODULE: ./node_modules/path-source/fetch.js
12681
+
12682
+ /* harmony default export */ function path_source_fetch(url) {
12683
+ return fetch(url).then(function (response) {
12684
+ return response.body && response.body.getReader ? response.body.getReader() : response.arrayBuffer().then(array);
12685
+ });
12686
+ }
12687
+ ;// CONCATENATED MODULE: ./node_modules/path-source/request.js
12688
+
12689
+ /* harmony default export */ function request(url) {
12690
+ return new Promise(function (resolve, reject) {
12691
+ var request = new XMLHttpRequest();
12692
+ request.responseType = "arraybuffer";
12693
+ request.onload = function () {
12694
+ resolve(array(request.response));
12695
+ };
12696
+ request.onerror = reject;
12697
+ request.ontimeout = reject;
12698
+ request.open("GET", url, true);
12699
+ request.send();
12700
+ });
12701
+ }
12702
+ ;// CONCATENATED MODULE: ./node_modules/path-source/index.js
12703
+
12704
+
12705
+ function path(path) {
12706
+ return (typeof fetch === "function" ? path_source_fetch : request)(path);
12707
+ }
12708
+ ;// CONCATENATED MODULE: ./node_modules/stream-source/index.js
12709
+ function stream(source) {
12710
+ return typeof source.read === "function" ? source : source.getReader();
12711
+ }
12712
+ ;// CONCATENATED MODULE: ./node_modules/slice-source/empty.js
12713
+ /* harmony default export */ var empty = (new Uint8Array(0));
12714
+ ;// CONCATENATED MODULE: ./node_modules/slice-source/cancel.js
12715
+ /* harmony default export */ function slice_source_cancel() {
12716
+ return this._source.cancel();
12717
+ }
12718
+ ;// CONCATENATED MODULE: ./node_modules/slice-source/concat.js
12719
+ function concat(a, b) {
12720
+ if (!a.length) return b;
12721
+ if (!b.length) return a;
12722
+ var c = new Uint8Array(a.length + b.length);
12723
+ c.set(a);
12724
+ c.set(b, a.length);
12725
+ return c;
12726
+ }
12727
+ ;// CONCATENATED MODULE: ./node_modules/slice-source/read.js
12728
+
12729
+
12730
+ /* harmony default export */ function slice_source_read() {
12731
+ var that = this,
12732
+ array = that._array.subarray(that._index);
12733
+ return that._source.read().then(function (result) {
12734
+ that._array = empty;
12735
+ that._index = 0;
12736
+ return result.done ? array.length > 0 ? {
12737
+ done: false,
12738
+ value: array
12739
+ } : {
12740
+ done: true,
12741
+ value: undefined
12742
+ } : {
12743
+ done: false,
12744
+ value: concat(array, result.value)
12745
+ };
12746
+ });
12747
+ }
12748
+ ;// CONCATENATED MODULE: ./node_modules/slice-source/slice.js
12749
+
12750
+ /* harmony default export */ function slice(length) {
12751
+ if ((length |= 0) < 0) throw new Error("invalid length");
12752
+ var that = this,
12753
+ index = this._array.length - this._index;
12754
+
12755
+ // If the request fits within the remaining buffer, resolve it immediately.
12756
+ if (this._index + length <= this._array.length) {
12757
+ return Promise.resolve(this._array.subarray(this._index, this._index += length));
12758
+ }
12759
+
12760
+ // Otherwise, read chunks repeatedly until the request is fulfilled.
12761
+ var array = new Uint8Array(length);
12762
+ array.set(this._array.subarray(this._index));
12763
+ return function read() {
12764
+ return that._source.read().then(function (result) {
12765
+ // When done, it’s possible the request wasn’t fully fullfilled!
12766
+ // If so, the pre-allocated array is too big and needs slicing.
12767
+ if (result.done) {
12768
+ that._array = empty;
12769
+ that._index = 0;
12770
+ return index > 0 ? array.subarray(0, index) : null;
12771
+ }
12772
+
12773
+ // If this chunk fulfills the request, return the resulting array.
12774
+ if (index + result.value.length >= length) {
12775
+ that._array = result.value;
12776
+ that._index = length - index;
12777
+ array.set(result.value.subarray(0, length - index), index);
12778
+ return array;
12779
+ }
12780
+
12781
+ // Otherwise copy this chunk into the array, then read the next chunk.
12782
+ array.set(result.value, index);
12783
+ index += result.value.length;
12784
+ return read();
12785
+ });
12786
+ }();
12787
+ }
12788
+ ;// CONCATENATED MODULE: ./node_modules/slice-source/index.js
12789
+
12790
+
12791
+
12792
+
12793
+ function slice_source_slice(source) {
12794
+ return typeof source.slice === "function" ? source : new SliceSource(typeof source.read === "function" ? source : source.getReader());
12795
+ }
12796
+ function SliceSource(source) {
12797
+ this._source = source;
12798
+ this._array = empty;
12799
+ this._index = 0;
12800
+ }
12801
+ SliceSource.prototype.read = slice_source_read;
12802
+ SliceSource.prototype.slice = slice;
12803
+ SliceSource.prototype.cancel = slice_source_cancel;
12804
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/cancel.js
12805
+ /* harmony default export */ function dbf_cancel() {
12806
+ return this._source.cancel();
12807
+ }
12808
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/boolean.js
12809
+ /* harmony default export */ function dbf_boolean(value) {
12810
+ return /^[nf]$/i.test(value) ? false : /^[yt]$/i.test(value) ? true : null;
12811
+ }
12812
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/date.js
12813
+ /* harmony default export */ function date(value) {
12814
+ return new Date(+value.substring(0, 4), value.substring(4, 6) - 1, +value.substring(6, 8));
12815
+ }
12816
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/number.js
12817
+ /* harmony default export */ function number(value) {
12818
+ return !(value = value.trim()) || isNaN(value = +value) ? null : value;
12819
+ }
12820
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/string.js
12821
+ /* harmony default export */ function string(value) {
12822
+ return value.trim() || null;
12823
+ }
12824
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/read.js
12825
+
12826
+
12827
+
12828
+
12829
+ var types = {
12830
+ B: number,
12831
+ C: string,
12832
+ D: date,
12833
+ F: number,
12834
+ L: dbf_boolean,
12835
+ M: number,
12836
+ N: number
12837
+ };
12838
+ /* harmony default export */ function dbf_read() {
12839
+ var that = this,
12840
+ i = 1;
12841
+ return that._source.slice(that._recordLength).then(function (value) {
12842
+ return value && value[0] !== 0x1a ? {
12843
+ done: false,
12844
+ value: that._fields.reduce(function (p, f) {
12845
+ p[f.name] = types[f.type](that._decode(value.subarray(i, i += f.length)));
12846
+ return p;
12847
+ }, {})
12848
+ } : {
12849
+ done: true,
12850
+ value: undefined
12851
+ };
12852
+ });
12853
+ }
12854
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/view.js
12855
+ /* harmony default export */ function view(array) {
12856
+ return new DataView(array.buffer, array.byteOffset, array.byteLength);
12857
+ }
12858
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/dbf/index.js
12859
+
12860
+
12861
+
12862
+
12863
+ /* harmony default export */ function dbf(source, decoder) {
12864
+ source = slice_source_slice(source);
12865
+ return source.slice(32).then(function (array) {
12866
+ var head = view(array);
12867
+ return source.slice(head.getUint16(8, true) - 32).then(function (array) {
12868
+ return new Dbf(source, decoder, head, view(array));
12869
+ });
12870
+ });
12871
+ }
12872
+ function Dbf(source, decoder, head, body) {
12873
+ this._source = source;
12874
+ this._decode = decoder.decode.bind(decoder);
12875
+ this._recordLength = head.getUint16(10, true);
12876
+ this._fields = [];
12877
+ for (var n = 0; body.getUint8(n) !== 0x0d; n += 32) {
12878
+ for (var j = 0; j < 11; ++j) if (body.getUint8(n + j) === 0) break;
12879
+ this._fields.push({
12880
+ name: this._decode(new Uint8Array(body.buffer, body.byteOffset + n, j)),
12881
+ type: String.fromCharCode(body.getUint8(n + 11)),
12882
+ length: body.getUint8(n + 16)
12883
+ });
12884
+ }
12885
+ }
12886
+ var dbf_prototype = Dbf.prototype;
12887
+ dbf_prototype.read = dbf_read;
12888
+ dbf_prototype.cancel = dbf_cancel;
12889
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/cancel.js
12890
+ function cancel_cancel() {
12891
+ return this._source.cancel();
12892
+ }
12893
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/multipoint.js
12894
+ /* harmony default export */ function multipoint(record) {
12895
+ var i = 40,
12896
+ j,
12897
+ n = record.getInt32(36, true),
12898
+ coordinates = new Array(n);
12899
+ for (j = 0; j < n; ++j, i += 16) coordinates[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
12900
+ return {
12901
+ type: "MultiPoint",
12902
+ coordinates: coordinates
12903
+ };
12904
+ }
12905
+ ;
12906
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/null.js
12907
+ /* harmony default export */ function shp_null() {
12908
+ return null;
12909
+ }
12910
+ ;
12911
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/point.js
12912
+ /* harmony default export */ function point(record) {
12913
+ return {
12914
+ type: "Point",
12915
+ coordinates: [record.getFloat64(4, true), record.getFloat64(12, true)]
12916
+ };
12917
+ }
12918
+ ;
12919
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/polygon.js
12920
+ /* harmony default export */ function polygon(record) {
12921
+ var i = 44,
12922
+ j,
12923
+ n = record.getInt32(36, true),
12924
+ m = record.getInt32(40, true),
12925
+ parts = new Array(n),
12926
+ points = new Array(m),
12927
+ polygons = [],
12928
+ holes = [];
12929
+ for (j = 0; j < n; ++j, i += 4) parts[j] = record.getInt32(i, true);
12930
+ for (j = 0; j < m; ++j, i += 16) points[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
12931
+ parts.forEach(function (i, j) {
12932
+ var ring = points.slice(i, parts[j + 1]);
12933
+ if (ringClockwise(ring)) polygons.push([ring]);else holes.push(ring);
12934
+ });
12935
+ holes.forEach(function (hole) {
12936
+ polygons.some(function (polygon) {
12937
+ if (ringContainsSome(polygon[0], hole)) {
12938
+ polygon.push(hole);
12939
+ return true;
12940
+ }
12941
+ }) || polygons.push([hole]);
12942
+ });
12943
+ return polygons.length === 1 ? {
12944
+ type: "Polygon",
12945
+ coordinates: polygons[0]
12946
+ } : {
12947
+ type: "MultiPolygon",
12948
+ coordinates: polygons
12949
+ };
12950
+ }
12951
+ ;
12952
+ function ringClockwise(ring) {
12953
+ if ((n = ring.length) < 4) return false;
12954
+ var i = 0,
12955
+ n,
12956
+ area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];
12957
+ while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];
12958
+ return area >= 0;
12959
+ }
12960
+ function ringContainsSome(ring, hole) {
12961
+ var i = -1,
12962
+ n = hole.length,
12963
+ c;
12964
+ while (++i < n) {
12965
+ if (c = ringContains(ring, hole[i])) {
12966
+ return c > 0;
12967
+ }
12968
+ }
12969
+ return false;
12970
+ }
12971
+ function ringContains(ring, point) {
12972
+ var x = point[0],
12973
+ y = point[1],
12974
+ contains = -1;
12975
+ for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {
12976
+ var pi = ring[i],
12977
+ xi = pi[0],
12978
+ yi = pi[1],
12979
+ pj = ring[j],
12980
+ xj = pj[0],
12981
+ yj = pj[1];
12982
+ if (segmentContains(pi, pj, point)) {
12983
+ return 0;
12984
+ }
12985
+ if (yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi) {
12986
+ contains = -contains;
12987
+ }
12988
+ }
12989
+ return contains;
12990
+ }
12991
+ function segmentContains(p0, p1, p2) {
12992
+ var x20 = p2[0] - p0[0],
12993
+ y20 = p2[1] - p0[1];
12994
+ if (x20 === 0 && y20 === 0) return true;
12995
+ var x10 = p1[0] - p0[0],
12996
+ y10 = p1[1] - p0[1];
12997
+ if (x10 === 0 && y10 === 0) return false;
12998
+ var t = (x20 * x10 + y20 * y10) / (x10 * x10 + y10 * y10);
12999
+ return t < 0 || t > 1 ? false : t === 0 || t === 1 ? true : t * x10 === x20 && t * y10 === y20;
13000
+ }
13001
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/polyline.js
13002
+ /* harmony default export */ function polyline(record) {
13003
+ var i = 44,
13004
+ j,
13005
+ n = record.getInt32(36, true),
13006
+ m = record.getInt32(40, true),
13007
+ parts = new Array(n),
13008
+ points = new Array(m);
13009
+ for (j = 0; j < n; ++j, i += 4) parts[j] = record.getInt32(i, true);
13010
+ for (j = 0; j < m; ++j, i += 16) points[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
13011
+ return n === 1 ? {
13012
+ type: "LineString",
13013
+ coordinates: points
13014
+ } : {
13015
+ type: "MultiLineString",
13016
+ coordinates: parts.map(function (i, j) {
13017
+ return points.slice(i, parts[j + 1]);
13018
+ })
13019
+ };
13020
+ }
13021
+ ;
13022
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/concat.js
13023
+ /* harmony default export */ function shp_concat(a, b) {
13024
+ var ab = new Uint8Array(a.length + b.length);
13025
+ ab.set(a, 0);
13026
+ ab.set(b, a.length);
13027
+ return ab;
13028
+ }
13029
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/read.js
13030
+
13031
+
13032
+ /* harmony default export */ function shp_read() {
13033
+ var that = this;
13034
+ ++that._index;
13035
+ return that._source.slice(12).then(function (array) {
13036
+ if (array == null) return {
13037
+ done: true,
13038
+ value: undefined
13039
+ };
13040
+ var header = view(array);
13041
+
13042
+ // If the record starts with an invalid shape type (see #36), scan ahead in
13043
+ // four-byte increments to find the next valid record, identified by the
13044
+ // expected index, a non-empty content length and a valid shape type.
13045
+ function skip() {
13046
+ return that._source.slice(4).then(function (chunk) {
13047
+ if (chunk == null) return {
13048
+ done: true,
13049
+ value: undefined
13050
+ };
13051
+ header = view(array = shp_concat(array.slice(4), chunk));
13052
+ return header.getInt32(0, false) !== that._index ? skip() : read();
13053
+ });
13054
+ }
13055
+
13056
+ // All records should have at least four bytes (for the record shape type),
13057
+ // so an invalid content length indicates corruption.
13058
+ function read() {
13059
+ var length = header.getInt32(4, false) * 2 - 4,
13060
+ type = header.getInt32(8, true);
13061
+ return length < 0 || type && type !== that._type ? skip() : that._source.slice(length).then(function (chunk) {
13062
+ return {
13063
+ done: false,
13064
+ value: type ? that._parse(view(shp_concat(array.slice(8), chunk))) : null
13065
+ };
13066
+ });
13067
+ }
13068
+ return read();
13069
+ });
13070
+ }
13071
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shp/index.js
13072
+
13073
+
13074
+
13075
+
13076
+
13077
+
13078
+
13079
+
13080
+
13081
+ var parsers = {
13082
+ 0: shp_null,
13083
+ 1: point,
13084
+ 3: polyline,
13085
+ 5: polygon,
13086
+ 8: multipoint,
13087
+ 11: point,
13088
+ // PointZ
13089
+ 13: polyline,
13090
+ // PolyLineZ
13091
+ 15: polygon,
13092
+ // PolygonZ
13093
+ 18: multipoint,
13094
+ // MultiPointZ
13095
+ 21: point,
13096
+ // PointM
13097
+ 23: polyline,
13098
+ // PolyLineM
13099
+ 25: polygon,
13100
+ // PolygonM
13101
+ 28: multipoint // MultiPointM
13102
+ };
13103
+
13104
+ /* harmony default export */ function shp(source) {
13105
+ source = slice_source_slice(source);
13106
+ return source.slice(100).then(function (array) {
13107
+ return new Shp(source, view(array));
13108
+ });
13109
+ }
13110
+ ;
13111
+ function Shp(source, header) {
13112
+ var type = header.getInt32(32, true);
13113
+ if (!(type in parsers)) throw new Error("unsupported shape type: " + type);
13114
+ this._source = source;
13115
+ this._type = type;
13116
+ this._index = 0;
13117
+ this._parse = parsers[type];
13118
+ this.bbox = [header.getFloat64(36, true), header.getFloat64(44, true), header.getFloat64(52, true), header.getFloat64(60, true)];
13119
+ }
13120
+ var shp_prototype = Shp.prototype;
13121
+ shp_prototype.read = shp_read;
13122
+ shp_prototype.cancel = cancel_cancel;
13123
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shapefile/cancel.js
13124
+ function noop() {}
13125
+ /* harmony default export */ function shapefile_cancel() {
13126
+ return Promise.all([this._dbf && this._dbf.cancel(), this._shp.cancel()]).then(noop);
13127
+ }
13128
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shapefile/read.js
13129
+ /* harmony default export */ function shapefile_read() {
13130
+ var that = this;
13131
+ return Promise.all([that._dbf ? that._dbf.read() : {
13132
+ value: {}
13133
+ }, that._shp.read()]).then(function (results) {
13134
+ var dbf = results[0],
13135
+ shp = results[1];
13136
+ return shp.done ? shp : {
13137
+ done: false,
13138
+ value: {
13139
+ type: "Feature",
13140
+ properties: dbf.value,
13141
+ geometry: shp.value
13142
+ }
13143
+ };
13144
+ });
13145
+ }
13146
+ ;
13147
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/shapefile/index.js
13148
+
13149
+
13150
+
13151
+
13152
+ /* harmony default export */ function shapefile(shpSource, dbfSource, decoder) {
13153
+ return Promise.all([shp(shpSource), dbfSource && dbf(dbfSource, decoder)]).then(function (sources) {
13154
+ return new Shapefile(sources[0], sources[1]);
13155
+ });
13156
+ }
13157
+ function Shapefile(shp, dbf) {
13158
+ this._shp = shp;
13159
+ this._dbf = dbf;
13160
+ this.bbox = shp.bbox;
13161
+ }
13162
+ var shapefile_prototype = Shapefile.prototype;
13163
+ shapefile_prototype.read = shapefile_read;
13164
+ shapefile_prototype.cancel = shapefile_cancel;
13165
+ ;// CONCATENATED MODULE: ./node_modules/shapefile/index.js
13166
+
13167
+
13168
+
13169
+
13170
+
13171
+
13172
+ function shapefile_open(shp, dbf, options) {
13173
+ if (typeof dbf === "string") {
13174
+ if (!/\.dbf$/.test(dbf)) dbf += ".dbf";
13175
+ dbf = path(dbf, options);
13176
+ } else if (dbf instanceof ArrayBuffer || dbf instanceof Uint8Array) {
13177
+ dbf = array(dbf);
13178
+ } else if (dbf != null) {
13179
+ dbf = stream(dbf);
13180
+ }
13181
+ if (typeof shp === "string") {
13182
+ if (!/\.shp$/.test(shp)) shp += ".shp";
13183
+ if (dbf === undefined) dbf = path(shp.substring(0, shp.length - 4) + ".dbf", options).catch(function () {});
13184
+ shp = path(shp, options);
13185
+ } else if (shp instanceof ArrayBuffer || shp instanceof Uint8Array) {
13186
+ shp = array(shp);
13187
+ } else {
13188
+ shp = stream(shp);
13189
+ }
13190
+ return Promise.all([shp, dbf]).then(function (sources) {
13191
+ var shp = sources[0],
13192
+ dbf = sources[1],
13193
+ encoding = "windows-1252";
13194
+ if (options && options.encoding != null) encoding = options.encoding;
13195
+ return shapefile(shp, dbf, dbf && new TextDecoder(encoding));
13196
+ });
13197
+ }
13198
+ function openShp(source, options) {
13199
+ if (typeof source === "string") {
13200
+ if (!/\.shp$/.test(source)) source += ".shp";
13201
+ source = path(source, options);
13202
+ } else if (source instanceof ArrayBuffer || source instanceof Uint8Array) {
13203
+ source = array(source);
13204
+ } else {
13205
+ source = stream(source);
13206
+ }
13207
+ return Promise.resolve(source).then(shp);
13208
+ }
13209
+ function openDbf(source, options) {
13210
+ var encoding = "windows-1252";
13211
+ if (options && options.encoding != null) encoding = options.encoding;
13212
+ encoding = new TextDecoder(encoding);
13213
+ if (typeof source === "string") {
13214
+ if (!/\.dbf$/.test(source)) source += ".dbf";
13215
+ source = path(source, options);
13216
+ } else if (source instanceof ArrayBuffer || source instanceof Uint8Array) {
13217
+ source = array(source);
13218
+ } else {
13219
+ source = stream(source);
13220
+ }
13221
+ return Promise.resolve(source).then(function (source) {
13222
+ return dbf(source, encoding);
13223
+ });
13224
+ }
13225
+ function node_modules_shapefile_read(shp, dbf, options) {
13226
+ return shapefile_open(shp, dbf, options).then(function (source) {
13227
+ var features = [],
13228
+ collection = {
13229
+ type: "FeatureCollection",
13230
+ features: features,
13231
+ bbox: source.bbox
13232
+ };
13233
+ return source.read().then(function read(result) {
13234
+ if (result.done) return collection;
13235
+ features.push(result.value);
13236
+ return source.read().then(read);
13237
+ });
13238
+ });
13239
+ }
13240
+
13241
+ /***/ }),
13242
+
12595
13243
  /***/ 3010:
12596
13244
  /***/ (function(module) {
12597
13245
 
@@ -23686,6 +24334,22 @@ function defaultCompare(a, b) {
23686
24334
 
23687
24335
  /***/ }),
23688
24336
 
24337
+ /***/ 8897:
24338
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
24339
+
24340
+ // style-loader: Adds some css to the DOM by adding a <style> tag
24341
+
24342
+ // load the styles
24343
+ var content = __webpack_require__(458);
24344
+ if(content.__esModule) content = content.default;
24345
+ if(typeof content === 'string') content = [[module.id, content, '']];
24346
+ if(content.locals) module.exports = content.locals;
24347
+ // add the styles to the DOM
24348
+ var add = (__webpack_require__(208)/* ["default"] */ .Z)
24349
+ var update = add("ef9ffdf6", content, true, {"sourceMap":false,"shadowMode":false});
24350
+
24351
+ /***/ }),
24352
+
23689
24353
  /***/ 5620:
23690
24354
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
23691
24355
 
@@ -23798,35 +24462,51 @@ var update = add("5928cba1", content, true, {"sourceMap":false,"shadowMode":fals
23798
24462
 
23799
24463
  /***/ }),
23800
24464
 
23801
- /***/ 3427:
24465
+ /***/ 2462:
24466
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
24467
+
24468
+ // style-loader: Adds some css to the DOM by adding a <style> tag
24469
+
24470
+ // load the styles
24471
+ var content = __webpack_require__(1874);
24472
+ if(content.__esModule) content = content.default;
24473
+ if(typeof content === 'string') content = [[module.id, content, '']];
24474
+ if(content.locals) module.exports = content.locals;
24475
+ // add the styles to the DOM
24476
+ var add = (__webpack_require__(208)/* ["default"] */ .Z)
24477
+ var update = add("65613f70", content, true, {"sourceMap":false,"shadowMode":false});
24478
+
24479
+ /***/ }),
24480
+
24481
+ /***/ 6856:
23802
24482
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
23803
24483
 
23804
24484
  // style-loader: Adds some css to the DOM by adding a <style> tag
23805
24485
 
23806
24486
  // load the styles
23807
- var content = __webpack_require__(5578);
24487
+ var content = __webpack_require__(7238);
23808
24488
  if(content.__esModule) content = content.default;
23809
24489
  if(typeof content === 'string') content = [[module.id, content, '']];
23810
24490
  if(content.locals) module.exports = content.locals;
23811
24491
  // add the styles to the DOM
23812
24492
  var add = (__webpack_require__(208)/* ["default"] */ .Z)
23813
- var update = add("0a31fea8", content, true, {"sourceMap":false,"shadowMode":false});
24493
+ var update = add("33f10531", content, true, {"sourceMap":false,"shadowMode":false});
23814
24494
 
23815
24495
  /***/ }),
23816
24496
 
23817
- /***/ 9615:
24497
+ /***/ 7310:
23818
24498
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
23819
24499
 
23820
24500
  // style-loader: Adds some css to the DOM by adding a <style> tag
23821
24501
 
23822
24502
  // load the styles
23823
- var content = __webpack_require__(3676);
24503
+ var content = __webpack_require__(5211);
23824
24504
  if(content.__esModule) content = content.default;
23825
24505
  if(typeof content === 'string') content = [[module.id, content, '']];
23826
24506
  if(content.locals) module.exports = content.locals;
23827
24507
  // add the styles to the DOM
23828
24508
  var add = (__webpack_require__(208)/* ["default"] */ .Z)
23829
- var update = add("1aa082e6", content, true, {"sourceMap":false,"shadowMode":false});
24509
+ var update = add("f22fd5ae", content, true, {"sourceMap":false,"shadowMode":false});
23830
24510
 
23831
24511
  /***/ }),
23832
24512
 
@@ -24514,6 +25194,8 @@ __webpack_require__.d(__webpack_exports__, {
24514
25194
  "drawPoint": function() { return /* reexport */ draw_point; },
24515
25195
  "drawPolygon": function() { return /* reexport */ draw_polygon; },
24516
25196
  "drawTools": function() { return /* reexport */ draw; },
25197
+ "elTreeSelect": function() { return /* reexport */ el_tree_select; },
25198
+ "jsonFile": function() { return /* reexport */ jsonFile; },
24517
25199
  "mapDraw": function() { return /* reexport */ mapDraw; },
24518
25200
  "mapEvent": function() { return /* reexport */ mapEvent; },
24519
25201
  "mapFullScreen": function() { return /* reexport */ mapFullScreen; },
@@ -24522,7 +25204,9 @@ __webpack_require__.d(__webpack_exports__, {
24522
25204
  "mapMarker": function() { return /* reexport */ mapMarker; },
24523
25205
  "mapRain": function() { return /* reexport */ mapRain; },
24524
25206
  "mapSdk": function() { return /* reexport */ package_map; },
24525
- "mapTools": function() { return /* reexport */ mapTools; }
25207
+ "mapStyle": function() { return /* reexport */ mapStyle; },
25208
+ "mapTools": function() { return /* reexport */ mapTools; },
25209
+ "shpFile": function() { return /* reexport */ shpFile; }
24526
25210
  });
24527
25211
 
24528
25212
  // NAMESPACE OBJECT: ./src/package/index.js
@@ -24533,6 +25217,8 @@ __webpack_require__.d(package_namespaceObject, {
24533
25217
  "Qd": function() { return draw_point; },
24534
25218
  "is": function() { return draw_polygon; },
24535
25219
  "Cx": function() { return draw; },
25220
+ "FC": function() { return el_tree_select; },
25221
+ "tP": function() { return jsonFile; },
24536
25222
  "Gx": function() { return mapDraw; },
24537
25223
  "A": function() { return mapEvent; },
24538
25224
  "C2": function() { return mapFullScreen; },
@@ -24541,7 +25227,9 @@ __webpack_require__.d(package_namespaceObject, {
24541
25227
  "QT": function() { return mapMarker; },
24542
25228
  "V_": function() { return mapRain; },
24543
25229
  "xt": function() { return package_map; },
24544
- "zg": function() { return mapTools; }
25230
+ "UC": function() { return mapStyle; },
25231
+ "zg": function() { return mapTools; },
25232
+ "zn": function() { return shpFile; }
24545
25233
  });
24546
25234
 
24547
25235
  ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
@@ -59102,8 +59790,304 @@ var mapFullScreen_component = normalizeComponent(
59102
59790
  )
59103
59791
 
59104
59792
  /* harmony default export */ var mapFullScreen = (mapFullScreen_component.exports);
59105
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=3900f585&scoped=true&
59106
- var drawvue_type_template_id_3900f585_scoped_true_render = function render() {
59793
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
59794
+ var el_tree_selectvue_type_template_id_5a009b74_scoped_true_render = function render() {
59795
+ var _vm = this,
59796
+ _c = _vm._self._c;
59797
+ return _c('el-select', _vm._b({
59798
+ ref: "treeSelect",
59799
+ staticStyle: {
59800
+ "width": "100%"
59801
+ },
59802
+ attrs: {
59803
+ "size": "small",
59804
+ "value": _vm.valueTitle,
59805
+ "clearable": _vm.clearable,
59806
+ "popper-append-to-body": false
59807
+ },
59808
+ on: {
59809
+ "clear": _vm.clearHandle
59810
+ }
59811
+ }, 'el-select', _vm.$attrs, false), [_c('div', [_c('el-input', _vm._b({
59812
+ staticClass: "selectInput",
59813
+ attrs: {
59814
+ "size": "small",
59815
+ "placeholder": _vm.placeholder
59816
+ },
59817
+ model: {
59818
+ value: _vm.filterText,
59819
+ callback: function ($$v) {
59820
+ _vm.filterText = $$v;
59821
+ },
59822
+ expression: "filterText"
59823
+ }
59824
+ }, 'el-input', _vm.$attrs, false)), _c('el-option', {
59825
+ staticClass: "options",
59826
+ attrs: {
59827
+ "value": _vm.valueTitle,
59828
+ "label": _vm.valueTitle
59829
+ }
59830
+ }, [_c('el-tree', _vm._b({
59831
+ ref: "selectTree",
59832
+ attrs: {
59833
+ "id": "tree-option",
59834
+ "size": "small",
59835
+ "accordion": _vm.accordion,
59836
+ "data": _vm.options,
59837
+ "props": _vm.props,
59838
+ "node-key": _vm.props.value,
59839
+ "default-expanded-keys": _vm.defaultExpandedKey,
59840
+ "filter-node-method": _vm.filterNode
59841
+ },
59842
+ on: {
59843
+ "node-click": _vm.handleNodeClick
59844
+ }
59845
+ }, 'el-tree', _vm.$attrs, false))], 1)], 1)]);
59846
+ };
59847
+ var el_tree_selectvue_type_template_id_5a009b74_scoped_true_staticRenderFns = [];
59848
+
59849
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
59850
+ /* harmony default export */ var el_tree_selectvue_type_script_lang_js_ = ({
59851
+ name: 'el-tree-select',
59852
+ props: {
59853
+ /* 配置项 */
59854
+ props: {
59855
+ type: Object,
59856
+ default: () => {
59857
+ return {
59858
+ value: 'id',
59859
+ // ID字段名
59860
+ label: 'title',
59861
+ // 显示名称
59862
+ children: 'children' // 子级字段名
59863
+ };
59864
+ }
59865
+ },
59866
+
59867
+ /* 选项列表数据(树形结构的对象数组) */
59868
+ options: {
59869
+ type: Array,
59870
+ default: () => {
59871
+ return [];
59872
+ }
59873
+ },
59874
+ /* 初始值 */
59875
+ value: {
59876
+ type: Number,
59877
+ default: () => {
59878
+ return null;
59879
+ }
59880
+ },
59881
+ /* 可清空选项 */
59882
+ clearable: {
59883
+ type: Boolean,
59884
+ default: () => {
59885
+ return true;
59886
+ }
59887
+ },
59888
+ /* 自动收起 */
59889
+ accordion: {
59890
+ type: Boolean,
59891
+ default: () => {
59892
+ return false;
59893
+ }
59894
+ },
59895
+ placeholder: {
59896
+ type: String,
59897
+ default: () => {
59898
+ return '搜索关键字';
59899
+ }
59900
+ }
59901
+ },
59902
+ data() {
59903
+ return {
59904
+ filterText: '',
59905
+ valueId: this.value,
59906
+ // 初始值
59907
+ valueTitle: '',
59908
+ defaultExpandedKey: []
59909
+ };
59910
+ },
59911
+ mounted() {
59912
+ this.initHandle();
59913
+ },
59914
+ methods: {
59915
+ // 初始化值
59916
+ initHandle() {
59917
+ if (this.valueId) {
59918
+ this.valueTitle = this.$refs.selectTree.getNode(this.valueId).data[this.props.label]; // 初始化显示
59919
+ this.$refs.selectTree.setCurrentKey(this.valueId); // 设置默认选中
59920
+ this.defaultExpandedKey = [this.valueId]; // 设置默认展开
59921
+ }
59922
+
59923
+ this.initScroll();
59924
+ },
59925
+ // 初始化滚动条
59926
+ initScroll() {
59927
+ this.$nextTick(() => {
59928
+ let scrollWrap = document.querySelectorAll('.el-scrollbar .el-select-dropdown__wrap')[0];
59929
+ let scrollBar = document.querySelectorAll('.el-scrollbar .el-scrollbar__bar');
59930
+ scrollWrap.style.cssText = 'margin: 0px; max-height: none; overflow: hidden;';
59931
+ scrollBar.forEach(ele => ele.style.width = 0);
59932
+ });
59933
+ },
59934
+ // 切换选项
59935
+ handleNodeClick(node) {
59936
+ this.valueTitle = node[this.props.label];
59937
+ this.valueId = node[this.props.value];
59938
+ this.$emit('getValue', this.valueId);
59939
+ this.$emit('input', this.valueId);
59940
+ // console.log(this.valueId)
59941
+ this.defaultExpandedKey = [];
59942
+ if (!node.children || !node.children.length) {
59943
+ //补录选择完选项弹框不能收起
59944
+ this.$refs.treeSelect.blur();
59945
+ }
59946
+ },
59947
+ // 清除选中
59948
+ clearHandle() {
59949
+ this.valueTitle = '';
59950
+ this.valueId = null;
59951
+ this.defaultExpandedKey = [];
59952
+ this.clearSelected();
59953
+ this.$emit('getValue', null);
59954
+ },
59955
+ /* 清空选中样式 */
59956
+ clearSelected() {
59957
+ let allNode = document.querySelectorAll('#tree-option .el-tree-node');
59958
+ allNode.forEach(element => element.classList.remove('is-current'));
59959
+ },
59960
+ filterNode(value, data) {
59961
+ if (!value) return true;
59962
+ return data.name.indexOf(value) !== -1;
59963
+ }
59964
+ },
59965
+ watch: {
59966
+ value() {
59967
+ this.valueId = this.value;
59968
+ this.initHandle();
59969
+ },
59970
+ filterText(val) {
59971
+ this.$refs.selectTree.filter(val);
59972
+ }
59973
+ }
59974
+ });
59975
+ ;// CONCATENATED MODULE: ./src/package/components/el-tree-select.vue?vue&type=script&lang=js&
59976
+ /* harmony default export */ var components_el_tree_selectvue_type_script_lang_js_ = (el_tree_selectvue_type_script_lang_js_);
59977
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.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&
59978
+ var el_tree_selectvue_type_style_index_0_id_5a009b74_prod_scoped_true_lang_css_ = __webpack_require__(8897);
59979
+ ;// CONCATENATED MODULE: ./src/package/components/el-tree-select.vue?vue&type=style&index=0&id=5a009b74&prod&scoped=true&lang=css&
59980
+
59981
+ ;// CONCATENATED MODULE: ./src/package/components/el-tree-select.vue
59982
+
59983
+
59984
+
59985
+ ;
59986
+
59987
+
59988
+ /* normalize component */
59989
+
59990
+ var el_tree_select_component = normalizeComponent(
59991
+ components_el_tree_selectvue_type_script_lang_js_,
59992
+ el_tree_selectvue_type_template_id_5a009b74_scoped_true_render,
59993
+ el_tree_selectvue_type_template_id_5a009b74_scoped_true_staticRenderFns,
59994
+ false,
59995
+ null,
59996
+ "5a009b74",
59997
+ null
59998
+
59999
+ )
60000
+
60001
+ /* harmony default export */ var el_tree_select = (el_tree_select_component.exports);
60002
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
60003
+ var mapStylevue_type_template_id_1a040aed_scoped_true_render = function render() {
60004
+ var _vm = this,
60005
+ _c = _vm._self._c;
60006
+ return _c('div', [_c('el-radio-group', {
60007
+ attrs: {
60008
+ "size": "small"
60009
+ },
60010
+ model: {
60011
+ value: _vm.radio,
60012
+ callback: function ($$v) {
60013
+ _vm.radio = $$v;
60014
+ },
60015
+ expression: "radio"
60016
+ }
60017
+ }, [_c('el-radio-button', {
60018
+ attrs: {
60019
+ "label": 1
60020
+ }
60021
+ }, [_vm._v("卫星图")]), _c('el-radio-button', {
60022
+ attrs: {
60023
+ "label": 2
60024
+ }
60025
+ }, [_vm._v("矢量图")])], 1)], 1);
60026
+ };
60027
+ var mapStylevue_type_template_id_1a040aed_scoped_true_staticRenderFns = [];
60028
+
60029
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapStyle.vue?vue&type=script&lang=js&
60030
+
60031
+ // import { showLayer } from '../layers/index.js'
60032
+
60033
+ /* harmony default export */ var mapStylevue_type_script_lang_js_ = ({
60034
+ props: {
60035
+ type: {
60036
+ type: Number,
60037
+ default: 1
60038
+ }
60039
+ },
60040
+ data() {
60041
+ return {
60042
+ radio: 1,
60043
+ default: ''
60044
+ };
60045
+ },
60046
+ watch: {
60047
+ radio(val) {
60048
+ if (val === 1) {
60049
+ package_map.checkStyle(this.default).then(() => {
60050
+ this.$emit('checkStyle', val);
60051
+ });
60052
+ } else {
60053
+ package_map.checkStyle('mapbox://styles/mapbox/streets-v11').then(() => {
60054
+ this.$emit('checkStyle', val);
60055
+ });
60056
+ }
60057
+ }
60058
+ },
60059
+ mounted() {
60060
+ this.radio = this.type;
60061
+ setTimeout(() => {
60062
+ this.default = package_map.map.getStyle();
60063
+ // console.log(this.default)
60064
+ }, 1000);
60065
+ }
60066
+ });
60067
+ ;// CONCATENATED MODULE: ./src/package/components/mapStyle.vue?vue&type=script&lang=js&
60068
+ /* harmony default export */ var components_mapStylevue_type_script_lang_js_ = (mapStylevue_type_script_lang_js_);
60069
+ ;// CONCATENATED MODULE: ./src/package/components/mapStyle.vue
60070
+
60071
+
60072
+
60073
+
60074
+
60075
+ /* normalize component */
60076
+ ;
60077
+ var mapStyle_component = normalizeComponent(
60078
+ components_mapStylevue_type_script_lang_js_,
60079
+ mapStylevue_type_template_id_1a040aed_scoped_true_render,
60080
+ mapStylevue_type_template_id_1a040aed_scoped_true_staticRenderFns,
60081
+ false,
60082
+ null,
60083
+ "1a040aed",
60084
+ null
60085
+
60086
+ )
60087
+
60088
+ /* harmony default export */ var mapStyle = (mapStyle_component.exports);
60089
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
60090
+ var drawvue_type_template_id_551ff8b1_scoped_true_render = function render() {
59107
60091
  var _vm = this,
59108
60092
  _c = _vm._self._c;
59109
60093
  return _c('div', [_c('div', {
@@ -59220,104 +60204,183 @@ var drawvue_type_template_id_3900f585_scoped_true_render = function render() {
59220
60204
  on: {
59221
60205
  "click": _vm.search
59222
60206
  }
59223
- }, [_vm._v("搜索")])], 1)]) : _vm._e(), _vm._t("tools")], 2), _c('div', {
60207
+ }, [_vm._v("搜索")])], 1)]) : _vm._e(), _vm.uploadShp || _vm.uploadJson ? _c('div', {
60208
+ staticClass: "mt-15"
60209
+ }, [_vm.uploadShp ? _c('shp-file', {
60210
+ on: {
60211
+ "upload": _vm.getUpload
60212
+ }
60213
+ }) : _vm._e(), _vm.uploadJson ? _c('json-file', {
60214
+ on: {
60215
+ "upload": _vm.getUpload
60216
+ }
60217
+ }) : _vm._e()], 1) : _vm._e(), _vm._t("tools")], 2), _c('div', {
59224
60218
  staticClass: "right-fixed"
59225
60219
  }, [_vm._t("right-fixed")], 2)]);
59226
60220
  };
59227
- var drawvue_type_template_id_3900f585_scoped_true_staticRenderFns = [];
60221
+ var drawvue_type_template_id_551ff8b1_scoped_true_staticRenderFns = [];
59228
60222
 
59229
60223
  // EXTERNAL MODULE: ./node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.js
59230
60224
  var mapbox_gl_draw = __webpack_require__(1512);
59231
60225
  var mapbox_gl_draw_default = /*#__PURE__*/__webpack_require__.n(mapbox_gl_draw);
59232
60226
  // EXTERNAL MODULE: ./node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css
59233
60227
  var dist_mapbox_gl_draw = __webpack_require__(5620);
59234
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
59235
- var mapStylevue_type_template_id_1a040aed_scoped_true_render = function render() {
60228
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
60229
+ var jsonFilevue_type_template_id_18d75a4e_scoped_true_render = function render() {
59236
60230
  var _vm = this,
59237
60231
  _c = _vm._self._c;
59238
- return _c('div', [_c('el-radio-group', {
60232
+ return _c('el-button', {
60233
+ staticClass: "upload",
59239
60234
  attrs: {
59240
- "size": "small"
60235
+ "size": "small",
60236
+ "type": "warning"
60237
+ }
60238
+ }, [_vm._v(" JSON上传 "), _c('input', {
60239
+ staticClass: "file",
60240
+ attrs: {
60241
+ "type": "file",
60242
+ "accept": ".json"
59241
60243
  },
59242
- model: {
59243
- value: _vm.radio,
59244
- callback: function ($$v) {
59245
- _vm.radio = $$v;
59246
- },
59247
- expression: "radio"
60244
+ on: {
60245
+ "change": _vm.getFile
59248
60246
  }
59249
- }, [_c('el-radio-button', {
60247
+ })]);
60248
+ };
60249
+ var jsonFilevue_type_template_id_18d75a4e_scoped_true_staticRenderFns = [];
60250
+
60251
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/jsonFile.vue?vue&type=script&lang=js&
60252
+
60253
+ /* harmony default export */ var jsonFilevue_type_script_lang_js_ = ({
60254
+ data() {
60255
+ return {};
60256
+ },
60257
+ methods: {
60258
+ getFile(e) {
60259
+ const file = e.target.files ? e.target.files[0] : '';
60260
+ if (file) {
60261
+ let reader = new FileReader();
60262
+ reader.readAsText(file, 'UTF-8');
60263
+ reader.onload = f => {
60264
+ let json = f.target.result;
60265
+ if (json) {
60266
+ json = JSON.parse(json);
60267
+ if (!json.features) {
60268
+ json = arcGisToGeoJson(json);
60269
+ }
60270
+ this.$emit('upload', json);
60271
+ }
60272
+ };
60273
+ }
60274
+ }
60275
+ }
60276
+ });
60277
+ ;// CONCATENATED MODULE: ./src/package/draw/jsonFile.vue?vue&type=script&lang=js&
60278
+ /* harmony default export */ var draw_jsonFilevue_type_script_lang_js_ = (jsonFilevue_type_script_lang_js_);
60279
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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&
60280
+ var jsonFilevue_type_style_index_0_id_18d75a4e_prod_lang_scss_scoped_true_ = __webpack_require__(6856);
60281
+ ;// CONCATENATED MODULE: ./src/package/draw/jsonFile.vue?vue&type=style&index=0&id=18d75a4e&prod&lang=scss&scoped=true&
60282
+
60283
+ ;// CONCATENATED MODULE: ./src/package/draw/jsonFile.vue
60284
+
60285
+
60286
+
60287
+ ;
60288
+
60289
+
60290
+ /* normalize component */
60291
+
60292
+ var jsonFile_component = normalizeComponent(
60293
+ draw_jsonFilevue_type_script_lang_js_,
60294
+ jsonFilevue_type_template_id_18d75a4e_scoped_true_render,
60295
+ jsonFilevue_type_template_id_18d75a4e_scoped_true_staticRenderFns,
60296
+ false,
60297
+ null,
60298
+ "18d75a4e",
60299
+ null
60300
+
60301
+ )
60302
+
60303
+ /* harmony default export */ var jsonFile = (jsonFile_component.exports);
60304
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
60305
+ var shpFilevue_type_template_id_0f36a3d8_scoped_true_render = function render() {
60306
+ var _vm = this,
60307
+ _c = _vm._self._c;
60308
+ return _c('el-button', {
60309
+ staticClass: "upload",
59250
60310
  attrs: {
59251
- "label": 1
60311
+ "size": "small",
60312
+ "type": "warning"
59252
60313
  }
59253
- }, [_vm._v("卫星图")]), _c('el-radio-button', {
60314
+ }, [_vm._v(" SHP上传 "), _c('input', {
60315
+ staticClass: "file",
59254
60316
  attrs: {
59255
- "label": 2
60317
+ "type": "file",
60318
+ "accept": ".shp"
60319
+ },
60320
+ on: {
60321
+ "change": _vm.getFile
59256
60322
  }
59257
- }, [_vm._v("矢量图")])], 1)], 1);
60323
+ })]);
59258
60324
  };
59259
- var mapStylevue_type_template_id_1a040aed_scoped_true_staticRenderFns = [];
60325
+ var shpFilevue_type_template_id_0f36a3d8_scoped_true_staticRenderFns = [];
59260
60326
 
59261
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/components/mapStyle.vue?vue&type=script&lang=js&
60327
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/shpFile.vue?vue&type=script&lang=js&
59262
60328
 
59263
- // import { showLayer } from '../layers/index.js'
60329
+ const shapeFile = __webpack_require__(4952); // 导入shpfile.js
59264
60330
 
59265
- /* harmony default export */ var mapStylevue_type_script_lang_js_ = ({
59266
- props: {
59267
- type: {
59268
- type: Number,
59269
- default: 1
59270
- }
59271
- },
60331
+ /* harmony default export */ var shpFilevue_type_script_lang_js_ = ({
59272
60332
  data() {
59273
- return {
59274
- radio: 1,
59275
- default: ''
59276
- };
60333
+ return {};
59277
60334
  },
59278
- watch: {
59279
- radio(val) {
59280
- if (val === 1) {
59281
- package_map.checkStyle(this.default).then(() => {
59282
- this.$emit('checkStyle', val);
59283
- });
59284
- } else {
59285
- package_map.checkStyle('mapbox://styles/mapbox/streets-v11').then(() => {
59286
- this.$emit('checkStyle', val);
59287
- });
60335
+ methods: {
60336
+ getFile(e) {
60337
+ const file = e.target.files ? e.target.files[0] : '';
60338
+ if (file) {
60339
+ let reader = new FileReader();
60340
+ reader.readAsArrayBuffer(file);
60341
+ reader.onload = f => {
60342
+ const result = f.target.result;
60343
+ if (result) {
60344
+ shapeFile.read(result).then(json => {
60345
+ if (!json.features) {
60346
+ json = arcGisToGeoJson(json);
60347
+ }
60348
+ // console.log(json)
60349
+ this.$emit('upload', json);
60350
+ });
60351
+ }
60352
+ };
59288
60353
  }
59289
60354
  }
59290
- },
59291
- mounted() {
59292
- this.radio = this.type;
59293
- setTimeout(() => {
59294
- this.default = package_map.map.getStyle();
59295
- // console.log(this.default)
59296
- }, 1000);
59297
60355
  }
59298
60356
  });
59299
- ;// CONCATENATED MODULE: ./src/package/components/mapStyle.vue?vue&type=script&lang=js&
59300
- /* harmony default export */ var components_mapStylevue_type_script_lang_js_ = (mapStylevue_type_script_lang_js_);
59301
- ;// CONCATENATED MODULE: ./src/package/components/mapStyle.vue
60357
+ ;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=script&lang=js&
60358
+ /* harmony default export */ var draw_shpFilevue_type_script_lang_js_ = (shpFilevue_type_script_lang_js_);
60359
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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&
60360
+ var shpFilevue_type_style_index_0_id_0f36a3d8_prod_lang_scss_scoped_true_ = __webpack_require__(7310);
60361
+ ;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=style&index=0&id=0f36a3d8&prod&lang=scss&scoped=true&
60362
+
60363
+ ;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue
59302
60364
 
59303
60365
 
59304
60366
 
60367
+ ;
59305
60368
 
59306
60369
 
59307
60370
  /* normalize component */
59308
- ;
59309
- var mapStyle_component = normalizeComponent(
59310
- components_mapStylevue_type_script_lang_js_,
59311
- mapStylevue_type_template_id_1a040aed_scoped_true_render,
59312
- mapStylevue_type_template_id_1a040aed_scoped_true_staticRenderFns,
60371
+
60372
+ var shpFile_component = normalizeComponent(
60373
+ draw_shpFilevue_type_script_lang_js_,
60374
+ shpFilevue_type_template_id_0f36a3d8_scoped_true_render,
60375
+ shpFilevue_type_template_id_0f36a3d8_scoped_true_staticRenderFns,
59313
60376
  false,
59314
60377
  null,
59315
- "1a040aed",
60378
+ "0f36a3d8",
59316
60379
  null
59317
60380
 
59318
60381
  )
59319
60382
 
59320
- /* harmony default export */ var mapStyle = (mapStyle_component.exports);
60383
+ /* harmony default export */ var shpFile = (shpFile_component.exports);
59321
60384
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/index.vue?vue&type=script&lang=js&
59322
60385
 
59323
60386
 
@@ -59328,14 +60391,12 @@ var mapStyle_component = normalizeComponent(
59328
60391
 
59329
60392
 
59330
60393
 
59331
- // import { getLayerAll } from '../layers/index.js'
59332
-
59333
- // import styles from './styles'
59334
-
59335
60394
  /* harmony default export */ var drawvue_type_script_lang_js_ = ({
59336
60395
  components: {
59337
60396
  mapFullScreen: mapFullScreen,
59338
- mapStyle: mapStyle
60397
+ mapStyle: mapStyle,
60398
+ jsonFile: jsonFile,
60399
+ shpFile: shpFile
59339
60400
  },
59340
60401
  props: {
59341
60402
  fullDom: {
@@ -59380,6 +60441,14 @@ var mapStyle_component = normalizeComponent(
59380
60441
  // 是否显示当前位置
59381
60442
  type: Boolean,
59382
60443
  default: true
60444
+ },
60445
+ uploadJson: {
60446
+ type: Boolean,
60447
+ default: false
60448
+ },
60449
+ uploadShp: {
60450
+ type: Boolean,
60451
+ default: false
59383
60452
  }
59384
60453
  },
59385
60454
  data() {
@@ -59567,14 +60636,17 @@ var mapStyle_component = normalizeComponent(
59567
60636
  if (hasLayer('search-marker')) {
59568
60637
  showLayer('search-marker', true);
59569
60638
  }
60639
+ },
60640
+ getUpload(json) {
60641
+ this.$emit('getUpload', json);
59570
60642
  }
59571
60643
  }
59572
60644
  });
59573
60645
  ;// CONCATENATED MODULE: ./src/package/draw/index.vue?vue&type=script&lang=js&
59574
60646
  /* harmony default export */ var package_drawvue_type_script_lang_js_ = (drawvue_type_script_lang_js_);
59575
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=3900f585&prod&lang=scss&scoped=true&
59576
- var drawvue_type_style_index_0_id_3900f585_prod_lang_scss_scoped_true_ = __webpack_require__(3427);
59577
- ;// CONCATENATED MODULE: ./src/package/draw/index.vue?vue&type=style&index=0&id=3900f585&prod&lang=scss&scoped=true&
60647
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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&
60648
+ var drawvue_type_style_index_0_id_551ff8b1_prod_lang_scss_scoped_true_ = __webpack_require__(2462);
60649
+ ;// CONCATENATED MODULE: ./src/package/draw/index.vue?vue&type=style&index=0&id=551ff8b1&prod&lang=scss&scoped=true&
59578
60650
 
59579
60651
  ;// CONCATENATED MODULE: ./src/package/draw/index.vue
59580
60652
 
@@ -59587,11 +60659,11 @@ var drawvue_type_style_index_0_id_3900f585_prod_lang_scss_scoped_true_ = __webpa
59587
60659
 
59588
60660
  var draw_component = normalizeComponent(
59589
60661
  package_drawvue_type_script_lang_js_,
59590
- drawvue_type_template_id_3900f585_scoped_true_render,
59591
- drawvue_type_template_id_3900f585_scoped_true_staticRenderFns,
60662
+ drawvue_type_template_id_551ff8b1_scoped_true_render,
60663
+ drawvue_type_template_id_551ff8b1_scoped_true_staticRenderFns,
59592
60664
  false,
59593
60665
  null,
59594
- "3900f585",
60666
+ "551ff8b1",
59595
60667
  null
59596
60668
 
59597
60669
  )
@@ -59797,8 +60869,8 @@ var point_component = normalizeComponent(
59797
60869
  )
59798
60870
 
59799
60871
  /* harmony default export */ var draw_point = (point_component.exports);
59800
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=6271cf22&
59801
- var linevue_type_template_id_6271cf22_render = function render() {
60872
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
60873
+ var linevue_type_template_id_6f5160fa_render = function render() {
59802
60874
  var _vm = this,
59803
60875
  _c = _vm._self._c;
59804
60876
  return _c('div', {
@@ -59822,15 +60894,17 @@ var linevue_type_template_id_6271cf22_render = function render() {
59822
60894
  "update": _vm.drawUpdate,
59823
60895
  "end": _vm.drawUpdate,
59824
60896
  "delete": _vm.drawUpdate,
59825
- "clear": _vm.clear
60897
+ "clear": _vm.clear,
60898
+ "getUpload": _vm.getUpload
59826
60899
  }
59827
60900
  }, 'draw-tools', _vm.$attrs, false), [_c('div', {
59828
- staticClass: "mt-15 flex",
60901
+ staticClass: "mt-15 flex flex-wrap",
59829
60902
  attrs: {
59830
60903
  "slot": "tools"
59831
60904
  },
59832
60905
  slot: "tools"
59833
60906
  }, [_c('el-input', {
60907
+ staticClass: "flex-child-grow",
59834
60908
  staticStyle: {
59835
60909
  "width": "300px",
59836
60910
  "margin-right": "10px"
@@ -59841,11 +60915,7 @@ var linevue_type_template_id_6271cf22_render = function render() {
59841
60915
  "placeholder": "点击地图获取坐标",
59842
60916
  "readonly": _vm.readonly
59843
60917
  }
59844
- }), _vm.upload ? _c('shp-file', {
59845
- on: {
59846
- "upload": _vm.getShp
59847
- }
59848
- }) : _vm._e(), _c('el-button', {
60918
+ }), _c('el-button', {
59849
60919
  attrs: {
59850
60920
  "type": "primary",
59851
60921
  "size": "small"
@@ -59853,95 +60923,16 @@ var linevue_type_template_id_6271cf22_render = function render() {
59853
60923
  on: {
59854
60924
  "click": _vm.save
59855
60925
  }
59856
- }, [_vm._v("保存")])], 1)])], 1);
60926
+ }, [_vm._v("保存")]), _vm._t("default")], 2)])], 1);
59857
60927
  };
59858
- var linevue_type_template_id_6271cf22_staticRenderFns = [];
59859
-
59860
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
59861
- var shpFilevue_type_template_id_4be01ab4_scoped_true_render = function render() {
59862
- var _vm = this,
59863
- _c = _vm._self._c;
59864
- return _c('el-button', {
59865
- staticClass: "upload",
59866
- attrs: {
59867
- "size": "small",
59868
- "type": "warning"
59869
- }
59870
- }, [_vm._v(" JSON上传 "), _c('input', {
59871
- staticClass: "file",
59872
- attrs: {
59873
- "type": "file",
59874
- "accept": ".json"
59875
- },
59876
- on: {
59877
- "change": _vm.getFile
59878
- }
59879
- })]);
59880
- };
59881
- var shpFilevue_type_template_id_4be01ab4_scoped_true_staticRenderFns = [];
59882
-
59883
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/shpFile.vue?vue&type=script&lang=js&
59884
-
59885
- /* harmony default export */ var shpFilevue_type_script_lang_js_ = ({
59886
- data() {
59887
- return {};
59888
- },
59889
- methods: {
59890
- getFile(e) {
59891
- const file = e.target.files ? e.target.files[0] : '';
59892
- if (file) {
59893
- let reader = new FileReader();
59894
- reader.readAsText(file, 'UTF-8');
59895
- reader.onload = f => {
59896
- let json = f.target.result;
59897
- if (json) {
59898
- json = JSON.parse(json);
59899
- if (!json.FeatureCollection) {
59900
- json = arcGisToGeoJson(json);
59901
- }
59902
- console.log(json);
59903
- this.$emit('upload', json);
59904
- }
59905
- };
59906
- }
59907
- }
59908
- }
59909
- });
59910
- ;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=script&lang=js&
59911
- /* harmony default export */ var draw_shpFilevue_type_script_lang_js_ = (shpFilevue_type_script_lang_js_);
59912
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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&
59913
- var shpFilevue_type_style_index_0_id_4be01ab4_prod_lang_scss_scoped_true_ = __webpack_require__(9615);
59914
- ;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=style&index=0&id=4be01ab4&prod&lang=scss&scoped=true&
59915
-
59916
- ;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue
59917
-
59918
-
59919
-
59920
- ;
59921
-
59922
-
59923
- /* normalize component */
59924
-
59925
- var shpFile_component = normalizeComponent(
59926
- draw_shpFilevue_type_script_lang_js_,
59927
- shpFilevue_type_template_id_4be01ab4_scoped_true_render,
59928
- shpFilevue_type_template_id_4be01ab4_scoped_true_staticRenderFns,
59929
- false,
59930
- null,
59931
- "4be01ab4",
59932
- null
59933
-
59934
- )
60928
+ var linevue_type_template_id_6f5160fa_staticRenderFns = [];
59935
60929
 
59936
- /* harmony default export */ var shpFile = (shpFile_component.exports);
59937
60930
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/line.vue?vue&type=script&lang=js&
59938
60931
 
59939
60932
 
59940
-
59941
60933
  /* harmony default export */ var linevue_type_script_lang_js_ = ({
59942
60934
  components: {
59943
- drawTools: draw,
59944
- shpFile: shpFile
60935
+ drawTools: draw
59945
60936
  },
59946
60937
  props: {
59947
60938
  config: {
@@ -59952,20 +60943,11 @@ var shpFile_component = normalizeComponent(
59952
60943
  type: Boolean,
59953
60944
  default: false
59954
60945
  },
59955
- upload: {
59956
- // shp文件上传
59957
- type: Boolean,
59958
- default: false
59959
- },
59960
60946
  autoZoom: {
59961
60947
  // 自动缩放适应边界
59962
60948
  type: Boolean,
59963
60949
  default: false
59964
60950
  },
59965
- zoom: {
59966
- type: Number,
59967
- default: 14
59968
- },
59969
60951
  single: {
59970
60952
  type: Boolean,
59971
60953
  default: false
@@ -60000,7 +60982,6 @@ var shpFile_component = normalizeComponent(
60000
60982
  init() {
60001
60983
  let config = Object.assign({}, {
60002
60984
  accessToken: 'pk.eyJ1IjoiaGo0NjI3NzEzOTYiLCJhIjoiY2w5YzNjOTZvMDF6NDNwb2d6YmJkYWRpMCJ9.-fW-OChGB1oY2DCMO_c8sg',
60003
- zoom: this.zoom,
60004
60985
  center: [102.83643451528434, 24.81972792178513],
60005
60986
  is3d: false
60006
60987
  // defaultLanguage: 'zh-Hant',
@@ -60066,7 +61047,8 @@ var shpFile_component = normalizeComponent(
60066
61047
  this.geoJson = '';
60067
61048
  this.position = '';
60068
61049
  },
60069
- getShp(shp) {
61050
+ getUpload(shp) {
61051
+ console.log(shp);
60070
61052
  this.$refs.draw.clear(); // 先清空画布
60071
61053
  this.drawUpdate(shp, true);
60072
61054
  this.edit();
@@ -60085,8 +61067,8 @@ var shpFile_component = normalizeComponent(
60085
61067
  ;
60086
61068
  var line_component = normalizeComponent(
60087
61069
  draw_linevue_type_script_lang_js_,
60088
- linevue_type_template_id_6271cf22_render,
60089
- linevue_type_template_id_6271cf22_staticRenderFns,
61070
+ linevue_type_template_id_6f5160fa_render,
61071
+ linevue_type_template_id_6f5160fa_staticRenderFns,
60090
61072
  false,
60091
61073
  null,
60092
61074
  null,
@@ -60095,8 +61077,8 @@ var line_component = normalizeComponent(
60095
61077
  )
60096
61078
 
60097
61079
  /* harmony default export */ var line = (line_component.exports);
60098
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=5b00e058&
60099
- var polygonvue_type_template_id_5b00e058_render = function render() {
61080
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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&
61081
+ var polygonvue_type_template_id_a652ccb4_render = function render() {
60100
61082
  var _vm = this,
60101
61083
  _c = _vm._self._c;
60102
61084
  return _c('div', {
@@ -60120,15 +61102,17 @@ var polygonvue_type_template_id_5b00e058_render = function render() {
60120
61102
  "update": _vm.drawUpdate,
60121
61103
  "end": _vm.drawUpdate,
60122
61104
  "delete": _vm.drawUpdate,
60123
- "clear": _vm.clear
61105
+ "clear": _vm.clear,
61106
+ "getUpload": _vm.getUpload
60124
61107
  }
60125
61108
  }, 'draw-tools', _vm.$attrs, false), [_c('div', {
60126
- staticClass: "mt-15",
61109
+ staticClass: "mt-15 flex flex-wrap",
60127
61110
  attrs: {
60128
61111
  "slot": "tools"
60129
61112
  },
60130
61113
  slot: "tools"
60131
61114
  }, [_c('el-input', {
61115
+ staticClass: "flex-child-grow",
60132
61116
  staticStyle: {
60133
61117
  "width": "300px",
60134
61118
  "margin-right": "10px"
@@ -60139,11 +61123,7 @@ var polygonvue_type_template_id_5b00e058_render = function render() {
60139
61123
  "placeholder": "点击地图获取坐标",
60140
61124
  "readonly": _vm.readonly
60141
61125
  }
60142
- }), _vm.upload ? _c('shp-file', {
60143
- on: {
60144
- "upload": _vm.getShp
60145
- }
60146
- }) : _vm._e(), _c('el-button', {
61126
+ }), _c('el-button', {
60147
61127
  attrs: {
60148
61128
  "type": "primary",
60149
61129
  "size": "small"
@@ -60151,18 +61131,16 @@ var polygonvue_type_template_id_5b00e058_render = function render() {
60151
61131
  on: {
60152
61132
  "click": _vm.save
60153
61133
  }
60154
- }, [_vm._v("保存")])], 1)])], 1);
61134
+ }, [_vm._v("保存")]), _vm._t("default")], 2)])], 1);
60155
61135
  };
60156
- var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
61136
+ var polygonvue_type_template_id_a652ccb4_staticRenderFns = [];
60157
61137
 
60158
61138
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/draw/polygon.vue?vue&type=script&lang=js&
60159
61139
 
60160
61140
 
60161
-
60162
61141
  /* harmony default export */ var polygonvue_type_script_lang_js_ = ({
60163
61142
  components: {
60164
- drawTools: draw,
60165
- shpFile: shpFile
61143
+ drawTools: draw
60166
61144
  },
60167
61145
  props: {
60168
61146
  config: {
@@ -60182,14 +61160,6 @@ var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
60182
61160
  type: Boolean,
60183
61161
  default: true
60184
61162
  },
60185
- upload: {
60186
- type: Boolean,
60187
- default: false
60188
- },
60189
- zoom: {
60190
- type: Number,
60191
- default: 14
60192
- },
60193
61163
  geoData: {
60194
61164
  type: [Object, String],
60195
61165
  default: ''
@@ -60220,7 +61190,6 @@ var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
60220
61190
  init() {
60221
61191
  let config = Object.assign({}, {
60222
61192
  accessToken: 'pk.eyJ1IjoiaGo0NjI3NzEzOTYiLCJhIjoiY2w5YzNjOTZvMDF6NDNwb2d6YmJkYWRpMCJ9.-fW-OChGB1oY2DCMO_c8sg',
60223
- zoom: this.zoom,
60224
61193
  center: [102.83643451528434, 24.81972792178513],
60225
61194
  is3d: false
60226
61195
  // defaultLanguage: 'zh-Hant',
@@ -60284,7 +61253,7 @@ var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
60284
61253
  this.geoJson = '';
60285
61254
  this.position = '';
60286
61255
  },
60287
- getShp(shp) {
61256
+ getUpload(shp) {
60288
61257
  console.log(shp);
60289
61258
  this.$refs.draw.clear(); // 先清空画布
60290
61259
  this.drawUpdate(shp, true);
@@ -60304,8 +61273,8 @@ var polygonvue_type_template_id_5b00e058_staticRenderFns = [];
60304
61273
  ;
60305
61274
  var polygon_component = normalizeComponent(
60306
61275
  draw_polygonvue_type_script_lang_js_,
60307
- polygonvue_type_template_id_5b00e058_render,
60308
- polygonvue_type_template_id_5b00e058_staticRenderFns,
61276
+ polygonvue_type_template_id_a652ccb4_render,
61277
+ polygonvue_type_template_id_a652ccb4_staticRenderFns,
60309
61278
  false,
60310
61279
  null,
60311
61280
  null,
@@ -60390,6 +61359,10 @@ const mapEvent = {
60390
61359
 
60391
61360
 
60392
61361
 
61362
+ // 选择树组件
61363
+ // 修改地图风格
61364
+
61365
+
60393
61366
 
60394
61367
 
60395
61368