ry-vue-map 0.2.0 → 0.2.2
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/README.MD +1 -1
- package/lib/ryui.common.js +467 -287
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.umd.js +467 -287
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +4 -4
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +3 -2
- package/src/assets/moveMarker.png +0 -0
- package/src/assets/startpoint.png +0 -0
- package/src/assets/stoppoint.png +0 -0
- package/src/components/index.js +2 -1
- package/src/components/maps/models/ryLines/ryLines.js +73 -0
- package/src/components/maps/ryLines/index.js +7 -0
- package/src/components/maps/ryLines/src/index.vue +226 -0
- package/src/components/maps/ryMap/src/index.vue +1 -0
- package/src/components/maps/ryPolygons/src/index.vue +67 -67
- package/src/components/maps/ryUniMap/index.js +6 -0
- package/src/components/maps/ryUniMap/src/index.vue +351 -0
- package/src/components/maps/ryVectorMap/src/index.vue +4 -4
- package/src/router/index.js +3 -3
- package/src/utils/lMapServices.js +947 -924
- package/src/views/map/index.vue +220 -7
- package/src/views/map/lineData.js +19592 -0
- package/src/views/map/lineData2.js +3449 -0
package/lib/ryui.common.js
CHANGED
|
@@ -253,13 +253,6 @@ module.exports =
|
|
|
253
253
|
|
|
254
254
|
/***/ }),
|
|
255
255
|
|
|
256
|
-
/***/ "03a0":
|
|
257
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
258
|
-
|
|
259
|
-
// extracted by mini-css-extract-plugin
|
|
260
|
-
|
|
261
|
-
/***/ }),
|
|
262
|
-
|
|
263
256
|
/***/ "0414":
|
|
264
257
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
265
258
|
|
|
@@ -321,26 +314,27 @@ module.exports = _nonIterableSpread, module.exports.__esModule = true, module.ex
|
|
|
321
314
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
322
315
|
|
|
323
316
|
"use strict";
|
|
324
|
-
|
|
325
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
326
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
327
|
-
/*
|
|
328
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
329
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
330
|
-
/*
|
|
331
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
332
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
333
|
-
/*
|
|
334
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
335
|
-
/*
|
|
336
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
337
|
-
/*
|
|
338
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
339
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
340
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
341
|
-
/*
|
|
342
|
-
/*
|
|
343
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
317
|
+
__webpack_require__.r(__webpack_exports__);
|
|
318
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "all", function() { return all; });
|
|
319
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "altKeyOnly", function() { return altKeyOnly; });
|
|
320
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "altShiftKeysOnly", function() { return altShiftKeysOnly; });
|
|
321
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "focus", function() { return focus; });
|
|
322
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "focusWithTabindex", function() { return focusWithTabindex; });
|
|
323
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "always", function() { return always; });
|
|
324
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "click", function() { return click; });
|
|
325
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mouseActionButton", function() { return mouseActionButton; });
|
|
326
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "never", function() { return never; });
|
|
327
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pointerMove", function() { return pointerMove; });
|
|
328
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "singleClick", function() { return singleClick; });
|
|
329
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doubleClick", function() { return doubleClick; });
|
|
330
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noModifierKeys", function() { return noModifierKeys; });
|
|
331
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "platformModifierKeyOnly", function() { return platformModifierKeyOnly; });
|
|
332
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shiftKeyOnly", function() { return shiftKeyOnly; });
|
|
333
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "targetNotEditable", function() { return targetNotEditable; });
|
|
334
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mouseOnly", function() { return mouseOnly; });
|
|
335
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "touchOnly", function() { return touchOnly; });
|
|
336
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "penOnly", function() { return penOnly; });
|
|
337
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryAction", function() { return primaryAction; });
|
|
344
338
|
/* harmony import */ var _MapBrowserEventType_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0b2d");
|
|
345
339
|
/* harmony import */ var _functions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("57cb");
|
|
346
340
|
/* harmony import */ var _has_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("617d");
|
|
@@ -10567,13 +10561,6 @@ module.exports = _slicedToArray, module.exports.__esModule = true, module.export
|
|
|
10567
10561
|
|
|
10568
10562
|
/***/ }),
|
|
10569
10563
|
|
|
10570
|
-
/***/ "2858":
|
|
10571
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10572
|
-
|
|
10573
|
-
// extracted by mini-css-extract-plugin
|
|
10574
|
-
|
|
10575
|
-
/***/ }),
|
|
10576
|
-
|
|
10577
10564
|
/***/ "29d2":
|
|
10578
10565
|
/***/ (function(module, exports, __webpack_require__) {
|
|
10579
10566
|
|
|
@@ -15222,7 +15209,7 @@ var DragRotate_DragRotate = /** @class */ (function (_super) {
|
|
|
15222
15209
|
* @private
|
|
15223
15210
|
* @type {import("../events/condition.js").Condition}
|
|
15224
15211
|
*/
|
|
15225
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
15212
|
+
_this.condition_ = options.condition ? options.condition : events_condition["altShiftKeysOnly"];
|
|
15226
15213
|
/**
|
|
15227
15214
|
* @private
|
|
15228
15215
|
* @type {number|undefined}
|
|
@@ -15240,7 +15227,7 @@ var DragRotate_DragRotate = /** @class */ (function (_super) {
|
|
|
15240
15227
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
15241
15228
|
*/
|
|
15242
15229
|
DragRotate.prototype.handleDragEvent = function (mapBrowserEvent) {
|
|
15243
|
-
if (!Object(events_condition["
|
|
15230
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
15244
15231
|
return;
|
|
15245
15232
|
}
|
|
15246
15233
|
var map = mapBrowserEvent.map;
|
|
@@ -15263,7 +15250,7 @@ var DragRotate_DragRotate = /** @class */ (function (_super) {
|
|
|
15263
15250
|
* @return {boolean} If the event was consumed.
|
|
15264
15251
|
*/
|
|
15265
15252
|
DragRotate.prototype.handleUpEvent = function (mapBrowserEvent) {
|
|
15266
|
-
if (!Object(events_condition["
|
|
15253
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
15267
15254
|
return true;
|
|
15268
15255
|
}
|
|
15269
15256
|
var map = mapBrowserEvent.map;
|
|
@@ -15277,10 +15264,10 @@ var DragRotate_DragRotate = /** @class */ (function (_super) {
|
|
|
15277
15264
|
* @return {boolean} If the event was consumed.
|
|
15278
15265
|
*/
|
|
15279
15266
|
DragRotate.prototype.handleDownEvent = function (mapBrowserEvent) {
|
|
15280
|
-
if (!Object(events_condition["
|
|
15267
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
15281
15268
|
return false;
|
|
15282
15269
|
}
|
|
15283
|
-
if (Object(events_condition["
|
|
15270
|
+
if (Object(events_condition["mouseActionButton"])(mapBrowserEvent) &&
|
|
15284
15271
|
this.condition_(mapBrowserEvent)) {
|
|
15285
15272
|
var map = mapBrowserEvent.map;
|
|
15286
15273
|
map.getView().beginInteraction();
|
|
@@ -15608,7 +15595,7 @@ var DragBox_DragBox = /** @class */ (function (_super) {
|
|
|
15608
15595
|
* @private
|
|
15609
15596
|
* @type {import("../events/condition.js").Condition}
|
|
15610
15597
|
*/
|
|
15611
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
15598
|
+
_this.condition_ = options.condition ? options.condition : events_condition["mouseActionButton"];
|
|
15612
15599
|
/**
|
|
15613
15600
|
* @private
|
|
15614
15601
|
* @type {EndCondition}
|
|
@@ -15744,7 +15731,7 @@ var DragZoom_DragZoom = /** @class */ (function (_super) {
|
|
|
15744
15731
|
function DragZoom(opt_options) {
|
|
15745
15732
|
var _this = this;
|
|
15746
15733
|
var options = opt_options ? opt_options : {};
|
|
15747
|
-
var condition = options.condition ? options.condition : events_condition["
|
|
15734
|
+
var condition = options.condition ? options.condition : events_condition["shiftKeyOnly"];
|
|
15748
15735
|
_this = _super.call(this, {
|
|
15749
15736
|
condition: condition,
|
|
15750
15737
|
className: options.className || 'ol-dragzoom',
|
|
@@ -15869,7 +15856,7 @@ var KeyboardPan_KeyboardPan = /** @class */ (function (_super) {
|
|
|
15869
15856
|
* @return {boolean} Combined condition result.
|
|
15870
15857
|
*/
|
|
15871
15858
|
_this.defaultCondition_ = function (mapBrowserEvent) {
|
|
15872
|
-
return (Object(events_condition["
|
|
15859
|
+
return (Object(events_condition["noModifierKeys"])(mapBrowserEvent) && Object(events_condition["targetNotEditable"])(mapBrowserEvent));
|
|
15873
15860
|
};
|
|
15874
15861
|
/**
|
|
15875
15862
|
* @private
|
|
@@ -15995,7 +15982,7 @@ var KeyboardZoom_KeyboardZoom = /** @class */ (function (_super) {
|
|
|
15995
15982
|
* @private
|
|
15996
15983
|
* @type {import("../events/condition.js").Condition}
|
|
15997
15984
|
*/
|
|
15998
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
15985
|
+
_this.condition_ = options.condition ? options.condition : events_condition["targetNotEditable"];
|
|
15999
15986
|
/**
|
|
16000
15987
|
* @private
|
|
16001
15988
|
* @type {number}
|
|
@@ -16261,13 +16248,13 @@ var MouseWheelZoom_MouseWheelZoom = /** @class */ (function (_super) {
|
|
|
16261
16248
|
options.constrainResolution !== undefined
|
|
16262
16249
|
? options.constrainResolution
|
|
16263
16250
|
: false;
|
|
16264
|
-
var condition = options.condition ? options.condition : events_condition["
|
|
16251
|
+
var condition = options.condition ? options.condition : events_condition["always"];
|
|
16265
16252
|
/**
|
|
16266
16253
|
* @private
|
|
16267
16254
|
* @type {import("../events/condition.js").Condition}
|
|
16268
16255
|
*/
|
|
16269
16256
|
_this.condition_ = options.onFocusOnly
|
|
16270
|
-
? Object(events_condition["
|
|
16257
|
+
? Object(events_condition["all"])(events_condition["focusWithTabindex"], condition)
|
|
16271
16258
|
: condition;
|
|
16272
16259
|
/**
|
|
16273
16260
|
* @private
|
|
@@ -17091,7 +17078,7 @@ var DragRotateAndZoom_DragRotateAndZoom = /** @class */ (function (_super) {
|
|
|
17091
17078
|
* @private
|
|
17092
17079
|
* @type {import("../events/condition.js").Condition}
|
|
17093
17080
|
*/
|
|
17094
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
17081
|
+
_this.condition_ = options.condition ? options.condition : events_condition["shiftKeyOnly"];
|
|
17095
17082
|
/**
|
|
17096
17083
|
* @private
|
|
17097
17084
|
* @type {number|undefined}
|
|
@@ -17119,7 +17106,7 @@ var DragRotateAndZoom_DragRotateAndZoom = /** @class */ (function (_super) {
|
|
|
17119
17106
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
17120
17107
|
*/
|
|
17121
17108
|
DragRotateAndZoom.prototype.handleDragEvent = function (mapBrowserEvent) {
|
|
17122
|
-
if (!Object(events_condition["
|
|
17109
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
17123
17110
|
return;
|
|
17124
17111
|
}
|
|
17125
17112
|
var map = mapBrowserEvent.map;
|
|
@@ -17149,7 +17136,7 @@ var DragRotateAndZoom_DragRotateAndZoom = /** @class */ (function (_super) {
|
|
|
17149
17136
|
* @return {boolean} If the event was consumed.
|
|
17150
17137
|
*/
|
|
17151
17138
|
DragRotateAndZoom.prototype.handleUpEvent = function (mapBrowserEvent) {
|
|
17152
|
-
if (!Object(events_condition["
|
|
17139
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
17153
17140
|
return true;
|
|
17154
17141
|
}
|
|
17155
17142
|
var map = mapBrowserEvent.map;
|
|
@@ -17165,7 +17152,7 @@ var DragRotateAndZoom_DragRotateAndZoom = /** @class */ (function (_super) {
|
|
|
17165
17152
|
* @return {boolean} If the event was consumed.
|
|
17166
17153
|
*/
|
|
17167
17154
|
DragRotateAndZoom.prototype.handleDownEvent = function (mapBrowserEvent) {
|
|
17168
|
-
if (!Object(events_condition["
|
|
17155
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
17169
17156
|
return false;
|
|
17170
17157
|
}
|
|
17171
17158
|
if (this.condition_(mapBrowserEvent)) {
|
|
@@ -17332,7 +17319,7 @@ var Extent_Extent = /** @class */ (function (_super) {
|
|
|
17332
17319
|
* @type {import("../events/condition.js").Condition}
|
|
17333
17320
|
* @private
|
|
17334
17321
|
*/
|
|
17335
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
17322
|
+
_this.condition_ = options.condition ? options.condition : events_condition["always"];
|
|
17336
17323
|
/**
|
|
17337
17324
|
* Extent of the drawn box
|
|
17338
17325
|
* @type {import("../extent.js").Extent}
|
|
@@ -17947,14 +17934,14 @@ var Modify_Modify = /** @class */ (function (_super) {
|
|
|
17947
17934
|
* @private
|
|
17948
17935
|
* @type {import("../events/condition.js").Condition}
|
|
17949
17936
|
*/
|
|
17950
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
17937
|
+
_this.condition_ = options.condition ? options.condition : events_condition["primaryAction"];
|
|
17951
17938
|
/**
|
|
17952
17939
|
* @private
|
|
17953
17940
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Browser event.
|
|
17954
17941
|
* @return {boolean} Combined condition result.
|
|
17955
17942
|
*/
|
|
17956
17943
|
_this.defaultDeleteCondition_ = function (mapBrowserEvent) {
|
|
17957
|
-
return Object(events_condition["
|
|
17944
|
+
return Object(events_condition["altKeyOnly"])(mapBrowserEvent) && Object(events_condition["singleClick"])(mapBrowserEvent);
|
|
17958
17945
|
};
|
|
17959
17946
|
/**
|
|
17960
17947
|
* @type {import("../events/condition.js").Condition}
|
|
@@ -17969,7 +17956,7 @@ var Modify_Modify = /** @class */ (function (_super) {
|
|
|
17969
17956
|
*/
|
|
17970
17957
|
_this.insertVertexCondition_ = options.insertVertexCondition
|
|
17971
17958
|
? options.insertVertexCondition
|
|
17972
|
-
: events_condition["
|
|
17959
|
+
: events_condition["always"];
|
|
17973
17960
|
/**
|
|
17974
17961
|
* Editing vertex.
|
|
17975
17962
|
* @type {Feature<Point>}
|
|
@@ -19355,26 +19342,26 @@ var Select_Select = /** @class */ (function (_super) {
|
|
|
19355
19342
|
* @private
|
|
19356
19343
|
* @type {import("../events/condition.js").Condition}
|
|
19357
19344
|
*/
|
|
19358
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
19345
|
+
_this.condition_ = options.condition ? options.condition : events_condition["singleClick"];
|
|
19359
19346
|
/**
|
|
19360
19347
|
* @private
|
|
19361
19348
|
* @type {import("../events/condition.js").Condition}
|
|
19362
19349
|
*/
|
|
19363
|
-
_this.addCondition_ = options.addCondition ? options.addCondition : events_condition["
|
|
19350
|
+
_this.addCondition_ = options.addCondition ? options.addCondition : events_condition["never"];
|
|
19364
19351
|
/**
|
|
19365
19352
|
* @private
|
|
19366
19353
|
* @type {import("../events/condition.js").Condition}
|
|
19367
19354
|
*/
|
|
19368
19355
|
_this.removeCondition_ = options.removeCondition
|
|
19369
19356
|
? options.removeCondition
|
|
19370
|
-
: events_condition["
|
|
19357
|
+
: events_condition["never"];
|
|
19371
19358
|
/**
|
|
19372
19359
|
* @private
|
|
19373
19360
|
* @type {import("../events/condition.js").Condition}
|
|
19374
19361
|
*/
|
|
19375
19362
|
_this.toggleCondition_ = options.toggleCondition
|
|
19376
19363
|
? options.toggleCondition
|
|
19377
|
-
: events_condition["
|
|
19364
|
+
: events_condition["shiftKeyOnly"];
|
|
19378
19365
|
/**
|
|
19379
19366
|
* @private
|
|
19380
19367
|
* @type {boolean}
|
|
@@ -20483,7 +20470,7 @@ var Translate_Translate = /** @class */ (function (_super) {
|
|
|
20483
20470
|
* @private
|
|
20484
20471
|
* @type {import("../events/condition.js").Condition}
|
|
20485
20472
|
*/
|
|
20486
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
20473
|
+
_this.condition_ = options.condition ? options.condition : events_condition["always"];
|
|
20487
20474
|
/**
|
|
20488
20475
|
* @type {import("../Feature.js").default}
|
|
20489
20476
|
* @private
|
|
@@ -27602,6 +27589,13 @@ var PASSIVE_EVENT_LISTENERS = (function () {
|
|
|
27602
27589
|
|
|
27603
27590
|
/***/ }),
|
|
27604
27591
|
|
|
27592
|
+
/***/ "6270":
|
|
27593
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27594
|
+
|
|
27595
|
+
// extracted by mini-css-extract-plugin
|
|
27596
|
+
|
|
27597
|
+
/***/ }),
|
|
27598
|
+
|
|
27605
27599
|
/***/ "6573":
|
|
27606
27600
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27607
27601
|
|
|
@@ -27656,7 +27650,7 @@ var closePathInstruction = [Instruction.CLOSE_PATH];
|
|
|
27656
27650
|
/***/ (function(module, exports, __webpack_require__) {
|
|
27657
27651
|
|
|
27658
27652
|
"use strict";
|
|
27659
|
-
var _interopRequireDefault=__webpack_require__("4ea4"),_classCallCheck2=(Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,_interopRequireDefault(__webpack_require__("970b"))),_createClass2=_interopRequireDefault(__webpack_require__("5bc3")),_interaction=__webpack_require__("3a39"),LModifyEvent=function(){function
|
|
27653
|
+
var _interopRequireDefault=__webpack_require__("4ea4"),_classCallCheck2=(Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,_interopRequireDefault(__webpack_require__("970b"))),_createClass2=_interopRequireDefault(__webpack_require__("5bc3")),_interaction=__webpack_require__("3a39"),_condition=__webpack_require__("06f8"),LModifyEvent=function(){function n(e,t){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2];(0,_classCallCheck2.default)(this,n),this.insertVertexCondition=i,this._select=null,this._modify=null,this._snap=null,this._vector=e.Vector,this._vectorLayer=e.Vector,this._select=null,this._modify=null,this._snap=null,this._map=t,this._createModify(),this._createSnap()}return(0,_createClass2.default)(n,[{key:"_createSelect",value:function(){}},{key:"_createModify",value:function(){if(this.insertVertexCondition)return this._modify=new _interaction.Modify({source:this._vectorLayer.getSource(),deleteCondition:_condition.never,insertVertexCondition:_condition.never,style:function(e){return null}}),void this._map.addInteraction(this._modify);this._modify=new _interaction.Modify({source:this._vectorLayer.getSource(),deleteCondition:_condition.never,insertVertexCondition:_condition.never,style:function(e){return null}}),this._map.addInteraction(this._modify)}},{key:"_createSnap",value:function(){this._snap=new _interaction.Snap({source:this._vectorLayer.getSource()}),this._map.addInteraction(this._snap)}},{key:"remove",value:function(){this._map.removeInteraction(this._modify),this._map.removeInteraction(this._snap)}}]),n}();exports.default=LModifyEvent;
|
|
27660
27654
|
|
|
27661
27655
|
/***/ }),
|
|
27662
27656
|
|
|
@@ -29650,7 +29644,7 @@ function setWithCredentials(xhrWithCredentials) {
|
|
|
29650
29644
|
/***/ (function(module, exports, __webpack_require__) {
|
|
29651
29645
|
|
|
29652
29646
|
"use strict";
|
|
29653
|
-
var _interopRequireDefault=__webpack_require__("4ea4"),_slicedToArray2=(Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,_interopRequireDefault(__webpack_require__("278c"))),_toConsumableArray2=_interopRequireDefault(__webpack_require__("448a")),_classCallCheck2=_interopRequireDefault(__webpack_require__("970b")),_createClass2=_interopRequireDefault(__webpack_require__("5bc3")),_inherits2=_interopRequireDefault(__webpack_require__("ed6d")),_possibleConstructorReturn2=_interopRequireDefault(__webpack_require__("6b58")),_getPrototypeOf2=_interopRequireDefault(__webpack_require__("36c6")),_style=__webpack_require__("15e0"),_Feature=_interopRequireDefault(__webpack_require__("4cdf")),_Vector=_interopRequireDefault(__webpack_require__("5831")),_Vector2=_interopRequireDefault(__webpack_require__("3e6b")),_Polygon=_interopRequireDefault(__webpack_require__("5bc33")),_checkPoint=_interopRequireDefault(__webpack_require__("6f26")),_lzh=__webpack_require__("b12f"),_isTruePolygon=__webpack_require__("5897"),_Point=_interopRequireDefault(__webpack_require__("f403")),_MultiPoint=_interopRequireDefault(__webpack_require__("9a44")),_LineString=_interopRequireDefault(__webpack_require__("7a09")),_polygonBase=_interopRequireDefault(__webpack_require__("e1f2")),_lModifyEvent=_interopRequireDefault(__webpack_require__("6582")),_index=__webpack_require__("13e2");function _createSuper(i){var r=_isNativeReflectConstruct();return function(){var e,t=(0,_getPrototypeOf2.default)(i);return e=r?(e=(0,_getPrototypeOf2.default)(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),(0,_possibleConstructorReturn2.default)(this,e)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var segmentStyle=new _style.Style({text:new _style.Text({fill:new _style.Fill({color:"rgba(255, 255, 255, 1)"}),padding:[2,2,2,2],textBaseline:"bottom",offsetY:-20})}),segmentStyles=[segmentStyle],PolygonNew=function(e){(0,_inherits2.default)(
|
|
29647
|
+
var _interopRequireDefault=__webpack_require__("4ea4"),_slicedToArray2=(Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,_interopRequireDefault(__webpack_require__("278c"))),_toConsumableArray2=_interopRequireDefault(__webpack_require__("448a")),_classCallCheck2=_interopRequireDefault(__webpack_require__("970b")),_createClass2=_interopRequireDefault(__webpack_require__("5bc3")),_inherits2=_interopRequireDefault(__webpack_require__("ed6d")),_possibleConstructorReturn2=_interopRequireDefault(__webpack_require__("6b58")),_getPrototypeOf2=_interopRequireDefault(__webpack_require__("36c6")),_style=__webpack_require__("15e0"),_Feature=_interopRequireDefault(__webpack_require__("4cdf")),_Vector=_interopRequireDefault(__webpack_require__("5831")),_Vector2=_interopRequireDefault(__webpack_require__("3e6b")),_Polygon=_interopRequireDefault(__webpack_require__("5bc33")),_checkPoint=_interopRequireDefault(__webpack_require__("6f26")),_lzh=__webpack_require__("b12f"),_isTruePolygon=__webpack_require__("5897"),_Point=_interopRequireDefault(__webpack_require__("f403")),_MultiPoint=_interopRequireDefault(__webpack_require__("9a44")),_LineString=_interopRequireDefault(__webpack_require__("7a09")),_polygonBase=_interopRequireDefault(__webpack_require__("e1f2")),_lModifyEvent=_interopRequireDefault(__webpack_require__("6582")),_index=__webpack_require__("13e2");function _createSuper(i){var r=_isNativeReflectConstruct();return function(){var e,t=(0,_getPrototypeOf2.default)(i);return e=r?(e=(0,_getPrototypeOf2.default)(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),(0,_possibleConstructorReturn2.default)(this,e)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var segmentStyle=new _style.Style({text:new _style.Text({fill:new _style.Fill({color:"rgba(255, 255, 255, 1)"}),padding:[2,2,2,2],textBaseline:"bottom",offsetY:-20})}),segmentStyles=[segmentStyle],PolygonNew=function(e){(0,_inherits2.default)(o,e);var r=_createSuper(o);function o(e,t,i){return(0,_classCallCheck2.default)(this,o),(e=r.call(this,e,t))._isTruePolygon=!1,e._checkPoint=null,e._checkPointArea=null,e._currentPoint=null,e._pointStyle=null,i?i.point?i.currentPoint?i&&i.currentPoint&&i.point?(e._currentPoint=i.currentPoint,e._pointStyle=i.point):i&&i.point?e._pointStyle=i.point:i&&i.currentPoint&&(e._currentPoint=i.currentPoint):e._currentPoint={radius:4,fill:"#FF8100",stroke:"#FF8100",strokeWidth:0}:e._pointStyle={radius:4,fill:"#33cc33",stroke:"#33cc33",strokeWidth:0}:(e._currentPoint={radius:4,fill:"#FF8100",stroke:"#FF8100",strokeWidth:0},e._pointStyle={radius:4,fill:"#33cc33",stroke:"#33cc33",strokeWidth:0}),e.createPolygon(),e}return(0,_createClass2.default)(o,[{key:"createPolygon",value:function(){var u=this;this.layer=new _Vector2.default({source:new _Vector.default,style:function(e,t){var i,r=e.getGeometry(),r=new _LineString.default(r.getCoordinates()[0]),o=(u.id&&e.setId(u.id),(0,_lzh.calculateCenter)(e.getGeometry())),n=o.coordinates,o=o.center,l=(0,_isTruePolygon.isTruePolygon)(n),s=(u._isTruePolygon=l,[u.getStyle(l)]),e="".concat((0,_lzh.formatArea)(e.getGeometry())),e=(u._checkPointArea?(u._checkPointArea.setText(e),u._checkPointArea.setPosition(o)):u._checkPointArea=u.createCheckPoint(e,o),!l&&n&&(!u._checkPoint&&2<n.length?u._checkPoint=u.createCheckPoint("多边形不合法",o):u._checkPoint&&(u._checkPoint.setPosition(o),u._checkPoint.show()),u._checkPointArea&&u._checkPointArea.hide()),l&&u._checkPoint&&u._checkPoint.hide(),l&&u._checkPointArea&&u._checkPointArea.show(),t&&r&&(i=0,r.forEachSegment(function(e,t){e=new _LineString.default([e,t]),t=(0,_lzh.formatLength)(e),segmentStyles.length-1<i&&segmentStyles.push(segmentStyle.clone()),e=new _Point.default(e.getCoordinateAt(.5));segmentStyles[i].setGeometry(e),segmentStyles[i].getText().setText(t),s.push(segmentStyles[i]),i++})),u._currentPoint.fill||"#FF8100");return s.push(new _style.Style({geometry:new _MultiPoint.default(n),image:new _style.Circle({radius:u._currentPoint.radius||4,fill:new _style.Fill({color:e}),stroke:new _style.Stroke({color:u._currentPoint.stroke||"#FF8100",width:u._currentPoint.strokeWidth||0})})})),n&&n.length&&(o=1<n.length?n.length-2:n.length-1,n[n.length-2],s.push(new _style.Style({geometry:new _Point.default(n[o]),image:new _style.Circle({radius:u._pointStyle.radius||4,fill:new _style.Fill({color:u._pointStyle.fill||"#33cc33"}),stroke:new _style.Stroke({color:u._pointStyle.stroke||"#33cc33",width:u._pointStyle.strokeWidth||0})})}))),s}}),this.polygon=new _Polygon.default(this.isConvertCoordinatesGCJ02()),this.polygonFeature=new _Feature.default(this.polygon),this.id&&this.polygonFeature.setId(this.id),this.layer.getSource().addFeature(this.polygonFeature),this.map.addLayer(this.layer)}},{key:"getStyle",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return new _style.Style({fill:new _style.Fill({color:e?this.fillColor:"rgba(255,0,0, 0.5)"}),stroke:new _style.Stroke({color:e?this.stroke:"rgba(255,0,0, 0.5)",width:this.width}),image:new _style.Circle({radius:7,fill:new _style.Fill({color:"#ffcc33"})})})}},{key:"removeMarker",value:function(){this._checkPoint&&this.map.removeOverlay(this._checkPoint.getMarker()),this._checkPointArea&&this.map.removeOverlay(this._checkPointArea.getMarker()),this._checkPoint=null,this._checkPointArea=null}},{key:"removePolygon",value:function(){this.map.removeLayer(this.layer),this.polygonFeature=null,this.source=null,this.layer=null,this.polygon=null}},{key:"IsTruePolygon",get:function(){return this._isTruePolygon}},{key:"createCheckPoint",value:function(e,t){e=new _checkPoint.default(" ".concat(e),12,"#fff");return e.setOffset([0,-5]),e.setPosition(t),this.map.addOverlay(e.getMarker()),e}}]),o}(_polygonBase.default),LPolygon=function(){function o(e,t,i){var r=this;(0,_classCallCheck2.default)(this,o),this._modify=null,this._callback=null,this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.x=0,this.y=0,this.type=0,this._insertVertexCondition=!1,this._style=null,this._map=e,this._modify=null,this._callback=t.callback,this._strokeColor=t.strokeColor||"rgba(255,201,14, 0.4)",this._fillColor=t.fillColor||"rgba(255,201,14, 1)",this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.type=t.type||0,this._insertVertexCondition=t.insertVertexCondition||!1,this._style=i,this.singleclick=function(e){var t;r._isSkipCurrentDraw?r._isSkipCurrentDraw=!1:(e=e.coordinate,r.type&&(e=[(t=_index.GPS.gcj_decrypt(e[0],e[1])).lon,t.lat]),r.pointArr.push(e),r._polygonNew?r._polygonNew&&(t=r.pointArr,r._polygonNew.setCoordinates([t],r.type)):r._createPolygon())},this._bingMapEvent()}return(0,_createClass2.default)(o,[{key:"_createPolygon",value:function(){var t=new Array;this.pointArr.forEach(function(e){t.push(e)}),t.push(this.pointArr[0]),this._polygonNew=new PolygonNew({fillColor:this._fillColor,stroke:this._strokeColor,coordinates:[t],type:this.type},this._map,this._style),this._modify=new _lModifyEvent.default(this._polygonNew,this._map,this._insertVertexCondition)}},{key:"skipCurrentDraw",value:function(){this._isSkipCurrentDraw=!0}},{key:"remove",value:function(){this._map.un("singleclick",this.singleclick),this._modify&&(this._modify.remove(),this._modify=null),this._polygonNew&&(this._polygonNew.removePolygon(),this._polygonNew.removeMarker(),this._polygonNew=null),this.x=0,this.y=0,this.pointArr=[],this._pointArr=[],this._isSkipCurrentDraw=!1}},{key:"removeLastPoint",value:function(){var e=this.getCoordinates();this.x=0,this.y=0,e.length?(this._pointArr=(0,_toConsumableArray2.default)(e[0]),this._pointArr.splice(this._pointArr.length-1,1),this.pointArr=this._pointArr):this.pointArr.length&&(this._pointArr=(0,_toConsumableArray2.default)(this.pointArr)),this._pointArr.splice(this._pointArr.length-1,1);return this._pointArr.length||(this._polygonNew.removeMarker(),this.pointArr=[],this._pointArr=[]),this._polygonNew.setCoordinates([this._pointArr],this.type),!!this.pointArr.length}},{key:"getCoordinates",value:function(){return this._polygonNew?this._polygonNew.getCoordinates():[]}},{key:"getGeoJson",value:function(){return this._polygonNew.getGeoJson()}},{key:"getGeometry",value:function(){return this._polygonNew?this._polygonNew.getGeometry():null}},{key:"isPolygon",value:function(){return this._polygonNew.isPolygon()}},{key:"getCenterPoint",value:function(){return this._polygonNew.getCenterPoint()}},{key:"setCoordinates",value:function(e){var t=(0,_slicedToArray2.default)(e,2),i=t[0],t=t[1];this.x==i&&this.y==t||(this.x=i,this.y=t,this.pointArr.push(e),this._polygonNew?this._polygonNew&&this._polygonNew.setCoordinates([this.pointArr],this.type):this._createPolygon())}},{key:"initCoordinates",value:function(e){if(e&&e[0]){var t=e[0],i=t[t.length-1];if(t[0][0]==i[0]&&t[0][1]==i[1])for(var r=1;r<t.length;r++)this.pointArr.push(t[r-1])}this._polygonNew=new PolygonNew({fillColor:"rgba(0,0,0, 0.5)",stroke:"rgba(255,255,0, 1)",coordinates:e,type:this.type},this._map,this._style),this._modify=new _lModifyEvent.default(this._polygonNew,this._map,this._insertVertexCondition)}},{key:"finishDrawing",value:function(){}},{key:"_bingMapEvent",value:function(){this._map.on("singleclick",this.singleclick)}},{key:"isTruePolygon",get:function(){return this._polygonNew.IsTruePolygon}},{key:"setType",set:function(e){this.type=e}},{key:"selectGPS",value:function(){this._polygonNew&&this._polygonNew.selectGPS(0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}}]),o}();exports.default=LPolygon;
|
|
29654
29648
|
|
|
29655
29649
|
/***/ }),
|
|
29656
29650
|
|
|
@@ -39256,6 +39250,17 @@ function sourcesFromTileGrid(tileGrid, factory) {
|
|
|
39256
39250
|
}
|
|
39257
39251
|
//# sourceMappingURL=source.js.map
|
|
39258
39252
|
|
|
39253
|
+
/***/ }),
|
|
39254
|
+
|
|
39255
|
+
/***/ "76f0":
|
|
39256
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
39257
|
+
|
|
39258
|
+
"use strict";
|
|
39259
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_022af51f_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6270");
|
|
39260
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_022af51f_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_022af51f_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
39261
|
+
/* unused harmony reexport * */
|
|
39262
|
+
|
|
39263
|
+
|
|
39259
39264
|
/***/ }),
|
|
39260
39265
|
|
|
39261
39266
|
/***/ "78db":
|
|
@@ -50791,17 +50796,6 @@ function writePolygonGeometry(geometry, opt_options) {
|
|
|
50791
50796
|
/* harmony default export */ var format_GeoJSON = __webpack_exports__["default"] = (GeoJSON_GeoJSON);
|
|
50792
50797
|
//# sourceMappingURL=GeoJSON.js.map
|
|
50793
50798
|
|
|
50794
|
-
/***/ }),
|
|
50795
|
-
|
|
50796
|
-
/***/ "a2f8":
|
|
50797
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
50798
|
-
|
|
50799
|
-
"use strict";
|
|
50800
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0ebc5840_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2858");
|
|
50801
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0ebc5840_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_0ebc5840_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
50802
|
-
/* unused harmony reexport * */
|
|
50803
|
-
|
|
50804
|
-
|
|
50805
50799
|
/***/ }),
|
|
50806
50800
|
|
|
50807
50801
|
/***/ "a34a":
|
|
@@ -53436,19 +53430,19 @@ var Draw_Draw = /** @class */ (function (_super) {
|
|
|
53436
53430
|
* @private
|
|
53437
53431
|
* @type {import("../events/condition.js").Condition}
|
|
53438
53432
|
*/
|
|
53439
|
-
_this.condition_ = options.condition ? options.condition : condition["
|
|
53433
|
+
_this.condition_ = options.condition ? options.condition : condition["noModifierKeys"];
|
|
53440
53434
|
/**
|
|
53441
53435
|
* @private
|
|
53442
53436
|
* @type {import("../events/condition.js").Condition}
|
|
53443
53437
|
*/
|
|
53444
53438
|
_this.freehandCondition_;
|
|
53445
53439
|
if (options.freehand) {
|
|
53446
|
-
_this.freehandCondition_ = condition["
|
|
53440
|
+
_this.freehandCondition_ = condition["always"];
|
|
53447
53441
|
}
|
|
53448
53442
|
else {
|
|
53449
53443
|
_this.freehandCondition_ = options.freehandCondition
|
|
53450
53444
|
? options.freehandCondition
|
|
53451
|
-
: condition["
|
|
53445
|
+
: condition["shiftKeyOnly"];
|
|
53452
53446
|
}
|
|
53453
53447
|
_this.addChangeListener(Property["a" /* default */].ACTIVE, _this.updateState_);
|
|
53454
53448
|
return _this;
|
|
@@ -59233,17 +59227,6 @@ function translate(flatCoordinates, offset, end, stride, deltaX, deltaY, opt_des
|
|
|
59233
59227
|
});
|
|
59234
59228
|
//# sourceMappingURL=Property.js.map
|
|
59235
59229
|
|
|
59236
|
-
/***/ }),
|
|
59237
|
-
|
|
59238
|
-
/***/ "c071":
|
|
59239
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
59240
|
-
|
|
59241
|
-
"use strict";
|
|
59242
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_30b399ae_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("03a0");
|
|
59243
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_30b399ae_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_30b399ae_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
59244
|
-
/* unused harmony reexport * */
|
|
59245
|
-
|
|
59246
|
-
|
|
59247
59230
|
/***/ }),
|
|
59248
59231
|
|
|
59249
59232
|
/***/ "c12a":
|
|
@@ -60708,13 +60691,13 @@ var DragPan = /** @class */ (function (_super) {
|
|
|
60708
60691
|
_this.panning_ = false;
|
|
60709
60692
|
var condition = options.condition
|
|
60710
60693
|
? options.condition
|
|
60711
|
-
: Object(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__[
|
|
60694
|
+
: Object(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__["all"])(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__["noModifierKeys"], _events_condition_js__WEBPACK_IMPORTED_MODULE_2__["primaryAction"]);
|
|
60712
60695
|
/**
|
|
60713
60696
|
* @private
|
|
60714
60697
|
* @type {import("../events/condition.js").Condition}
|
|
60715
60698
|
*/
|
|
60716
60699
|
_this.condition_ = options.onFocusOnly
|
|
60717
|
-
? Object(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__[
|
|
60700
|
+
? Object(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__["all"])(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__["focusWithTabindex"], condition)
|
|
60718
60701
|
: condition;
|
|
60719
60702
|
/**
|
|
60720
60703
|
* @private
|
|
@@ -65674,183 +65657,20 @@ var Collection = /** @class */ (function (_super) {
|
|
|
65674
65657
|
/***/ }),
|
|
65675
65658
|
|
|
65676
65659
|
/***/ "e318":
|
|
65677
|
-
/***/ (function(module,
|
|
65660
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
65678
65661
|
|
|
65679
65662
|
"use strict";
|
|
65680
|
-
__webpack_require__.r(
|
|
65681
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VectorMap; });
|
|
65682
|
-
/* harmony import */ var ol_Map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5eee");
|
|
65683
|
-
/* harmony import */ var _mapConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("5c9f");
|
|
65684
|
-
/* harmony import */ var _mapConfig__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_mapConfig__WEBPACK_IMPORTED_MODULE_1__);
|
|
65685
|
-
/* harmony import */ var _lzh__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("b12f");
|
|
65686
|
-
/* harmony import */ var _lzh__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_lzh__WEBPACK_IMPORTED_MODULE_2__);
|
|
65687
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
65688
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
65689
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
65690
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
65691
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
65692
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
65693
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
65694
|
-
});
|
|
65695
|
-
};
|
|
65663
|
+
var _interopRequireDefault=__webpack_require__("4ea4"),_regenerator=(Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,_interopRequireDefault(__webpack_require__("a34a"))),_toConsumableArray2=_interopRequireDefault(__webpack_require__("448a")),_classCallCheck2=_interopRequireDefault(__webpack_require__("970b")),_createClass2=_interopRequireDefault(__webpack_require__("5bc3")),_Map=_interopRequireDefault(__webpack_require__("5eee")),_mapConfig=_interopRequireDefault(__webpack_require__("5c9f")),_lzh=__webpack_require__("b12f"),__awaiter=function(e,s,l,o){return new(l=l||Promise)(function(r,t){function a(e){try{n(o.next(e))}catch(e){t(e)}}function i(e){try{n(o.throw(e))}catch(e){t(e)}}function n(e){var t;e.done?r(e.value):((t=e.value)instanceof l?t:new l(function(e){e(t)})).then(a,i)}n((o=o.apply(e,s||[])).next())})},VectorMap=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{isAnalysisBBOX:!1,isAnalysisCenter:!1,isDrag:!1,isFistData:!1};(0,_classCallCheck2.default)(this,t),this._ele=null,this._map=null,this._layersMap=new Map,this._view=null,this.modelArr=[],this.isAnalysisBBOX=!1,this.isAnalysisCenter=!1,this._callback=null,this._layerArr=[],this._isDrag=!1,this._isFistData=!1,this.isAnalysisBBOX=e.isAnalysisBBOX,this.isAnalysisCenter=e.isAnalysisCenter,this._callback=e.callback,this._isDrag=e.isDrag,this._isFistData=e.isFistData}return(0,_createClass2.default)(t,[{key:"onLoad",value:function(i){return __awaiter(this,void 0,void 0,_regenerator.default.mark(function e(){var a=this;return _regenerator.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=i,e.next=3,new Promise(function(e,t){var r=new _Map.default(Object.assign({target:i,controls:a._isDrag?null:_mapConfig.default.Defaults,interactions:a._isDrag?null:_mapConfig.default.InteractionsDeft}));a._map=r,a._view=_mapConfig.default.getVectorLayerView,a._map.setView(a._view),r?e(r):t(null)});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}))}},{key:"getLayerMap",get:function(){return this._layersMap}},{key:"getLayers",get:function(){return this._layerArr}},{key:"initLayers",value:function(e){var a=this,i=(this.removeLayers(),this.modelArr=e,[]);e.forEach(function(e){var t=e.geo,r=a.analysisBBOX(t);a.createPolygon(e),i=[].concat((0,_toConsumableArray2.default)(i),(0,_toConsumableArray2.default)(r)),a._callback&&!a._isFistData&&a._callback(Object.assign(Object.assign({bbox:r,center:a.analysisCenter(t)},a.analysisProperties(t)),{id:e.id}))}),this.fit(i)}},{key:"createPolygon",value:function(e){var t=(0,_lzh.createPolygonBoundaryNew)(e);this._layerArr.push(t),this._map.addLayer(t),e.id&&(e.id.toString(),e="string"==typeof e.id?e.id:e.id.toString(),this._layersMap.set(e,t))}},{key:"fit",value:function(e){this._view.fit(e,{padding:[10,10,10,10],nearest:!1})}},{key:"removeLayers",value:function(){var t=this;this._layerArr.forEach(function(e){t._map.removeLayer(e)}),this._layersMap.clear(),this._layerArr=[]}},{key:"setPolygonColor",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["rgba(255, 255, 255, 0.3)","rgba(00, 131, 241, 1)"];this._layersMap.has(e)&&((e=this._layersMap.get(e).getStyle()).getFill().setColor(t[0]),e.getStroke().setColor(t[1]))}},{key:"olMap",get:function(){return this._map}},{key:"ele",get:function(){return this._ele}},{key:"analysisGeoJson",value:function(e){if(!e)return null;var t=e.geometry?e.geometry.coordinates:null,r=e.bbox||null;return{properties:e.properties||null,bbox:r,coordinates:t}}},{key:"analysisBBOX",value:function(e){var e=this.analysisGeoJson(e),t=e.bbox,e=e.coordinates;return this.isAnalysisBBOX?t:this.getbbox(e)}},{key:"analysisCenter",value:function(e){var e=this.analysisGeoJson(e),t=e.properties,e=e.coordinates;return this.isAnalysisCenter?t?[t.lon||0,t.lat||0]:null:this.getCenterPoint(e)}},{key:"analysisProperties",value:function(e){e=this.analysisGeoJson(e).properties;return e?{code:e.code||null,level:e.level||0,name:e.name||null,parent_code:e.parent_code||null}:null}},{key:"getbbox",value:function(e){e=(0,_lzh.getLngAndLatMaxMin)(e);return[e[2],e[3],e[0],e[1]]}},{key:"getCenterPoint",value:function(e){return(0,_lzh.getCenterPoint)(e)}},{key:"resetSize",value:function(){this._map&&this.initLayers(this.modelArr)}}]),t}();exports.default=VectorMap;
|
|
65696
65664
|
|
|
65665
|
+
/***/ }),
|
|
65697
65666
|
|
|
65667
|
+
/***/ "e35d":
|
|
65668
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
65698
65669
|
|
|
65699
|
-
|
|
65700
|
-
|
|
65701
|
-
|
|
65702
|
-
|
|
65703
|
-
this._layersMap = new Map();
|
|
65704
|
-
this._view = null;
|
|
65705
|
-
this.modelArr = [];
|
|
65706
|
-
this.isAnalysisBBOX = false;
|
|
65707
|
-
this.isAnalysisCenter = false;
|
|
65708
|
-
this._callback = null;
|
|
65709
|
-
this._layerArr = [];
|
|
65710
|
-
this._isDrag = false;
|
|
65711
|
-
this.isAnalysisBBOX = opt.isAnalysisBBOX;
|
|
65712
|
-
this.isAnalysisCenter = opt.isAnalysisCenter;
|
|
65713
|
-
this._callback = opt.callback;
|
|
65714
|
-
this._isDrag = opt.isDrag;
|
|
65715
|
-
}
|
|
65716
|
-
onLoad(el, model = []) {
|
|
65717
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
65718
|
-
this._ele = el;
|
|
65719
|
-
return yield new Promise((res, rej) => {
|
|
65720
|
-
const map = new ol_Map__WEBPACK_IMPORTED_MODULE_0__["default"](Object.assign({
|
|
65721
|
-
target: el,
|
|
65722
|
-
controls: _mapConfig__WEBPACK_IMPORTED_MODULE_1___default.a.Defaults,
|
|
65723
|
-
interactions: this._isDrag ? null : _mapConfig__WEBPACK_IMPORTED_MODULE_1___default.a.InteractionsDeft,
|
|
65724
|
-
}));
|
|
65725
|
-
this._map = map;
|
|
65726
|
-
this._view = _mapConfig__WEBPACK_IMPORTED_MODULE_1___default.a.getVectorLayerView;
|
|
65727
|
-
this._map.setView(this._view);
|
|
65728
|
-
if (map) {
|
|
65729
|
-
res(map);
|
|
65730
|
-
return;
|
|
65731
|
-
}
|
|
65732
|
-
rej(null);
|
|
65733
|
-
});
|
|
65734
|
-
});
|
|
65735
|
-
}
|
|
65736
|
-
get getLayerMap() {
|
|
65737
|
-
return this._layersMap;
|
|
65738
|
-
}
|
|
65739
|
-
get getLayers() {
|
|
65740
|
-
return this._layerArr;
|
|
65741
|
-
}
|
|
65742
|
-
initLayers(model) {
|
|
65743
|
-
// 创建Map前先清空图层
|
|
65744
|
-
this.removeLayers();
|
|
65745
|
-
this.modelArr = model;
|
|
65746
|
-
let _bbox = [];
|
|
65747
|
-
if (model[0] && model[0].geo) {
|
|
65748
|
-
const g = model[0].geo;
|
|
65749
|
-
_bbox = g.bbox;
|
|
65750
|
-
}
|
|
65751
|
-
model.forEach(r => {
|
|
65752
|
-
const g = r.geo;
|
|
65753
|
-
const bbox = this.analysisBBOX(g);
|
|
65754
|
-
this.createPolygon(r);
|
|
65755
|
-
// _bbox = [..._bbox, ...bbox];
|
|
65756
|
-
if (this._callback) {
|
|
65757
|
-
this._callback(Object.assign(Object.assign({ bbox, center: this.analysisCenter(g) }, this.analysisProperties(g)), { id: r.id }));
|
|
65758
|
-
}
|
|
65759
|
-
});
|
|
65760
|
-
this.fit(_bbox);
|
|
65761
|
-
}
|
|
65762
|
-
createPolygon(model) {
|
|
65763
|
-
const r = model;
|
|
65764
|
-
const layer = Object(_lzh__WEBPACK_IMPORTED_MODULE_2__["createPolygonBoundaryNew"])(r);
|
|
65765
|
-
this._layerArr.push(layer);
|
|
65766
|
-
this._map.addLayer(layer);
|
|
65767
|
-
if (r.id) {
|
|
65768
|
-
r.id.toString();
|
|
65769
|
-
const id = typeof (r.id) == 'string' ? r.id : r.id.toString();
|
|
65770
|
-
this._layersMap.set(id, layer);
|
|
65771
|
-
}
|
|
65772
|
-
}
|
|
65773
|
-
fit(bbox) {
|
|
65774
|
-
this._view.fit(bbox, {
|
|
65775
|
-
padding: [10, 10, 10, 10],
|
|
65776
|
-
nearest: false
|
|
65777
|
-
});
|
|
65778
|
-
}
|
|
65779
|
-
removeLayers() {
|
|
65780
|
-
this._layerArr.forEach(r => {
|
|
65781
|
-
this._map.removeLayer(r);
|
|
65782
|
-
r = null;
|
|
65783
|
-
});
|
|
65784
|
-
this._layersMap.clear();
|
|
65785
|
-
this._layerArr = [];
|
|
65786
|
-
}
|
|
65787
|
-
setPolygonColor(id, colors = ['rgba(255, 255, 255, 0.3)', 'rgba(00, 131, 241, 1)']) {
|
|
65788
|
-
if (this._layersMap.has(id)) {
|
|
65789
|
-
const layer = this._layersMap.get(id);
|
|
65790
|
-
const style = layer.getStyle();
|
|
65791
|
-
const fill = style.getFill();
|
|
65792
|
-
fill.setColor(colors[0]);
|
|
65793
|
-
const stroke = style.getStroke();
|
|
65794
|
-
stroke.setColor(colors[1]);
|
|
65795
|
-
}
|
|
65796
|
-
}
|
|
65797
|
-
get olMap() {
|
|
65798
|
-
return this._map;
|
|
65799
|
-
}
|
|
65800
|
-
get ele() {
|
|
65801
|
-
return this._ele;
|
|
65802
|
-
}
|
|
65803
|
-
analysisGeoJson(geo) {
|
|
65804
|
-
const g = geo;
|
|
65805
|
-
if (!g)
|
|
65806
|
-
return null;
|
|
65807
|
-
const coordinates = geo.geometry ? geo.geometry.coordinates : null;
|
|
65808
|
-
const bbox = geo.bbox ? geo.bbox : null;
|
|
65809
|
-
const properties = geo.properties ? geo.properties : null;
|
|
65810
|
-
return { properties, bbox, coordinates };
|
|
65811
|
-
}
|
|
65812
|
-
analysisBBOX(geo) {
|
|
65813
|
-
const { bbox, coordinates } = this.analysisGeoJson(geo);
|
|
65814
|
-
if (!this.isAnalysisBBOX) {
|
|
65815
|
-
return this.getbbox(coordinates);
|
|
65816
|
-
}
|
|
65817
|
-
return bbox;
|
|
65818
|
-
}
|
|
65819
|
-
analysisCenter(geo) {
|
|
65820
|
-
const { properties, coordinates } = this.analysisGeoJson(geo);
|
|
65821
|
-
if (!this.isAnalysisCenter) {
|
|
65822
|
-
return this.getCenterPoint(coordinates);
|
|
65823
|
-
}
|
|
65824
|
-
if (!properties)
|
|
65825
|
-
return null;
|
|
65826
|
-
const lon = properties.lon ? properties.lon : 0;
|
|
65827
|
-
const lat = properties.lat ? properties.lat : 0;
|
|
65828
|
-
return [lon, lat];
|
|
65829
|
-
}
|
|
65830
|
-
analysisProperties(geo) {
|
|
65831
|
-
const { properties } = this.analysisGeoJson(geo);
|
|
65832
|
-
if (properties) {
|
|
65833
|
-
const code = properties.code || null;
|
|
65834
|
-
const level = properties.level || 0;
|
|
65835
|
-
const name = properties.name || null;
|
|
65836
|
-
const parent_code = properties.parent_code || null;
|
|
65837
|
-
return { code, level, name, parent_code };
|
|
65838
|
-
}
|
|
65839
|
-
return null;
|
|
65840
|
-
}
|
|
65841
|
-
getbbox(coordinates) {
|
|
65842
|
-
const arr = Object(_lzh__WEBPACK_IMPORTED_MODULE_2__["getLngAndLatMaxMin"])(coordinates);
|
|
65843
|
-
return [arr[2], arr[3], arr[0], arr[1]];
|
|
65844
|
-
}
|
|
65845
|
-
getCenterPoint(coordinates) {
|
|
65846
|
-
return Object(_lzh__WEBPACK_IMPORTED_MODULE_2__["getCenterPoint"])(coordinates);
|
|
65847
|
-
}
|
|
65848
|
-
resetSize() {
|
|
65849
|
-
if (this._map) {
|
|
65850
|
-
this.initLayers(this.modelArr);
|
|
65851
|
-
}
|
|
65852
|
-
}
|
|
65853
|
-
}
|
|
65670
|
+
"use strict";
|
|
65671
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_dd9c3db0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("efd8");
|
|
65672
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_dd9c3db0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_dd9c3db0_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
65673
|
+
/* unused harmony reexport * */
|
|
65854
65674
|
|
|
65855
65675
|
|
|
65856
65676
|
/***/ }),
|
|
@@ -67306,7 +67126,7 @@ const float16 = (function (exports) {
|
|
|
67306
67126
|
/***/ (function(module, exports, __webpack_require__) {
|
|
67307
67127
|
|
|
67308
67128
|
"use strict";
|
|
67309
|
-
var _interopRequireDefault=__webpack_require__("4ea4"),_classCallCheck2=(Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,_interopRequireDefault(__webpack_require__("970b"))),_createClass2=_interopRequireDefault(__webpack_require__("5bc3")),_inherits2=_interopRequireDefault(__webpack_require__("ed6d")),_possibleConstructorReturn2=_interopRequireDefault(__webpack_require__("6b58")),_getPrototypeOf2=_interopRequireDefault(__webpack_require__("36c6")),_control=__webpack_require__("21bc");function _createSuper(r){var
|
|
67129
|
+
var _interopRequireDefault=__webpack_require__("4ea4"),_classCallCheck2=(Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,_interopRequireDefault(__webpack_require__("970b"))),_createClass2=_interopRequireDefault(__webpack_require__("5bc3")),_inherits2=_interopRequireDefault(__webpack_require__("ed6d")),_possibleConstructorReturn2=_interopRequireDefault(__webpack_require__("6b58")),_getPrototypeOf2=_interopRequireDefault(__webpack_require__("36c6")),_control=__webpack_require__("21bc");function _createSuper(r){var n=_isNativeReflectConstruct();return function(){var e,t=(0,_getPrototypeOf2.default)(r);return e=n?(e=(0,_getPrototypeOf2.default)(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),(0,_possibleConstructorReturn2.default)(this,e)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function setElementStyle(e){e.style.height="30px",e.style.width="30px",e.style.left="50%",e.style.top="50%",e.style.color="red",e.style.position="absolute",e.style.marginTop="-15px",e.style.marginLeft="-15px",e.style.cursor="pointer"}function bingEvent(e,t){e.addEventListener("click",function(e){t&&t(),e.stopPropagation()},!1)}function createElement(e,t){var r=document.createElement("i"),t=(r.style.fontSize="30px",r.className=t,document.createElement("div"));return setElementStyle(t),bingEvent(t,e),t.appendChild(r),{element:t,icon_i:r}}var CrossHair=function(e){(0,_inherits2.default)(l,e);var n=_createSuper(l);function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"el-icon--zhunxin1",e=((0,_classCallCheck2.default)(this,l),createElement(e,t)),t=e.element,e=e.icon_i,r=n.call(this,{element:t,target:null});return r._ele=t,r._icon_i=e,r}return(0,_createClass2.default)(l,[{key:"show",value:function(){this._ele.style.display="block"}},{key:"hide",value:function(){this._ele.style.display="none"}},{key:"ele",get:function(){return this._ele}},{key:"setIconName",value:function(){this._icon_i.className=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"el-icon--zhunxin1"}},{key:"setIconColor",value:function(e){this._icon_i.style.fontSize="30px"}}]),l}(_control.Control);exports.default=CrossHair;
|
|
67310
67130
|
|
|
67311
67131
|
/***/ }),
|
|
67312
67132
|
|
|
@@ -69213,6 +69033,13 @@ var ImageCanvas = /** @class */ (function (_super) {
|
|
|
69213
69033
|
|
|
69214
69034
|
/***/ }),
|
|
69215
69035
|
|
|
69036
|
+
/***/ "efd8":
|
|
69037
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
69038
|
+
|
|
69039
|
+
// extracted by mini-css-extract-plugin
|
|
69040
|
+
|
|
69041
|
+
/***/ }),
|
|
69042
|
+
|
|
69216
69043
|
/***/ "efee":
|
|
69217
69044
|
/***/ (function(module, exports, __webpack_require__) {
|
|
69218
69045
|
|
|
@@ -87866,7 +87693,7 @@ if (typeof window !== 'undefined') {
|
|
|
87866
87693
|
// Indicate to webpack that this file can be concatenated
|
|
87867
87694
|
/* harmony default export */ var setPublicPath = (null);
|
|
87868
87695
|
|
|
87869
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
87696
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryMap/src/index.vue?vue&type=template&id=dd9c3db0&scoped=true&
|
|
87870
87697
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"map-box"},[_c('div',{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),(_vm.lMap.map && _vm.isRyMapTool)?_c('RyMapTool',{staticClass:"ry-map-tool",class:{
|
|
87871
87698
|
'left':!_vm.isRight,
|
|
87872
87699
|
'right':_vm.isRight
|
|
@@ -87878,7 +87705,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
87878
87705
|
var staticRenderFns = []
|
|
87879
87706
|
|
|
87880
87707
|
|
|
87881
|
-
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=template&id=
|
|
87708
|
+
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=template&id=dd9c3db0&scoped=true&
|
|
87882
87709
|
|
|
87883
87710
|
// EXTERNAL MODULE: ./node_modules/ol/ol.css
|
|
87884
87711
|
var ol = __webpack_require__("5bc0");
|
|
@@ -87886,9 +87713,13 @@ var ol = __webpack_require__("5bc0");
|
|
|
87886
87713
|
// EXTERNAL MODULE: ./node_modules/ry-map/index.js
|
|
87887
87714
|
var ry_map = __webpack_require__("13e2");
|
|
87888
87715
|
|
|
87716
|
+
// EXTERNAL MODULE: ./node_modules/ol/interaction.js + 19 modules
|
|
87717
|
+
var interaction = __webpack_require__("3a39");
|
|
87718
|
+
|
|
87889
87719
|
// CONCATENATED MODULE: ./src/utils/lMapServices.js
|
|
87890
87720
|
|
|
87891
87721
|
|
|
87722
|
+
|
|
87892
87723
|
class lMapServices_LMapServices {
|
|
87893
87724
|
constructor() {
|
|
87894
87725
|
this.map = null;
|
|
@@ -87937,7 +87768,10 @@ class lMapServices_LMapServices {
|
|
|
87937
87768
|
}) {
|
|
87938
87769
|
if (!this.lmap) {
|
|
87939
87770
|
this.lmap = new ry_map["LMap"]({
|
|
87940
|
-
controls: ry_map["MapConfig"].Defaults
|
|
87771
|
+
controls: ry_map["MapConfig"].Defaults,
|
|
87772
|
+
interactions: Object(interaction["defaults"])({
|
|
87773
|
+
pinchRotate: false
|
|
87774
|
+
})
|
|
87941
87775
|
});
|
|
87942
87776
|
}
|
|
87943
87777
|
|
|
@@ -89053,14 +88887,14 @@ class mapTool_MapToolDto {
|
|
|
89053
88887
|
}
|
|
89054
88888
|
|
|
89055
88889
|
}
|
|
89056
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
88890
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=0eda959b&scoped=true&
|
|
89057
88891
|
var srcvue_type_template_id_0eda959b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"draw-tool-box"},[(!_vm.isRight)?[(_vm.isShowDrawTool)?_c('aside',{staticClass:"map-button-box"},[(!_vm.hideAdd)?_c('el-button',{staticClass:"ele-text-primary el-icon--add",on:{"click":function($event){$event.stopPropagation();return _vm.onCreatePolygon()}}}):_vm._e(),(!_vm.hidePoint)?_c('el-button',{staticClass:"ele-text-primary el-icon--dadian",on:{"click":function($event){$event.stopPropagation();return _vm.onPointEvent()}}}):_vm._e(),(!_vm.hideCancel)?_c('el-button',{staticClass:"ele-text-primary el-icon--back",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCancel()}}}):_vm._e(),(!_vm.hideDelete)?_c('el-button',{staticClass:"ele-text-primary el-icon--ashbin",on:{"click":function($event){$event.stopPropagation();return _vm.onDelete()}}}):_vm._e(),(!_vm.hideSave)?_c('el-button',{staticClass:"ele-text-primary el-icon--duihao",on:{"click":function($event){$event.stopPropagation();return _vm.onSave()}}}):_vm._e(),_vm._t("default")],2):_vm._e(),(_vm.isShowRangingTool)?_c('aside',{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[(!_vm.hideLine)?_c('el-button',{staticClass:"ele-text-primary el-icon--changdu",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateLine()}}}):_vm._e(),(!_vm.hideArea)?_c('el-button',{staticClass:"ele-text-primary el-icon--mianji",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateArea()}}}):_vm._e()],1):_vm._e()]:[(_vm.isShowRangingTool)?_c('aside',{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[(!_vm.hideLine)?_c('el-button',{staticClass:"ele-text-primary el-icon--changdu",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateLine()}}}):_vm._e(),(!_vm.hideArea)?_c('el-button',{staticClass:"ele-text-primary el-icon--mianji",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateArea()}}}):_vm._e()],1):_vm._e(),(_vm.isShowDrawTool)?_c('aside',{staticClass:"map-button-box"},[(!_vm.hideAdd)?_c('el-button',{staticClass:"ele-text-primary el-icon--add",on:{"click":function($event){$event.stopPropagation();return _vm.onCreatePolygon()}}}):_vm._e(),(!_vm.hidePoint)?_c('el-button',{staticClass:"ele-text-primary el-icon--dadian",on:{"click":function($event){$event.stopPropagation();return _vm.onPointEvent()}}}):_vm._e(),(!_vm.hideCancel)?_c('el-button',{staticClass:"ele-text-primary el-icon--back",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCancel()}}}):_vm._e(),(!_vm.hideDelete)?_c('el-button',{staticClass:"ele-text-primary el-icon--ashbin",on:{"click":function($event){$event.stopPropagation();return _vm.onDelete()}}}):_vm._e(),(!_vm.hideSave)?_c('el-button',{staticClass:"ele-text-primary el-icon--duihao",on:{"click":function($event){$event.stopPropagation();return _vm.onSave()}}}):_vm._e(),_vm._t("default")],2):_vm._e()],(_vm.lMap)?_c('ry-cross-hair',{attrs:{"isHide":_vm.isCrossHair,"map":_vm.lMap.map},on:{"click":function($event){return _vm.onClick($event)}}}):_vm._e()],2)}
|
|
89058
88892
|
var srcvue_type_template_id_0eda959b_scoped_true_staticRenderFns = []
|
|
89059
88893
|
|
|
89060
88894
|
|
|
89061
88895
|
// CONCATENATED MODULE: ./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=0eda959b&scoped=true&
|
|
89062
88896
|
|
|
89063
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
88897
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryCrossHair/src/index.vue?vue&type=template&id=735d1508&
|
|
89064
88898
|
var srcvue_type_template_id_735d1508_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
89065
88899
|
var srcvue_type_template_id_735d1508_staticRenderFns = []
|
|
89066
88900
|
|
|
@@ -89605,7 +89439,7 @@ var src_component = normalizeComponent(
|
|
|
89605
89439
|
)
|
|
89606
89440
|
|
|
89607
89441
|
/* harmony default export */ var ryMapTool_src = (src_component.exports);
|
|
89608
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
89442
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=272b1fcc&scoped=true&
|
|
89609
89443
|
var newIndexvue_type_template_id_272b1fcc_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.mapTypeAndLayer && _vm.mapTypeAndLayer.length > 0)?_c('div',{staticClass:"switch-map"},[_c('div',{staticClass:"top",style:({height:_vm.height + 'px'})},[(!_vm.isDisabled)?[_c('p',{class:_vm.bottomRight?(_vm.isExpand?'el-icon-arrow-left':'el-icon-arrow-right'):(!_vm.isExpand?'el-icon-arrow-left':'el-icon-arrow-right'),on:{"click":_vm.changeExpand}})]:_c('p',{staticStyle:{"width":"10px"}}),_c('ul',_vm._l((_vm.mapTypeCopy),function(obj,index){return _c('li',{key:index,class:{ color: !_vm.isExpand?_vm.mapTypeActive === obj.id:true },on:{"click":function($event){return _vm.mapTypeClick(obj)}}},[_c('i',{class:_vm.isExpand?obj.activeIcon:(_vm.mapTypeActive === obj.id?obj.activeIcon:obj.icon)}),_vm._v(" "+_vm._s(obj.name)+" ")])}),0)],2),_c('ul',{class:{bottom:true,marginLeft:_vm.bottomRight}},_vm._l((_vm.mapStyleCopy),function(row,index){return _c('li',{key:index,class:{color:!_vm.isTop?_vm.mapStyleActive === row.id:true},style:({height:_vm.height + 'px',lineHeight:_vm.height + 'px'})},[_c('span',{on:{"click":function($event){return _vm.mapStyleClick(row)}}},[_vm._v(" "+_vm._s(row.name)+" ")]),_c('i',{directives:[{name:"show",rawName:"v-show",value:(index===0),expression:"index===0"}],class:_vm.isTop?'el-icon-arrow-down':'el-icon-arrow-up',on:{"click":_vm.changeDirectionArrow}})])}),0)]):_vm._e()}
|
|
89610
89444
|
var newIndexvue_type_template_id_272b1fcc_scoped_true_staticRenderFns = []
|
|
89611
89445
|
|
|
@@ -90270,8 +90104,8 @@ var newIndex_component = normalizeComponent(
|
|
|
90270
90104
|
});
|
|
90271
90105
|
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=script&lang=js&
|
|
90272
90106
|
/* harmony default export */ var maps_ryMap_srcvue_type_script_lang_js_ = (ryMap_srcvue_type_script_lang_js_);
|
|
90273
|
-
// EXTERNAL MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=style&index=0&id=
|
|
90274
|
-
var
|
|
90107
|
+
// EXTERNAL MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=style&index=0&id=dd9c3db0&prod&lang=scss&scoped=true&
|
|
90108
|
+
var srcvue_type_style_index_0_id_dd9c3db0_prod_lang_scss_scoped_true_ = __webpack_require__("e35d");
|
|
90275
90109
|
|
|
90276
90110
|
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue
|
|
90277
90111
|
|
|
@@ -90288,7 +90122,7 @@ var ryMap_src_component = normalizeComponent(
|
|
|
90288
90122
|
staticRenderFns,
|
|
90289
90123
|
false,
|
|
90290
90124
|
null,
|
|
90291
|
-
"
|
|
90125
|
+
"dd9c3db0",
|
|
90292
90126
|
null
|
|
90293
90127
|
|
|
90294
90128
|
)
|
|
@@ -90318,7 +90152,7 @@ ryMapTool_src.install = Vue => {
|
|
|
90318
90152
|
};
|
|
90319
90153
|
|
|
90320
90154
|
/* harmony default export */ var ryMapTool = (ryMapTool_src);
|
|
90321
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
90155
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryPolygon/src/index.vue?vue&type=template&id=3e8f1c13&
|
|
90322
90156
|
var srcvue_type_template_id_3e8f1c13_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
90323
90157
|
var srcvue_type_template_id_3e8f1c13_staticRenderFns = []
|
|
90324
90158
|
|
|
@@ -90692,7 +90526,7 @@ ryPolygon_src.install = Vue => {
|
|
|
90692
90526
|
};
|
|
90693
90527
|
|
|
90694
90528
|
/* harmony default export */ var ryPolygon = (ryPolygon_src);
|
|
90695
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
90529
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryPolygons/src/index.vue?vue&type=template&id=669909a7&
|
|
90696
90530
|
var srcvue_type_template_id_669909a7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
90697
90531
|
var srcvue_type_template_id_669909a7_staticRenderFns = []
|
|
90698
90532
|
|
|
@@ -91431,7 +91265,7 @@ ryPolygons_src.install = Vue => {
|
|
|
91431
91265
|
};
|
|
91432
91266
|
|
|
91433
91267
|
/* harmony default export */ var ryPolygons = (ryPolygons_src);
|
|
91434
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
91268
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryClusters/src/index.vue?vue&type=template&id=240ba74a&scoped=true&
|
|
91435
91269
|
var srcvue_type_template_id_240ba74a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
|
|
91436
91270
|
var srcvue_type_template_id_240ba74a_scoped_true_staticRenderFns = []
|
|
91437
91271
|
|
|
@@ -91744,7 +91578,7 @@ ryClusters_src.install = Vue => {
|
|
|
91744
91578
|
};
|
|
91745
91579
|
|
|
91746
91580
|
/* harmony default export */ var ryClusters = (ryClusters_src);
|
|
91747
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
91581
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryClustersMarker/src/index.vue?vue&type=template&id=64b08b64&scoped=true&
|
|
91748
91582
|
var srcvue_type_template_id_64b08b64_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
|
|
91749
91583
|
var srcvue_type_template_id_64b08b64_scoped_true_staticRenderFns = []
|
|
91750
91584
|
|
|
@@ -91933,7 +91767,7 @@ ryClustersMarker_src.install = Vue => {
|
|
|
91933
91767
|
};
|
|
91934
91768
|
|
|
91935
91769
|
/* harmony default export */ var ryClustersMarker = (ryClustersMarker_src);
|
|
91936
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
91770
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryPolygonGeo/src/index.vue?vue&type=template&id=2a5ab464&
|
|
91937
91771
|
var srcvue_type_template_id_2a5ab464_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
91938
91772
|
var srcvue_type_template_id_2a5ab464_staticRenderFns = []
|
|
91939
91773
|
|
|
@@ -92193,12 +92027,12 @@ ryPolygonGeo_src.install = Vue => {
|
|
|
92193
92027
|
};
|
|
92194
92028
|
|
|
92195
92029
|
/* harmony default export */ var ryPolygonGeo = (ryPolygonGeo_src);
|
|
92196
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
92197
|
-
var
|
|
92198
|
-
var
|
|
92030
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryVectorMap/src/index.vue?vue&type=template&id=022af51f&scoped=true&
|
|
92031
|
+
var srcvue_type_template_id_022af51f_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"vector-map"})}
|
|
92032
|
+
var srcvue_type_template_id_022af51f_scoped_true_staticRenderFns = []
|
|
92199
92033
|
|
|
92200
92034
|
|
|
92201
|
-
// CONCATENATED MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=template&id=
|
|
92035
|
+
// CONCATENATED MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=template&id=022af51f&scoped=true&
|
|
92202
92036
|
|
|
92203
92037
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryVectorMap/src/index.vue?vue&type=script&lang=js&
|
|
92204
92038
|
//
|
|
@@ -92324,15 +92158,15 @@ var srcvue_type_template_id_0ebc5840_scoped_true_staticRenderFns = []
|
|
|
92324
92158
|
const pro = _feature.getProperties();
|
|
92325
92159
|
|
|
92326
92160
|
const view = this.map.getView();
|
|
92327
|
-
const [
|
|
92161
|
+
const [currentX, currentY] = view.getCenter();
|
|
92328
92162
|
|
|
92329
92163
|
const _id = _feature.getId();
|
|
92330
92164
|
|
|
92331
92165
|
if (pro) {
|
|
92332
92166
|
this.$emit('mapClick', { ...pro,
|
|
92333
92167
|
id: _id ? _id : null,
|
|
92334
|
-
|
|
92335
|
-
|
|
92168
|
+
currentX,
|
|
92169
|
+
currentY
|
|
92336
92170
|
});
|
|
92337
92171
|
}
|
|
92338
92172
|
}
|
|
@@ -92377,8 +92211,8 @@ var srcvue_type_template_id_0ebc5840_scoped_true_staticRenderFns = []
|
|
|
92377
92211
|
});
|
|
92378
92212
|
// CONCATENATED MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=script&lang=js&
|
|
92379
92213
|
/* harmony default export */ var maps_ryVectorMap_srcvue_type_script_lang_js_ = (ryVectorMap_srcvue_type_script_lang_js_);
|
|
92380
|
-
// EXTERNAL MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=style&index=0&id=
|
|
92381
|
-
var
|
|
92214
|
+
// EXTERNAL MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=style&index=0&id=022af51f&prod&scoped=true&lang=scss&
|
|
92215
|
+
var srcvue_type_style_index_0_id_022af51f_prod_scoped_true_lang_scss_ = __webpack_require__("76f0");
|
|
92382
92216
|
|
|
92383
92217
|
// CONCATENATED MODULE: ./src/components/maps/ryVectorMap/src/index.vue
|
|
92384
92218
|
|
|
@@ -92391,11 +92225,11 @@ var srcvue_type_style_index_0_id_0ebc5840_prod_scoped_true_lang_scss_ = __webpac
|
|
|
92391
92225
|
|
|
92392
92226
|
var ryVectorMap_src_component = normalizeComponent(
|
|
92393
92227
|
maps_ryVectorMap_srcvue_type_script_lang_js_,
|
|
92394
|
-
|
|
92395
|
-
|
|
92228
|
+
srcvue_type_template_id_022af51f_scoped_true_render,
|
|
92229
|
+
srcvue_type_template_id_022af51f_scoped_true_staticRenderFns,
|
|
92396
92230
|
false,
|
|
92397
92231
|
null,
|
|
92398
|
-
"
|
|
92232
|
+
"022af51f",
|
|
92399
92233
|
null
|
|
92400
92234
|
|
|
92401
92235
|
)
|
|
@@ -92409,6 +92243,351 @@ ryVectorMap_src.install = Vue => {
|
|
|
92409
92243
|
};
|
|
92410
92244
|
|
|
92411
92245
|
/* harmony default export */ var ryVectorMap = (ryVectorMap_src);
|
|
92246
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a3ae8b7c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryLines/src/index.vue?vue&type=template&id=ac85d52a&
|
|
92247
|
+
var srcvue_type_template_id_ac85d52a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
92248
|
+
var srcvue_type_template_id_ac85d52a_staticRenderFns = []
|
|
92249
|
+
|
|
92250
|
+
|
|
92251
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=template&id=ac85d52a&
|
|
92252
|
+
|
|
92253
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryLines/ryLines.js
|
|
92254
|
+
|
|
92255
|
+
|
|
92256
|
+
const _lineDto = {
|
|
92257
|
+
color: 'red',
|
|
92258
|
+
width: 2,
|
|
92259
|
+
zIndex: 1
|
|
92260
|
+
};
|
|
92261
|
+
class ryLines_LineDto extends base_Base {
|
|
92262
|
+
constructor(...args) {
|
|
92263
|
+
super(...args);
|
|
92264
|
+
|
|
92265
|
+
_defineProperty(this, "model", {
|
|
92266
|
+
type: Object,
|
|
92267
|
+
default: () => null
|
|
92268
|
+
});
|
|
92269
|
+
|
|
92270
|
+
_defineProperty(this, "linenIsert", {
|
|
92271
|
+
type: Object,
|
|
92272
|
+
default: () => null
|
|
92273
|
+
});
|
|
92274
|
+
|
|
92275
|
+
_defineProperty(this, "isLineFit", {
|
|
92276
|
+
type: Boolean,
|
|
92277
|
+
default: true
|
|
92278
|
+
});
|
|
92279
|
+
|
|
92280
|
+
_defineProperty(this, "lineAppend", {
|
|
92281
|
+
type: Array,
|
|
92282
|
+
default: () => []
|
|
92283
|
+
});
|
|
92284
|
+
|
|
92285
|
+
_defineProperty(this, "startMarkerDto", {
|
|
92286
|
+
type: Object,
|
|
92287
|
+
default: () => null
|
|
92288
|
+
});
|
|
92289
|
+
|
|
92290
|
+
_defineProperty(this, "endMarkerDto", {
|
|
92291
|
+
type: Object,
|
|
92292
|
+
default: () => null
|
|
92293
|
+
});
|
|
92294
|
+
|
|
92295
|
+
_defineProperty(this, "moveMarkerDto", {
|
|
92296
|
+
type: Object,
|
|
92297
|
+
default: () => null
|
|
92298
|
+
});
|
|
92299
|
+
|
|
92300
|
+
_defineProperty(this, "clearLiens", {
|
|
92301
|
+
type: Boolean,
|
|
92302
|
+
default: false
|
|
92303
|
+
});
|
|
92304
|
+
|
|
92305
|
+
_defineProperty(this, "endMarkerPoint", {
|
|
92306
|
+
type: Array,
|
|
92307
|
+
default: () => []
|
|
92308
|
+
});
|
|
92309
|
+
|
|
92310
|
+
_defineProperty(this, "lineDto", {
|
|
92311
|
+
type: Object,
|
|
92312
|
+
default: () => _lineDto
|
|
92313
|
+
});
|
|
92314
|
+
}
|
|
92315
|
+
|
|
92316
|
+
}
|
|
92317
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryLines/src/index.vue?vue&type=script&lang=js&
|
|
92318
|
+
//
|
|
92319
|
+
//
|
|
92320
|
+
//
|
|
92321
|
+
|
|
92322
|
+
|
|
92323
|
+
/* harmony default export */ var ryLines_srcvue_type_script_lang_js_ = ({
|
|
92324
|
+
name: 'RyLines',
|
|
92325
|
+
props: { ...new ryLines_LineDto()
|
|
92326
|
+
},
|
|
92327
|
+
|
|
92328
|
+
data() {
|
|
92329
|
+
return {
|
|
92330
|
+
lines: null,
|
|
92331
|
+
checkPoint: null,
|
|
92332
|
+
bbox: [],
|
|
92333
|
+
bboxGCJ02: [],
|
|
92334
|
+
lastType: -1,
|
|
92335
|
+
lastLinesDto: null,
|
|
92336
|
+
moveMarker: null,
|
|
92337
|
+
endMarker: null,
|
|
92338
|
+
startMarker: null,
|
|
92339
|
+
pineArr: [],
|
|
92340
|
+
lastLineX: 0,
|
|
92341
|
+
lastLineY: 0,
|
|
92342
|
+
cachePointArr: new Array(),
|
|
92343
|
+
drawingEnd: false,
|
|
92344
|
+
isFist: true,
|
|
92345
|
+
lastColor: null,
|
|
92346
|
+
am: new ry_map["AM"]()
|
|
92347
|
+
};
|
|
92348
|
+
},
|
|
92349
|
+
|
|
92350
|
+
watch: {
|
|
92351
|
+
model(val) {
|
|
92352
|
+
this.init();
|
|
92353
|
+
},
|
|
92354
|
+
|
|
92355
|
+
linenIsert(val) {
|
|
92356
|
+
if (!this.map || !val) return;
|
|
92357
|
+
|
|
92358
|
+
this._insertLineAndMarker(val);
|
|
92359
|
+
},
|
|
92360
|
+
|
|
92361
|
+
gpsType(val) {},
|
|
92362
|
+
|
|
92363
|
+
clearLiens(val) {
|
|
92364
|
+
if (val) {
|
|
92365
|
+
this.clearLine();
|
|
92366
|
+
}
|
|
92367
|
+
},
|
|
92368
|
+
|
|
92369
|
+
lineAppend(val) {
|
|
92370
|
+
if (val.length > 0 && this.map) {
|
|
92371
|
+
this.appendCoordinate(val);
|
|
92372
|
+
this.setMarkerPoint(this.endMarker, val);
|
|
92373
|
+
}
|
|
92374
|
+
}
|
|
92375
|
+
|
|
92376
|
+
},
|
|
92377
|
+
|
|
92378
|
+
created() {
|
|
92379
|
+
this.init();
|
|
92380
|
+
},
|
|
92381
|
+
|
|
92382
|
+
methods: {
|
|
92383
|
+
init() {
|
|
92384
|
+
if (!this.map) return;
|
|
92385
|
+
this.clearLine();
|
|
92386
|
+
if (!this.model) return;
|
|
92387
|
+
this.lastType = this.gpsType;
|
|
92388
|
+
|
|
92389
|
+
this._insertLineAndMarker(this.model);
|
|
92390
|
+
},
|
|
92391
|
+
|
|
92392
|
+
_insertLineAndMarker(val) {
|
|
92393
|
+
const color = val.color;
|
|
92394
|
+
const arr = val.pointArr;
|
|
92395
|
+
|
|
92396
|
+
if (this.isLineFit) {
|
|
92397
|
+
this.calculateLineBBOX(arr);
|
|
92398
|
+
}
|
|
92399
|
+
|
|
92400
|
+
this.initMarker(arr[0]);
|
|
92401
|
+
|
|
92402
|
+
if (!val.isAppend || !this.pineArr.length) {
|
|
92403
|
+
this._insertPoint(val);
|
|
92404
|
+
|
|
92405
|
+
const line = this.createPolyline(val);
|
|
92406
|
+
const len = arr.length - 1;
|
|
92407
|
+
this.setMarkerPoint(this.endMarker, arr[len]);
|
|
92408
|
+
this.restLastData(arr);
|
|
92409
|
+
this.pineArr.push(line);
|
|
92410
|
+
return;
|
|
92411
|
+
}
|
|
92412
|
+
|
|
92413
|
+
arr.forEach(r => {
|
|
92414
|
+
this.appendCoordinate(r);
|
|
92415
|
+
});
|
|
92416
|
+
const len = arr.length - 1;
|
|
92417
|
+
this.setMarkerPoint(this.endMarker, arr[len]);
|
|
92418
|
+
this.restLastData(arr);
|
|
92419
|
+
},
|
|
92420
|
+
|
|
92421
|
+
async calculateLineBBOX(arr) {
|
|
92422
|
+
return await new Promise(r => {
|
|
92423
|
+
arr.forEach(r => {
|
|
92424
|
+
this.am.getLngAndLatMaxMin({
|
|
92425
|
+
X: r[0],
|
|
92426
|
+
Y: r[1]
|
|
92427
|
+
});
|
|
92428
|
+
});
|
|
92429
|
+
const amGpsArr = this.am.getLngLats();
|
|
92430
|
+
Object(ry_map["fitNew"])(this.map, [[amGpsArr[0], amGpsArr[1]], [amGpsArr[2], amGpsArr[3]]]);
|
|
92431
|
+
r();
|
|
92432
|
+
});
|
|
92433
|
+
},
|
|
92434
|
+
|
|
92435
|
+
initMarker(arr) {
|
|
92436
|
+
if (!this.startMarkerDto && !this.endMarkerDto) return;
|
|
92437
|
+
|
|
92438
|
+
if (!this.startMarker && !this.endMarker) {
|
|
92439
|
+
this.startMarker = this.createStartMarker(this.startMarkerDto, arr);
|
|
92440
|
+
this.endMarker = this.createStartMarker(this.endMarkerDto);
|
|
92441
|
+
}
|
|
92442
|
+
},
|
|
92443
|
+
|
|
92444
|
+
setMarkerPoint(marker, points) {
|
|
92445
|
+
if (marker && points.length > 1) {
|
|
92446
|
+
marker.setPosition(points, this.gpsType);
|
|
92447
|
+
}
|
|
92448
|
+
},
|
|
92449
|
+
|
|
92450
|
+
restLastData(arr) {
|
|
92451
|
+
if (arr.length > 0) {
|
|
92452
|
+
const [x, y] = arr[arr.length - 1];
|
|
92453
|
+
this.lastLineX = x;
|
|
92454
|
+
this.lastLineY = y;
|
|
92455
|
+
}
|
|
92456
|
+
},
|
|
92457
|
+
|
|
92458
|
+
_insertPoint(val) {
|
|
92459
|
+
if (this.lastLineX > 0 && this.lastLineY > 0 && val) {
|
|
92460
|
+
val.pointArr.unshift([this.lastLineX, this.lastLineY]);
|
|
92461
|
+
}
|
|
92462
|
+
},
|
|
92463
|
+
|
|
92464
|
+
createPolyline(polylineModel = {
|
|
92465
|
+
color: 'rgb(0,0,255)',
|
|
92466
|
+
width: 2,
|
|
92467
|
+
pointArr: [],
|
|
92468
|
+
zIndex: 1000
|
|
92469
|
+
}) {
|
|
92470
|
+
return new ry_map["Polyline"]({ ...polylineModel,
|
|
92471
|
+
type: this.gpsType
|
|
92472
|
+
}, this.map);
|
|
92473
|
+
},
|
|
92474
|
+
|
|
92475
|
+
createStartMarker({
|
|
92476
|
+
offset,
|
|
92477
|
+
url,
|
|
92478
|
+
width,
|
|
92479
|
+
height
|
|
92480
|
+
}, points = []) {
|
|
92481
|
+
const marker = new ry_map["LMarker"](url, width, height);
|
|
92482
|
+
marker.setOffset(offset);
|
|
92483
|
+
|
|
92484
|
+
if (points.length) {
|
|
92485
|
+
marker.setPosition(points, this.gpsType);
|
|
92486
|
+
}
|
|
92487
|
+
|
|
92488
|
+
this.map.addOverlay(marker.getMarker());
|
|
92489
|
+
return marker;
|
|
92490
|
+
},
|
|
92491
|
+
|
|
92492
|
+
getLngLatGCJ02(pointArr) {
|
|
92493
|
+
const arr = [];
|
|
92494
|
+
pointArr.forEach(r => {
|
|
92495
|
+
const {
|
|
92496
|
+
lon,
|
|
92497
|
+
lat
|
|
92498
|
+
} = ry_map["GPS"].gcj_encrypt(r[0], r[1]);
|
|
92499
|
+
arr.push([lon, lat]);
|
|
92500
|
+
});
|
|
92501
|
+
return arr;
|
|
92502
|
+
},
|
|
92503
|
+
|
|
92504
|
+
removeLines() {
|
|
92505
|
+
this.pineArr.forEach(val => {
|
|
92506
|
+
val.removePolyline();
|
|
92507
|
+
});
|
|
92508
|
+
this.pineArr = [];
|
|
92509
|
+
},
|
|
92510
|
+
|
|
92511
|
+
removeLineMarker() {
|
|
92512
|
+
if (!this.map) return;
|
|
92513
|
+
|
|
92514
|
+
if (this.endMarker) {
|
|
92515
|
+
this.map.removeOverlay(this.endMarker.getMarker());
|
|
92516
|
+
}
|
|
92517
|
+
|
|
92518
|
+
if (this.startMarker) {
|
|
92519
|
+
this.map.removeOverlay(this.startMarker.getMarker());
|
|
92520
|
+
}
|
|
92521
|
+
|
|
92522
|
+
if (this.moveMarker) {
|
|
92523
|
+
this.map.removeOverlay(this.moveMarker.getMarker());
|
|
92524
|
+
}
|
|
92525
|
+
|
|
92526
|
+
this.moveMarker = null;
|
|
92527
|
+
this.endMarker = null;
|
|
92528
|
+
this.startMarker = null;
|
|
92529
|
+
},
|
|
92530
|
+
|
|
92531
|
+
clearLine() {
|
|
92532
|
+
this.removeLines();
|
|
92533
|
+
this.removeLineMarker();
|
|
92534
|
+
this.cachePointArr = [];
|
|
92535
|
+
this.lastColor = null;
|
|
92536
|
+
this.lastLineX = 0;
|
|
92537
|
+
this.lastLineY = 0;
|
|
92538
|
+
this.am = null;
|
|
92539
|
+
this.am = new ry_map["AM"]();
|
|
92540
|
+
},
|
|
92541
|
+
|
|
92542
|
+
appendCoordinate(coordinate = []) {
|
|
92543
|
+
if (!coordinate.length) return;
|
|
92544
|
+
|
|
92545
|
+
if (!this.pineArr.length) {
|
|
92546
|
+
this._insertLineAndMarker({ ...this.lineDto,
|
|
92547
|
+
pointArr: [coordinate],
|
|
92548
|
+
isAppend: false
|
|
92549
|
+
});
|
|
92550
|
+
}
|
|
92551
|
+
|
|
92552
|
+
;
|
|
92553
|
+
const line = this.pineArr[this.pineArr.length - 1];
|
|
92554
|
+
line.appendCoordinate(coordinate);
|
|
92555
|
+
},
|
|
92556
|
+
|
|
92557
|
+
selectGPSAll(type) {}
|
|
92558
|
+
|
|
92559
|
+
}
|
|
92560
|
+
});
|
|
92561
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=script&lang=js&
|
|
92562
|
+
/* harmony default export */ var maps_ryLines_srcvue_type_script_lang_js_ = (ryLines_srcvue_type_script_lang_js_);
|
|
92563
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue
|
|
92564
|
+
|
|
92565
|
+
|
|
92566
|
+
|
|
92567
|
+
|
|
92568
|
+
|
|
92569
|
+
/* normalize component */
|
|
92570
|
+
|
|
92571
|
+
var ryLines_src_component = normalizeComponent(
|
|
92572
|
+
maps_ryLines_srcvue_type_script_lang_js_,
|
|
92573
|
+
srcvue_type_template_id_ac85d52a_render,
|
|
92574
|
+
srcvue_type_template_id_ac85d52a_staticRenderFns,
|
|
92575
|
+
false,
|
|
92576
|
+
null,
|
|
92577
|
+
null,
|
|
92578
|
+
null
|
|
92579
|
+
|
|
92580
|
+
)
|
|
92581
|
+
|
|
92582
|
+
/* harmony default export */ var ryLines_src = (ryLines_src_component.exports);
|
|
92583
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/index.js
|
|
92584
|
+
|
|
92585
|
+
|
|
92586
|
+
ryLines_src.install = Vue => {
|
|
92587
|
+
Vue.install(ryLines_src.name, ryLines_src);
|
|
92588
|
+
};
|
|
92589
|
+
|
|
92590
|
+
/* harmony default export */ var ryLines = (ryLines_src);
|
|
92412
92591
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
92413
92592
|
|
|
92414
92593
|
|
|
@@ -92418,10 +92597,11 @@ ryVectorMap_src.install = Vue => {
|
|
|
92418
92597
|
|
|
92419
92598
|
|
|
92420
92599
|
|
|
92600
|
+
|
|
92421
92601
|
// import "./fonts/iconfont.css";
|
|
92422
92602
|
// 组件列表
|
|
92423
92603
|
|
|
92424
|
-
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap]; // 定义install
|
|
92604
|
+
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap, ryLines]; // 定义install
|
|
92425
92605
|
|
|
92426
92606
|
const install = (Vue, options) => {
|
|
92427
92607
|
// 遍历注册全局组件
|