xy-map 1.1.25 → 1.1.27
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 +1199 -198
- package/xy-map.umd.js +1199 -198
- 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:
|
|
23792
24456
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
23793
24457
|
|
|
23794
24458
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
23795
24459
|
|
|
23796
24460
|
// load the styles
|
|
23797
|
-
var content = __webpack_require__(
|
|
24461
|
+
var content = __webpack_require__(976);
|
|
23798
24462
|
if(content.__esModule) content = content.default;
|
|
23799
24463
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
23800
24464
|
if(content.locals) module.exports = content.locals;
|
|
23801
24465
|
// add the styles to the DOM
|
|
23802
24466
|
var add = (__webpack_require__(7037)/* ["default"] */ .Z)
|
|
23803
|
-
var update = add("
|
|
24467
|
+
var update = add("18261548", content, true, {"sourceMap":false,"shadowMode":false});
|
|
23804
24468
|
|
|
23805
24469
|
/***/ }),
|
|
23806
24470
|
|
|
23807
|
-
/***/
|
|
24471
|
+
/***/ 2412:
|
|
23808
24472
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
23809
24473
|
|
|
23810
24474
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
23811
24475
|
|
|
23812
24476
|
// load the styles
|
|
23813
|
-
var content = __webpack_require__(
|
|
24477
|
+
var content = __webpack_require__(2915);
|
|
23814
24478
|
if(content.__esModule) content = content.default;
|
|
23815
24479
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
23816
24480
|
if(content.locals) module.exports = content.locals;
|
|
23817
24481
|
// add the styles to the DOM
|
|
23818
24482
|
var add = (__webpack_require__(7037)/* ["default"] */ .Z)
|
|
23819
|
-
var update = add("
|
|
24483
|
+
var update = add("4e2bfa31", content, true, {"sourceMap":false,"shadowMode":false});
|
|
24484
|
+
|
|
24485
|
+
/***/ }),
|
|
24486
|
+
|
|
24487
|
+
/***/ 1811:
|
|
24488
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
24489
|
+
|
|
24490
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
24491
|
+
|
|
24492
|
+
// load the styles
|
|
24493
|
+
var content = __webpack_require__(3973);
|
|
24494
|
+
if(content.__esModule) content = content.default;
|
|
24495
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
24496
|
+
if(content.locals) module.exports = content.locals;
|
|
24497
|
+
// add the styles to the DOM
|
|
24498
|
+
var add = (__webpack_require__(7037)/* ["default"] */ .Z)
|
|
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
|
|
@@ -48472,6 +49160,22 @@ const pointToGeoJson = (position = [0, 0]) => {
|
|
|
48472
49160
|
return data;
|
|
48473
49161
|
};
|
|
48474
49162
|
|
|
49163
|
+
// arcGis坐标转geoJson
|
|
49164
|
+
const arcGisToGeoJson = Json => {
|
|
49165
|
+
let data = {
|
|
49166
|
+
type: 'FeatureCollection',
|
|
49167
|
+
features: []
|
|
49168
|
+
};
|
|
49169
|
+
Json.geometries.forEach(item => {
|
|
49170
|
+
data.features.push({
|
|
49171
|
+
type: 'Feature',
|
|
49172
|
+
geometry: item,
|
|
49173
|
+
properties: {}
|
|
49174
|
+
});
|
|
49175
|
+
});
|
|
49176
|
+
return data;
|
|
49177
|
+
};
|
|
49178
|
+
|
|
48475
49179
|
/**
|
|
48476
49180
|
* 加载图片
|
|
48477
49181
|
*/
|
|
@@ -59068,8 +59772,304 @@ var mapFullScreen_component = normalizeComponent(
|
|
|
59068
59772
|
)
|
|
59069
59773
|
|
|
59070
59774
|
/* harmony default export */ var mapFullScreen = (mapFullScreen_component.exports);
|
|
59071
|
-
;// 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/
|
|
59072
|
-
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() {
|
|
59073
60073
|
var _vm = this,
|
|
59074
60074
|
_c = _vm._self._c;
|
|
59075
60075
|
return _c('div', [_c('div', {
|
|
@@ -59186,104 +60186,183 @@ var drawvue_type_template_id_3900f585_scoped_true_render = function render() {
|
|
|
59186
60186
|
on: {
|
|
59187
60187
|
"click": _vm.search
|
|
59188
60188
|
}
|
|
59189
|
-
}, [_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', {
|
|
59190
60200
|
staticClass: "right-fixed"
|
|
59191
60201
|
}, [_vm._t("right-fixed")], 2)]);
|
|
59192
60202
|
};
|
|
59193
|
-
var
|
|
60203
|
+
var drawvue_type_template_id_551ff8b1_scoped_true_staticRenderFns = [];
|
|
59194
60204
|
|
|
59195
60205
|
// EXTERNAL MODULE: ./node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.js
|
|
59196
60206
|
var mapbox_gl_draw = __webpack_require__(5884);
|
|
59197
60207
|
var mapbox_gl_draw_default = /*#__PURE__*/__webpack_require__.n(mapbox_gl_draw);
|
|
59198
60208
|
// EXTERNAL MODULE: ./node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css
|
|
59199
60209
|
var dist_mapbox_gl_draw = __webpack_require__(6957);
|
|
59200
|
-
;// 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/
|
|
59201
|
-
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() {
|
|
59202
60212
|
var _vm = this,
|
|
59203
60213
|
_c = _vm._self._c;
|
|
59204
|
-
return _c('
|
|
60214
|
+
return _c('el-button', {
|
|
60215
|
+
staticClass: "upload",
|
|
59205
60216
|
attrs: {
|
|
59206
|
-
"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"
|
|
59207
60225
|
},
|
|
59208
|
-
|
|
59209
|
-
|
|
59210
|
-
callback: function ($$v) {
|
|
59211
|
-
_vm.radio = $$v;
|
|
59212
|
-
},
|
|
59213
|
-
expression: "radio"
|
|
60226
|
+
on: {
|
|
60227
|
+
"change": _vm.getFile
|
|
59214
60228
|
}
|
|
59215
|
-
}
|
|
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",
|
|
59216
60292
|
attrs: {
|
|
59217
|
-
"
|
|
60293
|
+
"size": "small",
|
|
60294
|
+
"type": "warning"
|
|
59218
60295
|
}
|
|
59219
|
-
}, [_vm._v("
|
|
60296
|
+
}, [_vm._v(" SHP上传 "), _c('input', {
|
|
60297
|
+
staticClass: "file",
|
|
59220
60298
|
attrs: {
|
|
59221
|
-
"
|
|
60299
|
+
"type": "file",
|
|
60300
|
+
"accept": ".shp"
|
|
60301
|
+
},
|
|
60302
|
+
on: {
|
|
60303
|
+
"change": _vm.getFile
|
|
59222
60304
|
}
|
|
59223
|
-
}
|
|
60305
|
+
})]);
|
|
59224
60306
|
};
|
|
59225
|
-
var
|
|
60307
|
+
var shpFilevue_type_template_id_0f36a3d8_scoped_true_staticRenderFns = [];
|
|
59226
60308
|
|
|
59227
|
-
;// 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&
|
|
59228
60310
|
|
|
59229
|
-
|
|
60311
|
+
const shapeFile = __webpack_require__(1393); // 导入shpfile.js
|
|
59230
60312
|
|
|
59231
|
-
/* harmony default export */ var
|
|
59232
|
-
props: {
|
|
59233
|
-
type: {
|
|
59234
|
-
type: Number,
|
|
59235
|
-
default: 1
|
|
59236
|
-
}
|
|
59237
|
-
},
|
|
60313
|
+
/* harmony default export */ var shpFilevue_type_script_lang_js_ = ({
|
|
59238
60314
|
data() {
|
|
59239
|
-
return {
|
|
59240
|
-
radio: 1,
|
|
59241
|
-
default: ''
|
|
59242
|
-
};
|
|
60315
|
+
return {};
|
|
59243
60316
|
},
|
|
59244
|
-
|
|
59245
|
-
|
|
59246
|
-
|
|
59247
|
-
|
|
59248
|
-
|
|
59249
|
-
|
|
59250
|
-
|
|
59251
|
-
|
|
59252
|
-
|
|
59253
|
-
|
|
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
|
+
};
|
|
59254
60335
|
}
|
|
59255
60336
|
}
|
|
59256
|
-
},
|
|
59257
|
-
mounted() {
|
|
59258
|
-
this.radio = this.type;
|
|
59259
|
-
setTimeout(() => {
|
|
59260
|
-
this.default = package_map.map.getStyle();
|
|
59261
|
-
// console.log(this.default)
|
|
59262
|
-
}, 1000);
|
|
59263
60337
|
}
|
|
59264
60338
|
});
|
|
59265
|
-
;// CONCATENATED MODULE: ./src/package/
|
|
59266
|
-
/* harmony default export */ var
|
|
59267
|
-
|
|
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&
|
|
59268
60344
|
|
|
60345
|
+
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue
|
|
59269
60346
|
|
|
59270
60347
|
|
|
59271
60348
|
|
|
60349
|
+
;
|
|
60350
|
+
|
|
59272
60351
|
|
|
59273
60352
|
/* normalize component */
|
|
59274
|
-
|
|
59275
|
-
var
|
|
59276
|
-
|
|
59277
|
-
|
|
59278
|
-
|
|
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,
|
|
59279
60358
|
false,
|
|
59280
60359
|
null,
|
|
59281
|
-
"
|
|
60360
|
+
"0f36a3d8",
|
|
59282
60361
|
null
|
|
59283
60362
|
|
|
59284
60363
|
)
|
|
59285
60364
|
|
|
59286
|
-
/* harmony default export */ var
|
|
60365
|
+
/* harmony default export */ var shpFile = (shpFile_component.exports);
|
|
59287
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&
|
|
59288
60367
|
|
|
59289
60368
|
|
|
@@ -59294,14 +60373,12 @@ var mapStyle_component = normalizeComponent(
|
|
|
59294
60373
|
|
|
59295
60374
|
|
|
59296
60375
|
|
|
59297
|
-
// import { getLayerAll } from '../layers/index.js'
|
|
59298
|
-
|
|
59299
|
-
// import styles from './styles'
|
|
59300
|
-
|
|
59301
60376
|
/* harmony default export */ var drawvue_type_script_lang_js_ = ({
|
|
59302
60377
|
components: {
|
|
59303
60378
|
mapFullScreen: mapFullScreen,
|
|
59304
|
-
mapStyle: mapStyle
|
|
60379
|
+
mapStyle: mapStyle,
|
|
60380
|
+
jsonFile: jsonFile,
|
|
60381
|
+
shpFile: shpFile
|
|
59305
60382
|
},
|
|
59306
60383
|
props: {
|
|
59307
60384
|
fullDom: {
|
|
@@ -59346,6 +60423,14 @@ var mapStyle_component = normalizeComponent(
|
|
|
59346
60423
|
// 是否显示当前位置
|
|
59347
60424
|
type: Boolean,
|
|
59348
60425
|
default: true
|
|
60426
|
+
},
|
|
60427
|
+
uploadJson: {
|
|
60428
|
+
type: Boolean,
|
|
60429
|
+
default: false
|
|
60430
|
+
},
|
|
60431
|
+
uploadShp: {
|
|
60432
|
+
type: Boolean,
|
|
60433
|
+
default: false
|
|
59349
60434
|
}
|
|
59350
60435
|
},
|
|
59351
60436
|
data() {
|
|
@@ -59533,14 +60618,17 @@ var mapStyle_component = normalizeComponent(
|
|
|
59533
60618
|
if (hasLayer('search-marker')) {
|
|
59534
60619
|
showLayer('search-marker', true);
|
|
59535
60620
|
}
|
|
60621
|
+
},
|
|
60622
|
+
getUpload(json) {
|
|
60623
|
+
this.$emit('getUpload', json);
|
|
59536
60624
|
}
|
|
59537
60625
|
}
|
|
59538
60626
|
});
|
|
59539
60627
|
;// CONCATENATED MODULE: ./src/package/draw/index.vue?vue&type=script&lang=js&
|
|
59540
60628
|
/* harmony default export */ var package_drawvue_type_script_lang_js_ = (drawvue_type_script_lang_js_);
|
|
59541
|
-
// 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=
|
|
59542
|
-
var
|
|
59543
|
-
;// 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&
|
|
59544
60632
|
|
|
59545
60633
|
;// CONCATENATED MODULE: ./src/package/draw/index.vue
|
|
59546
60634
|
|
|
@@ -59553,11 +60641,11 @@ var drawvue_type_style_index_0_id_3900f585_prod_lang_scss_scoped_true_ = __webpa
|
|
|
59553
60641
|
|
|
59554
60642
|
var draw_component = normalizeComponent(
|
|
59555
60643
|
package_drawvue_type_script_lang_js_,
|
|
59556
|
-
|
|
59557
|
-
|
|
60644
|
+
drawvue_type_template_id_551ff8b1_scoped_true_render,
|
|
60645
|
+
drawvue_type_template_id_551ff8b1_scoped_true_staticRenderFns,
|
|
59558
60646
|
false,
|
|
59559
60647
|
null,
|
|
59560
|
-
"
|
|
60648
|
+
"551ff8b1",
|
|
59561
60649
|
null
|
|
59562
60650
|
|
|
59563
60651
|
)
|
|
@@ -59763,8 +60851,8 @@ var point_component = normalizeComponent(
|
|
|
59763
60851
|
)
|
|
59764
60852
|
|
|
59765
60853
|
/* harmony default export */ var draw_point = (point_component.exports);
|
|
59766
|
-
;// 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=
|
|
59767
|
-
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=2797c483&
|
|
60855
|
+
var linevue_type_template_id_2797c483_render = function render() {
|
|
59768
60856
|
var _vm = this,
|
|
59769
60857
|
_c = _vm._self._c;
|
|
59770
60858
|
return _c('div', {
|
|
@@ -59782,14 +60870,14 @@ var linevue_type_template_id_7cb70e8d_render = function render() {
|
|
|
59782
60870
|
attrs: {
|
|
59783
60871
|
"list": ['line'],
|
|
59784
60872
|
"single": _vm.single,
|
|
59785
|
-
"showMoveInput": false
|
|
59786
|
-
"showDeleteBtn": false
|
|
60873
|
+
"showMoveInput": false
|
|
59787
60874
|
},
|
|
59788
60875
|
on: {
|
|
59789
60876
|
"update": _vm.drawUpdate,
|
|
59790
60877
|
"end": _vm.drawUpdate,
|
|
59791
60878
|
"delete": _vm.drawUpdate,
|
|
59792
|
-
"clear": _vm.clear
|
|
60879
|
+
"clear": _vm.clear,
|
|
60880
|
+
"getUpload": _vm.getUpload
|
|
59793
60881
|
}
|
|
59794
60882
|
}, 'draw-tools', _vm.$attrs, false), [_c('div', {
|
|
59795
60883
|
staticClass: "mt-15 flex",
|
|
@@ -59808,11 +60896,7 @@ var linevue_type_template_id_7cb70e8d_render = function render() {
|
|
|
59808
60896
|
"placeholder": "点击地图获取坐标",
|
|
59809
60897
|
"readonly": _vm.readonly
|
|
59810
60898
|
}
|
|
59811
|
-
}),
|
|
59812
|
-
on: {
|
|
59813
|
-
"upload": _vm.getShp
|
|
59814
|
-
}
|
|
59815
|
-
}) : _vm._e(), _c('el-button', {
|
|
60899
|
+
}), _c('el-button', {
|
|
59816
60900
|
attrs: {
|
|
59817
60901
|
"type": "primary",
|
|
59818
60902
|
"size": "small"
|
|
@@ -59822,88 +60906,14 @@ var linevue_type_template_id_7cb70e8d_render = function render() {
|
|
|
59822
60906
|
}
|
|
59823
60907
|
}, [_vm._v("保存")])], 1)])], 1);
|
|
59824
60908
|
};
|
|
59825
|
-
var
|
|
59826
|
-
|
|
59827
|
-
;// 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=3ec8e688&scoped=true&
|
|
59828
|
-
var shpFilevue_type_template_id_3ec8e688_scoped_true_render = function render() {
|
|
59829
|
-
var _vm = this,
|
|
59830
|
-
_c = _vm._self._c;
|
|
59831
|
-
return _c('el-button', {
|
|
59832
|
-
staticClass: "upload",
|
|
59833
|
-
attrs: {
|
|
59834
|
-
"size": "small",
|
|
59835
|
-
"type": "warning"
|
|
59836
|
-
}
|
|
59837
|
-
}, [_vm._v(" shp上传 "), _c('input', {
|
|
59838
|
-
staticClass: "file",
|
|
59839
|
-
attrs: {
|
|
59840
|
-
"type": "file",
|
|
59841
|
-
"accept": ".json"
|
|
59842
|
-
},
|
|
59843
|
-
on: {
|
|
59844
|
-
"change": _vm.getFile
|
|
59845
|
-
}
|
|
59846
|
-
})]);
|
|
59847
|
-
};
|
|
59848
|
-
var shpFilevue_type_template_id_3ec8e688_scoped_true_staticRenderFns = [];
|
|
60909
|
+
var linevue_type_template_id_2797c483_staticRenderFns = [];
|
|
59849
60910
|
|
|
59850
|
-
;// 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&
|
|
59851
|
-
/* harmony default export */ var shpFilevue_type_script_lang_js_ = ({
|
|
59852
|
-
data() {
|
|
59853
|
-
return {};
|
|
59854
|
-
},
|
|
59855
|
-
methods: {
|
|
59856
|
-
getFile(e) {
|
|
59857
|
-
const file = e.target.files ? e.target.files[0] : '';
|
|
59858
|
-
if (file) {
|
|
59859
|
-
let reader = new FileReader();
|
|
59860
|
-
reader.readAsText(file, 'UTF-8');
|
|
59861
|
-
reader.onload = f => {
|
|
59862
|
-
let json = f.target.result;
|
|
59863
|
-
if (json) {
|
|
59864
|
-
json = JSON.parse(json);
|
|
59865
|
-
this.$emit('upload', json);
|
|
59866
|
-
}
|
|
59867
|
-
};
|
|
59868
|
-
}
|
|
59869
|
-
}
|
|
59870
|
-
}
|
|
59871
|
-
});
|
|
59872
|
-
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=script&lang=js&
|
|
59873
|
-
/* harmony default export */ var draw_shpFilevue_type_script_lang_js_ = (shpFilevue_type_script_lang_js_);
|
|
59874
|
-
// 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=3ec8e688&prod&lang=scss&scoped=true&
|
|
59875
|
-
var shpFilevue_type_style_index_0_id_3ec8e688_prod_lang_scss_scoped_true_ = __webpack_require__(4907);
|
|
59876
|
-
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue?vue&type=style&index=0&id=3ec8e688&prod&lang=scss&scoped=true&
|
|
59877
|
-
|
|
59878
|
-
;// CONCATENATED MODULE: ./src/package/draw/shpFile.vue
|
|
59879
|
-
|
|
59880
|
-
|
|
59881
|
-
|
|
59882
|
-
;
|
|
59883
|
-
|
|
59884
|
-
|
|
59885
|
-
/* normalize component */
|
|
59886
|
-
|
|
59887
|
-
var shpFile_component = normalizeComponent(
|
|
59888
|
-
draw_shpFilevue_type_script_lang_js_,
|
|
59889
|
-
shpFilevue_type_template_id_3ec8e688_scoped_true_render,
|
|
59890
|
-
shpFilevue_type_template_id_3ec8e688_scoped_true_staticRenderFns,
|
|
59891
|
-
false,
|
|
59892
|
-
null,
|
|
59893
|
-
"3ec8e688",
|
|
59894
|
-
null
|
|
59895
|
-
|
|
59896
|
-
)
|
|
59897
|
-
|
|
59898
|
-
/* harmony default export */ var shpFile = (shpFile_component.exports);
|
|
59899
60911
|
;// 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&
|
|
59900
60912
|
|
|
59901
60913
|
|
|
59902
|
-
|
|
59903
60914
|
/* harmony default export */ var linevue_type_script_lang_js_ = ({
|
|
59904
60915
|
components: {
|
|
59905
|
-
drawTools: draw
|
|
59906
|
-
shpFile: shpFile
|
|
60916
|
+
drawTools: draw
|
|
59907
60917
|
},
|
|
59908
60918
|
props: {
|
|
59909
60919
|
config: {
|
|
@@ -59914,11 +60924,6 @@ var shpFile_component = normalizeComponent(
|
|
|
59914
60924
|
type: Boolean,
|
|
59915
60925
|
default: false
|
|
59916
60926
|
},
|
|
59917
|
-
upload: {
|
|
59918
|
-
// shp文件上传
|
|
59919
|
-
type: Boolean,
|
|
59920
|
-
default: false
|
|
59921
|
-
},
|
|
59922
60927
|
autoZoom: {
|
|
59923
60928
|
// 自动缩放适应边界
|
|
59924
60929
|
type: Boolean,
|
|
@@ -60004,6 +61009,7 @@ var shpFile_component = normalizeComponent(
|
|
|
60004
61009
|
drawUpdate(data, autoZoom = false) {
|
|
60005
61010
|
if (!data) return;
|
|
60006
61011
|
this.geoJson = data;
|
|
61012
|
+
console.log(data);
|
|
60007
61013
|
this.position = data.features.map(item => item.geometry.coordinates);
|
|
60008
61014
|
if (this.autoZoom || autoZoom) {
|
|
60009
61015
|
// 开启缩放动画
|
|
@@ -60027,7 +61033,8 @@ var shpFile_component = normalizeComponent(
|
|
|
60027
61033
|
this.geoJson = '';
|
|
60028
61034
|
this.position = '';
|
|
60029
61035
|
},
|
|
60030
|
-
|
|
61036
|
+
getUpload(shp) {
|
|
61037
|
+
console.log(shp);
|
|
60031
61038
|
this.$refs.draw.clear(); // 先清空画布
|
|
60032
61039
|
this.drawUpdate(shp, true);
|
|
60033
61040
|
this.edit();
|
|
@@ -60046,8 +61053,8 @@ var shpFile_component = normalizeComponent(
|
|
|
60046
61053
|
;
|
|
60047
61054
|
var line_component = normalizeComponent(
|
|
60048
61055
|
draw_linevue_type_script_lang_js_,
|
|
60049
|
-
|
|
60050
|
-
|
|
61056
|
+
linevue_type_template_id_2797c483_render,
|
|
61057
|
+
linevue_type_template_id_2797c483_staticRenderFns,
|
|
60051
61058
|
false,
|
|
60052
61059
|
null,
|
|
60053
61060
|
null,
|
|
@@ -60056,8 +61063,8 @@ var line_component = normalizeComponent(
|
|
|
60056
61063
|
)
|
|
60057
61064
|
|
|
60058
61065
|
/* harmony default export */ var line = (line_component.exports);
|
|
60059
|
-
;// 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=
|
|
60060
|
-
var
|
|
61066
|
+
;// 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=6f860753&
|
|
61067
|
+
var polygonvue_type_template_id_6f860753_render = function render() {
|
|
60061
61068
|
var _vm = this,
|
|
60062
61069
|
_c = _vm._self._c;
|
|
60063
61070
|
return _c('div', {
|
|
@@ -60075,14 +61082,14 @@ var polygonvue_type_template_id_1005c2b8_render = function render() {
|
|
|
60075
61082
|
attrs: {
|
|
60076
61083
|
"list": ['polygon'],
|
|
60077
61084
|
"single": _vm.single,
|
|
60078
|
-
"showMoveInput": false
|
|
60079
|
-
"showDeleteBtn": false
|
|
61085
|
+
"showMoveInput": false
|
|
60080
61086
|
},
|
|
60081
61087
|
on: {
|
|
60082
61088
|
"update": _vm.drawUpdate,
|
|
60083
61089
|
"end": _vm.drawUpdate,
|
|
60084
61090
|
"delete": _vm.drawUpdate,
|
|
60085
|
-
"clear": _vm.clear
|
|
61091
|
+
"clear": _vm.clear,
|
|
61092
|
+
"getUpload": _vm.getUpload
|
|
60086
61093
|
}
|
|
60087
61094
|
}, 'draw-tools', _vm.$attrs, false), [_c('div', {
|
|
60088
61095
|
staticClass: "mt-15",
|
|
@@ -60101,11 +61108,7 @@ var polygonvue_type_template_id_1005c2b8_render = function render() {
|
|
|
60101
61108
|
"placeholder": "点击地图获取坐标",
|
|
60102
61109
|
"readonly": _vm.readonly
|
|
60103
61110
|
}
|
|
60104
|
-
}),
|
|
60105
|
-
on: {
|
|
60106
|
-
"upload": _vm.getShp
|
|
60107
|
-
}
|
|
60108
|
-
}) : _vm._e(), _c('el-button', {
|
|
61111
|
+
}), _c('el-button', {
|
|
60109
61112
|
attrs: {
|
|
60110
61113
|
"type": "primary",
|
|
60111
61114
|
"size": "small"
|
|
@@ -60115,16 +61118,14 @@ var polygonvue_type_template_id_1005c2b8_render = function render() {
|
|
|
60115
61118
|
}
|
|
60116
61119
|
}, [_vm._v("保存")])], 1)])], 1);
|
|
60117
61120
|
};
|
|
60118
|
-
var
|
|
61121
|
+
var polygonvue_type_template_id_6f860753_staticRenderFns = [];
|
|
60119
61122
|
|
|
60120
61123
|
;// 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&
|
|
60121
61124
|
|
|
60122
61125
|
|
|
60123
|
-
|
|
60124
61126
|
/* harmony default export */ var polygonvue_type_script_lang_js_ = ({
|
|
60125
61127
|
components: {
|
|
60126
|
-
drawTools: draw
|
|
60127
|
-
shpFile: shpFile
|
|
61128
|
+
drawTools: draw
|
|
60128
61129
|
},
|
|
60129
61130
|
props: {
|
|
60130
61131
|
config: {
|
|
@@ -60144,10 +61145,6 @@ var polygonvue_type_template_id_1005c2b8_staticRenderFns = [];
|
|
|
60144
61145
|
type: Boolean,
|
|
60145
61146
|
default: true
|
|
60146
61147
|
},
|
|
60147
|
-
upload: {
|
|
60148
|
-
type: Boolean,
|
|
60149
|
-
default: false
|
|
60150
|
-
},
|
|
60151
61148
|
zoom: {
|
|
60152
61149
|
type: Number,
|
|
60153
61150
|
default: 14
|
|
@@ -60246,7 +61243,7 @@ var polygonvue_type_template_id_1005c2b8_staticRenderFns = [];
|
|
|
60246
61243
|
this.geoJson = '';
|
|
60247
61244
|
this.position = '';
|
|
60248
61245
|
},
|
|
60249
|
-
|
|
61246
|
+
getUpload(shp) {
|
|
60250
61247
|
console.log(shp);
|
|
60251
61248
|
this.$refs.draw.clear(); // 先清空画布
|
|
60252
61249
|
this.drawUpdate(shp, true);
|
|
@@ -60266,8 +61263,8 @@ var polygonvue_type_template_id_1005c2b8_staticRenderFns = [];
|
|
|
60266
61263
|
;
|
|
60267
61264
|
var polygon_component = normalizeComponent(
|
|
60268
61265
|
draw_polygonvue_type_script_lang_js_,
|
|
60269
|
-
|
|
60270
|
-
|
|
61266
|
+
polygonvue_type_template_id_6f860753_render,
|
|
61267
|
+
polygonvue_type_template_id_6f860753_staticRenderFns,
|
|
60271
61268
|
false,
|
|
60272
61269
|
null,
|
|
60273
61270
|
null,
|
|
@@ -60352,6 +61349,10 @@ const mapEvent = {
|
|
|
60352
61349
|
|
|
60353
61350
|
|
|
60354
61351
|
|
|
61352
|
+
// 选择树组件
|
|
61353
|
+
// 修改地图风格
|
|
61354
|
+
|
|
61355
|
+
|
|
60355
61356
|
|
|
60356
61357
|
|
|
60357
61358
|
|