ry-vue-map 0.2.1 → 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 +464 -284
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.umd.js +464 -284
- 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/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.umd.js
CHANGED
|
@@ -262,13 +262,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
262
262
|
|
|
263
263
|
/***/ }),
|
|
264
264
|
|
|
265
|
-
/***/ "03a0":
|
|
266
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
267
|
-
|
|
268
|
-
// extracted by mini-css-extract-plugin
|
|
269
|
-
|
|
270
|
-
/***/ }),
|
|
271
|
-
|
|
272
265
|
/***/ "0414":
|
|
273
266
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
274
267
|
|
|
@@ -330,26 +323,27 @@ module.exports = _nonIterableSpread, module.exports.__esModule = true, module.ex
|
|
|
330
323
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
331
324
|
|
|
332
325
|
"use strict";
|
|
333
|
-
|
|
334
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
335
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
336
|
-
/*
|
|
337
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
338
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
339
|
-
/*
|
|
340
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
341
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
342
|
-
/*
|
|
343
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
344
|
-
/*
|
|
345
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
346
|
-
/*
|
|
347
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
348
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
349
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
350
|
-
/*
|
|
351
|
-
/*
|
|
352
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
326
|
+
__webpack_require__.r(__webpack_exports__);
|
|
327
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "all", function() { return all; });
|
|
328
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "altKeyOnly", function() { return altKeyOnly; });
|
|
329
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "altShiftKeysOnly", function() { return altShiftKeysOnly; });
|
|
330
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "focus", function() { return focus; });
|
|
331
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "focusWithTabindex", function() { return focusWithTabindex; });
|
|
332
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "always", function() { return always; });
|
|
333
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "click", function() { return click; });
|
|
334
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mouseActionButton", function() { return mouseActionButton; });
|
|
335
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "never", function() { return never; });
|
|
336
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pointerMove", function() { return pointerMove; });
|
|
337
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "singleClick", function() { return singleClick; });
|
|
338
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doubleClick", function() { return doubleClick; });
|
|
339
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noModifierKeys", function() { return noModifierKeys; });
|
|
340
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "platformModifierKeyOnly", function() { return platformModifierKeyOnly; });
|
|
341
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shiftKeyOnly", function() { return shiftKeyOnly; });
|
|
342
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "targetNotEditable", function() { return targetNotEditable; });
|
|
343
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mouseOnly", function() { return mouseOnly; });
|
|
344
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "touchOnly", function() { return touchOnly; });
|
|
345
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "penOnly", function() { return penOnly; });
|
|
346
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryAction", function() { return primaryAction; });
|
|
353
347
|
/* harmony import */ var _MapBrowserEventType_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0b2d");
|
|
354
348
|
/* harmony import */ var _functions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("57cb");
|
|
355
349
|
/* harmony import */ var _has_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("617d");
|
|
@@ -15224,7 +15218,7 @@ var DragRotate_DragRotate = /** @class */ (function (_super) {
|
|
|
15224
15218
|
* @private
|
|
15225
15219
|
* @type {import("../events/condition.js").Condition}
|
|
15226
15220
|
*/
|
|
15227
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
15221
|
+
_this.condition_ = options.condition ? options.condition : events_condition["altShiftKeysOnly"];
|
|
15228
15222
|
/**
|
|
15229
15223
|
* @private
|
|
15230
15224
|
* @type {number|undefined}
|
|
@@ -15242,7 +15236,7 @@ var DragRotate_DragRotate = /** @class */ (function (_super) {
|
|
|
15242
15236
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
15243
15237
|
*/
|
|
15244
15238
|
DragRotate.prototype.handleDragEvent = function (mapBrowserEvent) {
|
|
15245
|
-
if (!Object(events_condition["
|
|
15239
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
15246
15240
|
return;
|
|
15247
15241
|
}
|
|
15248
15242
|
var map = mapBrowserEvent.map;
|
|
@@ -15265,7 +15259,7 @@ var DragRotate_DragRotate = /** @class */ (function (_super) {
|
|
|
15265
15259
|
* @return {boolean} If the event was consumed.
|
|
15266
15260
|
*/
|
|
15267
15261
|
DragRotate.prototype.handleUpEvent = function (mapBrowserEvent) {
|
|
15268
|
-
if (!Object(events_condition["
|
|
15262
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
15269
15263
|
return true;
|
|
15270
15264
|
}
|
|
15271
15265
|
var map = mapBrowserEvent.map;
|
|
@@ -15279,10 +15273,10 @@ var DragRotate_DragRotate = /** @class */ (function (_super) {
|
|
|
15279
15273
|
* @return {boolean} If the event was consumed.
|
|
15280
15274
|
*/
|
|
15281
15275
|
DragRotate.prototype.handleDownEvent = function (mapBrowserEvent) {
|
|
15282
|
-
if (!Object(events_condition["
|
|
15276
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
15283
15277
|
return false;
|
|
15284
15278
|
}
|
|
15285
|
-
if (Object(events_condition["
|
|
15279
|
+
if (Object(events_condition["mouseActionButton"])(mapBrowserEvent) &&
|
|
15286
15280
|
this.condition_(mapBrowserEvent)) {
|
|
15287
15281
|
var map = mapBrowserEvent.map;
|
|
15288
15282
|
map.getView().beginInteraction();
|
|
@@ -15610,7 +15604,7 @@ var DragBox_DragBox = /** @class */ (function (_super) {
|
|
|
15610
15604
|
* @private
|
|
15611
15605
|
* @type {import("../events/condition.js").Condition}
|
|
15612
15606
|
*/
|
|
15613
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
15607
|
+
_this.condition_ = options.condition ? options.condition : events_condition["mouseActionButton"];
|
|
15614
15608
|
/**
|
|
15615
15609
|
* @private
|
|
15616
15610
|
* @type {EndCondition}
|
|
@@ -15746,7 +15740,7 @@ var DragZoom_DragZoom = /** @class */ (function (_super) {
|
|
|
15746
15740
|
function DragZoom(opt_options) {
|
|
15747
15741
|
var _this = this;
|
|
15748
15742
|
var options = opt_options ? opt_options : {};
|
|
15749
|
-
var condition = options.condition ? options.condition : events_condition["
|
|
15743
|
+
var condition = options.condition ? options.condition : events_condition["shiftKeyOnly"];
|
|
15750
15744
|
_this = _super.call(this, {
|
|
15751
15745
|
condition: condition,
|
|
15752
15746
|
className: options.className || 'ol-dragzoom',
|
|
@@ -15871,7 +15865,7 @@ var KeyboardPan_KeyboardPan = /** @class */ (function (_super) {
|
|
|
15871
15865
|
* @return {boolean} Combined condition result.
|
|
15872
15866
|
*/
|
|
15873
15867
|
_this.defaultCondition_ = function (mapBrowserEvent) {
|
|
15874
|
-
return (Object(events_condition["
|
|
15868
|
+
return (Object(events_condition["noModifierKeys"])(mapBrowserEvent) && Object(events_condition["targetNotEditable"])(mapBrowserEvent));
|
|
15875
15869
|
};
|
|
15876
15870
|
/**
|
|
15877
15871
|
* @private
|
|
@@ -15997,7 +15991,7 @@ var KeyboardZoom_KeyboardZoom = /** @class */ (function (_super) {
|
|
|
15997
15991
|
* @private
|
|
15998
15992
|
* @type {import("../events/condition.js").Condition}
|
|
15999
15993
|
*/
|
|
16000
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
15994
|
+
_this.condition_ = options.condition ? options.condition : events_condition["targetNotEditable"];
|
|
16001
15995
|
/**
|
|
16002
15996
|
* @private
|
|
16003
15997
|
* @type {number}
|
|
@@ -16263,13 +16257,13 @@ var MouseWheelZoom_MouseWheelZoom = /** @class */ (function (_super) {
|
|
|
16263
16257
|
options.constrainResolution !== undefined
|
|
16264
16258
|
? options.constrainResolution
|
|
16265
16259
|
: false;
|
|
16266
|
-
var condition = options.condition ? options.condition : events_condition["
|
|
16260
|
+
var condition = options.condition ? options.condition : events_condition["always"];
|
|
16267
16261
|
/**
|
|
16268
16262
|
* @private
|
|
16269
16263
|
* @type {import("../events/condition.js").Condition}
|
|
16270
16264
|
*/
|
|
16271
16265
|
_this.condition_ = options.onFocusOnly
|
|
16272
|
-
? Object(events_condition["
|
|
16266
|
+
? Object(events_condition["all"])(events_condition["focusWithTabindex"], condition)
|
|
16273
16267
|
: condition;
|
|
16274
16268
|
/**
|
|
16275
16269
|
* @private
|
|
@@ -17093,7 +17087,7 @@ var DragRotateAndZoom_DragRotateAndZoom = /** @class */ (function (_super) {
|
|
|
17093
17087
|
* @private
|
|
17094
17088
|
* @type {import("../events/condition.js").Condition}
|
|
17095
17089
|
*/
|
|
17096
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
17090
|
+
_this.condition_ = options.condition ? options.condition : events_condition["shiftKeyOnly"];
|
|
17097
17091
|
/**
|
|
17098
17092
|
* @private
|
|
17099
17093
|
* @type {number|undefined}
|
|
@@ -17121,7 +17115,7 @@ var DragRotateAndZoom_DragRotateAndZoom = /** @class */ (function (_super) {
|
|
|
17121
17115
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
17122
17116
|
*/
|
|
17123
17117
|
DragRotateAndZoom.prototype.handleDragEvent = function (mapBrowserEvent) {
|
|
17124
|
-
if (!Object(events_condition["
|
|
17118
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
17125
17119
|
return;
|
|
17126
17120
|
}
|
|
17127
17121
|
var map = mapBrowserEvent.map;
|
|
@@ -17151,7 +17145,7 @@ var DragRotateAndZoom_DragRotateAndZoom = /** @class */ (function (_super) {
|
|
|
17151
17145
|
* @return {boolean} If the event was consumed.
|
|
17152
17146
|
*/
|
|
17153
17147
|
DragRotateAndZoom.prototype.handleUpEvent = function (mapBrowserEvent) {
|
|
17154
|
-
if (!Object(events_condition["
|
|
17148
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
17155
17149
|
return true;
|
|
17156
17150
|
}
|
|
17157
17151
|
var map = mapBrowserEvent.map;
|
|
@@ -17167,7 +17161,7 @@ var DragRotateAndZoom_DragRotateAndZoom = /** @class */ (function (_super) {
|
|
|
17167
17161
|
* @return {boolean} If the event was consumed.
|
|
17168
17162
|
*/
|
|
17169
17163
|
DragRotateAndZoom.prototype.handleDownEvent = function (mapBrowserEvent) {
|
|
17170
|
-
if (!Object(events_condition["
|
|
17164
|
+
if (!Object(events_condition["mouseOnly"])(mapBrowserEvent)) {
|
|
17171
17165
|
return false;
|
|
17172
17166
|
}
|
|
17173
17167
|
if (this.condition_(mapBrowserEvent)) {
|
|
@@ -17334,7 +17328,7 @@ var Extent_Extent = /** @class */ (function (_super) {
|
|
|
17334
17328
|
* @type {import("../events/condition.js").Condition}
|
|
17335
17329
|
* @private
|
|
17336
17330
|
*/
|
|
17337
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
17331
|
+
_this.condition_ = options.condition ? options.condition : events_condition["always"];
|
|
17338
17332
|
/**
|
|
17339
17333
|
* Extent of the drawn box
|
|
17340
17334
|
* @type {import("../extent.js").Extent}
|
|
@@ -17949,14 +17943,14 @@ var Modify_Modify = /** @class */ (function (_super) {
|
|
|
17949
17943
|
* @private
|
|
17950
17944
|
* @type {import("../events/condition.js").Condition}
|
|
17951
17945
|
*/
|
|
17952
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
17946
|
+
_this.condition_ = options.condition ? options.condition : events_condition["primaryAction"];
|
|
17953
17947
|
/**
|
|
17954
17948
|
* @private
|
|
17955
17949
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Browser event.
|
|
17956
17950
|
* @return {boolean} Combined condition result.
|
|
17957
17951
|
*/
|
|
17958
17952
|
_this.defaultDeleteCondition_ = function (mapBrowserEvent) {
|
|
17959
|
-
return Object(events_condition["
|
|
17953
|
+
return Object(events_condition["altKeyOnly"])(mapBrowserEvent) && Object(events_condition["singleClick"])(mapBrowserEvent);
|
|
17960
17954
|
};
|
|
17961
17955
|
/**
|
|
17962
17956
|
* @type {import("../events/condition.js").Condition}
|
|
@@ -17971,7 +17965,7 @@ var Modify_Modify = /** @class */ (function (_super) {
|
|
|
17971
17965
|
*/
|
|
17972
17966
|
_this.insertVertexCondition_ = options.insertVertexCondition
|
|
17973
17967
|
? options.insertVertexCondition
|
|
17974
|
-
: events_condition["
|
|
17968
|
+
: events_condition["always"];
|
|
17975
17969
|
/**
|
|
17976
17970
|
* Editing vertex.
|
|
17977
17971
|
* @type {Feature<Point>}
|
|
@@ -19357,26 +19351,26 @@ var Select_Select = /** @class */ (function (_super) {
|
|
|
19357
19351
|
* @private
|
|
19358
19352
|
* @type {import("../events/condition.js").Condition}
|
|
19359
19353
|
*/
|
|
19360
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
19354
|
+
_this.condition_ = options.condition ? options.condition : events_condition["singleClick"];
|
|
19361
19355
|
/**
|
|
19362
19356
|
* @private
|
|
19363
19357
|
* @type {import("../events/condition.js").Condition}
|
|
19364
19358
|
*/
|
|
19365
|
-
_this.addCondition_ = options.addCondition ? options.addCondition : events_condition["
|
|
19359
|
+
_this.addCondition_ = options.addCondition ? options.addCondition : events_condition["never"];
|
|
19366
19360
|
/**
|
|
19367
19361
|
* @private
|
|
19368
19362
|
* @type {import("../events/condition.js").Condition}
|
|
19369
19363
|
*/
|
|
19370
19364
|
_this.removeCondition_ = options.removeCondition
|
|
19371
19365
|
? options.removeCondition
|
|
19372
|
-
: events_condition["
|
|
19366
|
+
: events_condition["never"];
|
|
19373
19367
|
/**
|
|
19374
19368
|
* @private
|
|
19375
19369
|
* @type {import("../events/condition.js").Condition}
|
|
19376
19370
|
*/
|
|
19377
19371
|
_this.toggleCondition_ = options.toggleCondition
|
|
19378
19372
|
? options.toggleCondition
|
|
19379
|
-
: events_condition["
|
|
19373
|
+
: events_condition["shiftKeyOnly"];
|
|
19380
19374
|
/**
|
|
19381
19375
|
* @private
|
|
19382
19376
|
* @type {boolean}
|
|
@@ -20485,7 +20479,7 @@ var Translate_Translate = /** @class */ (function (_super) {
|
|
|
20485
20479
|
* @private
|
|
20486
20480
|
* @type {import("../events/condition.js").Condition}
|
|
20487
20481
|
*/
|
|
20488
|
-
_this.condition_ = options.condition ? options.condition : events_condition["
|
|
20482
|
+
_this.condition_ = options.condition ? options.condition : events_condition["always"];
|
|
20489
20483
|
/**
|
|
20490
20484
|
* @type {import("../Feature.js").default}
|
|
20491
20485
|
* @private
|
|
@@ -27604,6 +27598,13 @@ var PASSIVE_EVENT_LISTENERS = (function () {
|
|
|
27604
27598
|
|
|
27605
27599
|
/***/ }),
|
|
27606
27600
|
|
|
27601
|
+
/***/ "6270":
|
|
27602
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
27603
|
+
|
|
27604
|
+
// extracted by mini-css-extract-plugin
|
|
27605
|
+
|
|
27606
|
+
/***/ }),
|
|
27607
|
+
|
|
27607
27608
|
/***/ "6573":
|
|
27608
27609
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27609
27610
|
|
|
@@ -27658,7 +27659,7 @@ var closePathInstruction = [Instruction.CLOSE_PATH];
|
|
|
27658
27659
|
/***/ (function(module, exports, __webpack_require__) {
|
|
27659
27660
|
|
|
27660
27661
|
"use strict";
|
|
27661
|
-
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
|
|
27662
|
+
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;
|
|
27662
27663
|
|
|
27663
27664
|
/***/ }),
|
|
27664
27665
|
|
|
@@ -29652,7 +29653,7 @@ function setWithCredentials(xhrWithCredentials) {
|
|
|
29652
29653
|
/***/ (function(module, exports, __webpack_require__) {
|
|
29653
29654
|
|
|
29654
29655
|
"use strict";
|
|
29655
|
-
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)(
|
|
29656
|
+
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;
|
|
29656
29657
|
|
|
29657
29658
|
/***/ }),
|
|
29658
29659
|
|
|
@@ -29687,17 +29688,6 @@ function _typeof(obj) {
|
|
|
29687
29688
|
|
|
29688
29689
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
29689
29690
|
|
|
29690
|
-
/***/ }),
|
|
29691
|
-
|
|
29692
|
-
/***/ "70f3":
|
|
29693
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29694
|
-
|
|
29695
|
-
"use strict";
|
|
29696
|
-
/* 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_c65225ea_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c986");
|
|
29697
|
-
/* 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_c65225ea_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_c65225ea_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
29698
|
-
/* unused harmony reexport * */
|
|
29699
|
-
|
|
29700
|
-
|
|
29701
29691
|
/***/ }),
|
|
29702
29692
|
|
|
29703
29693
|
/***/ "7238":
|
|
@@ -39269,6 +39259,17 @@ function sourcesFromTileGrid(tileGrid, factory) {
|
|
|
39269
39259
|
}
|
|
39270
39260
|
//# sourceMappingURL=source.js.map
|
|
39271
39261
|
|
|
39262
|
+
/***/ }),
|
|
39263
|
+
|
|
39264
|
+
/***/ "76f0":
|
|
39265
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
39266
|
+
|
|
39267
|
+
"use strict";
|
|
39268
|
+
/* 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");
|
|
39269
|
+
/* 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__);
|
|
39270
|
+
/* unused harmony reexport * */
|
|
39271
|
+
|
|
39272
|
+
|
|
39272
39273
|
/***/ }),
|
|
39273
39274
|
|
|
39274
39275
|
/***/ "78db":
|
|
@@ -53438,19 +53439,19 @@ var Draw_Draw = /** @class */ (function (_super) {
|
|
|
53438
53439
|
* @private
|
|
53439
53440
|
* @type {import("../events/condition.js").Condition}
|
|
53440
53441
|
*/
|
|
53441
|
-
_this.condition_ = options.condition ? options.condition : condition["
|
|
53442
|
+
_this.condition_ = options.condition ? options.condition : condition["noModifierKeys"];
|
|
53442
53443
|
/**
|
|
53443
53444
|
* @private
|
|
53444
53445
|
* @type {import("../events/condition.js").Condition}
|
|
53445
53446
|
*/
|
|
53446
53447
|
_this.freehandCondition_;
|
|
53447
53448
|
if (options.freehand) {
|
|
53448
|
-
_this.freehandCondition_ = condition["
|
|
53449
|
+
_this.freehandCondition_ = condition["always"];
|
|
53449
53450
|
}
|
|
53450
53451
|
else {
|
|
53451
53452
|
_this.freehandCondition_ = options.freehandCondition
|
|
53452
53453
|
? options.freehandCondition
|
|
53453
|
-
: condition["
|
|
53454
|
+
: condition["shiftKeyOnly"];
|
|
53454
53455
|
}
|
|
53455
53456
|
_this.addChangeListener(Property["a" /* default */].ACTIVE, _this.updateState_);
|
|
53456
53457
|
return _this;
|
|
@@ -59235,17 +59236,6 @@ function translate(flatCoordinates, offset, end, stride, deltaX, deltaY, opt_des
|
|
|
59235
59236
|
});
|
|
59236
59237
|
//# sourceMappingURL=Property.js.map
|
|
59237
59238
|
|
|
59238
|
-
/***/ }),
|
|
59239
|
-
|
|
59240
|
-
/***/ "c071":
|
|
59241
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
59242
|
-
|
|
59243
|
-
"use strict";
|
|
59244
|
-
/* 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");
|
|
59245
|
-
/* 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__);
|
|
59246
|
-
/* unused harmony reexport * */
|
|
59247
|
-
|
|
59248
|
-
|
|
59249
59239
|
/***/ }),
|
|
59250
59240
|
|
|
59251
59241
|
/***/ "c12a":
|
|
@@ -60566,13 +60556,6 @@ var CanvasImmediateRenderer = /** @class */ (function (_super) {
|
|
|
60566
60556
|
|
|
60567
60557
|
/***/ }),
|
|
60568
60558
|
|
|
60569
|
-
/***/ "c986":
|
|
60570
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
60571
|
-
|
|
60572
|
-
// extracted by mini-css-extract-plugin
|
|
60573
|
-
|
|
60574
|
-
/***/ }),
|
|
60575
|
-
|
|
60576
60559
|
/***/ "ca42":
|
|
60577
60560
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
60578
60561
|
|
|
@@ -60717,13 +60700,13 @@ var DragPan = /** @class */ (function (_super) {
|
|
|
60717
60700
|
_this.panning_ = false;
|
|
60718
60701
|
var condition = options.condition
|
|
60719
60702
|
? options.condition
|
|
60720
|
-
: Object(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__[
|
|
60703
|
+
: 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"]);
|
|
60721
60704
|
/**
|
|
60722
60705
|
* @private
|
|
60723
60706
|
* @type {import("../events/condition.js").Condition}
|
|
60724
60707
|
*/
|
|
60725
60708
|
_this.condition_ = options.onFocusOnly
|
|
60726
|
-
? Object(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__[
|
|
60709
|
+
? Object(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__["all"])(_events_condition_js__WEBPACK_IMPORTED_MODULE_2__["focusWithTabindex"], condition)
|
|
60727
60710
|
: condition;
|
|
60728
60711
|
/**
|
|
60729
60712
|
* @private
|
|
@@ -65683,183 +65666,20 @@ var Collection = /** @class */ (function (_super) {
|
|
|
65683
65666
|
/***/ }),
|
|
65684
65667
|
|
|
65685
65668
|
/***/ "e318":
|
|
65686
|
-
/***/ (function(module,
|
|
65669
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
65687
65670
|
|
|
65688
65671
|
"use strict";
|
|
65689
|
-
__webpack_require__.r(
|
|
65690
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VectorMap; });
|
|
65691
|
-
/* harmony import */ var ol_Map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5eee");
|
|
65692
|
-
/* harmony import */ var _mapConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("5c9f");
|
|
65693
|
-
/* harmony import */ var _mapConfig__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_mapConfig__WEBPACK_IMPORTED_MODULE_1__);
|
|
65694
|
-
/* harmony import */ var _lzh__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("b12f");
|
|
65695
|
-
/* harmony import */ var _lzh__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_lzh__WEBPACK_IMPORTED_MODULE_2__);
|
|
65696
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
65697
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
65698
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
65699
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
65700
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
65701
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
65702
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
65703
|
-
});
|
|
65704
|
-
};
|
|
65672
|
+
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;
|
|
65705
65673
|
|
|
65674
|
+
/***/ }),
|
|
65706
65675
|
|
|
65676
|
+
/***/ "e35d":
|
|
65677
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
65707
65678
|
|
|
65708
|
-
|
|
65709
|
-
|
|
65710
|
-
|
|
65711
|
-
|
|
65712
|
-
this._layersMap = new Map();
|
|
65713
|
-
this._view = null;
|
|
65714
|
-
this.modelArr = [];
|
|
65715
|
-
this.isAnalysisBBOX = false;
|
|
65716
|
-
this.isAnalysisCenter = false;
|
|
65717
|
-
this._callback = null;
|
|
65718
|
-
this._layerArr = [];
|
|
65719
|
-
this._isDrag = false;
|
|
65720
|
-
this.isAnalysisBBOX = opt.isAnalysisBBOX;
|
|
65721
|
-
this.isAnalysisCenter = opt.isAnalysisCenter;
|
|
65722
|
-
this._callback = opt.callback;
|
|
65723
|
-
this._isDrag = opt.isDrag;
|
|
65724
|
-
}
|
|
65725
|
-
onLoad(el, model = []) {
|
|
65726
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
65727
|
-
this._ele = el;
|
|
65728
|
-
return yield new Promise((res, rej) => {
|
|
65729
|
-
const map = new ol_Map__WEBPACK_IMPORTED_MODULE_0__["default"](Object.assign({
|
|
65730
|
-
target: el,
|
|
65731
|
-
controls: _mapConfig__WEBPACK_IMPORTED_MODULE_1___default.a.Defaults,
|
|
65732
|
-
interactions: this._isDrag ? null : _mapConfig__WEBPACK_IMPORTED_MODULE_1___default.a.InteractionsDeft,
|
|
65733
|
-
}));
|
|
65734
|
-
this._map = map;
|
|
65735
|
-
this._view = _mapConfig__WEBPACK_IMPORTED_MODULE_1___default.a.getVectorLayerView;
|
|
65736
|
-
this._map.setView(this._view);
|
|
65737
|
-
if (map) {
|
|
65738
|
-
res(map);
|
|
65739
|
-
return;
|
|
65740
|
-
}
|
|
65741
|
-
rej(null);
|
|
65742
|
-
});
|
|
65743
|
-
});
|
|
65744
|
-
}
|
|
65745
|
-
get getLayerMap() {
|
|
65746
|
-
return this._layersMap;
|
|
65747
|
-
}
|
|
65748
|
-
get getLayers() {
|
|
65749
|
-
return this._layerArr;
|
|
65750
|
-
}
|
|
65751
|
-
initLayers(model) {
|
|
65752
|
-
// 创建Map前先清空图层
|
|
65753
|
-
this.removeLayers();
|
|
65754
|
-
this.modelArr = model;
|
|
65755
|
-
let _bbox = [];
|
|
65756
|
-
if (model[0] && model[0].geo) {
|
|
65757
|
-
const g = model[0].geo;
|
|
65758
|
-
_bbox = g.bbox;
|
|
65759
|
-
}
|
|
65760
|
-
model.forEach(r => {
|
|
65761
|
-
const g = r.geo;
|
|
65762
|
-
const bbox = this.analysisBBOX(g);
|
|
65763
|
-
this.createPolygon(r);
|
|
65764
|
-
// _bbox = [..._bbox, ...bbox];
|
|
65765
|
-
if (this._callback) {
|
|
65766
|
-
this._callback(Object.assign(Object.assign({ bbox, center: this.analysisCenter(g) }, this.analysisProperties(g)), { id: r.id }));
|
|
65767
|
-
}
|
|
65768
|
-
});
|
|
65769
|
-
this.fit(_bbox);
|
|
65770
|
-
}
|
|
65771
|
-
createPolygon(model) {
|
|
65772
|
-
const r = model;
|
|
65773
|
-
const layer = Object(_lzh__WEBPACK_IMPORTED_MODULE_2__["createPolygonBoundaryNew"])(r);
|
|
65774
|
-
this._layerArr.push(layer);
|
|
65775
|
-
this._map.addLayer(layer);
|
|
65776
|
-
if (r.id) {
|
|
65777
|
-
r.id.toString();
|
|
65778
|
-
const id = typeof (r.id) == 'string' ? r.id : r.id.toString();
|
|
65779
|
-
this._layersMap.set(id, layer);
|
|
65780
|
-
}
|
|
65781
|
-
}
|
|
65782
|
-
fit(bbox) {
|
|
65783
|
-
this._view.fit(bbox, {
|
|
65784
|
-
padding: [10, 10, 10, 10],
|
|
65785
|
-
nearest: false
|
|
65786
|
-
});
|
|
65787
|
-
}
|
|
65788
|
-
removeLayers() {
|
|
65789
|
-
this._layerArr.forEach(r => {
|
|
65790
|
-
this._map.removeLayer(r);
|
|
65791
|
-
r = null;
|
|
65792
|
-
});
|
|
65793
|
-
this._layersMap.clear();
|
|
65794
|
-
this._layerArr = [];
|
|
65795
|
-
}
|
|
65796
|
-
setPolygonColor(id, colors = ['rgba(255, 255, 255, 0.3)', 'rgba(00, 131, 241, 1)']) {
|
|
65797
|
-
if (this._layersMap.has(id)) {
|
|
65798
|
-
const layer = this._layersMap.get(id);
|
|
65799
|
-
const style = layer.getStyle();
|
|
65800
|
-
const fill = style.getFill();
|
|
65801
|
-
fill.setColor(colors[0]);
|
|
65802
|
-
const stroke = style.getStroke();
|
|
65803
|
-
stroke.setColor(colors[1]);
|
|
65804
|
-
}
|
|
65805
|
-
}
|
|
65806
|
-
get olMap() {
|
|
65807
|
-
return this._map;
|
|
65808
|
-
}
|
|
65809
|
-
get ele() {
|
|
65810
|
-
return this._ele;
|
|
65811
|
-
}
|
|
65812
|
-
analysisGeoJson(geo) {
|
|
65813
|
-
const g = geo;
|
|
65814
|
-
if (!g)
|
|
65815
|
-
return null;
|
|
65816
|
-
const coordinates = geo.geometry ? geo.geometry.coordinates : null;
|
|
65817
|
-
const bbox = geo.bbox ? geo.bbox : null;
|
|
65818
|
-
const properties = geo.properties ? geo.properties : null;
|
|
65819
|
-
return { properties, bbox, coordinates };
|
|
65820
|
-
}
|
|
65821
|
-
analysisBBOX(geo) {
|
|
65822
|
-
const { bbox, coordinates } = this.analysisGeoJson(geo);
|
|
65823
|
-
if (!this.isAnalysisBBOX) {
|
|
65824
|
-
return this.getbbox(coordinates);
|
|
65825
|
-
}
|
|
65826
|
-
return bbox;
|
|
65827
|
-
}
|
|
65828
|
-
analysisCenter(geo) {
|
|
65829
|
-
const { properties, coordinates } = this.analysisGeoJson(geo);
|
|
65830
|
-
if (!this.isAnalysisCenter) {
|
|
65831
|
-
return this.getCenterPoint(coordinates);
|
|
65832
|
-
}
|
|
65833
|
-
if (!properties)
|
|
65834
|
-
return null;
|
|
65835
|
-
const lon = properties.lon ? properties.lon : 0;
|
|
65836
|
-
const lat = properties.lat ? properties.lat : 0;
|
|
65837
|
-
return [lon, lat];
|
|
65838
|
-
}
|
|
65839
|
-
analysisProperties(geo) {
|
|
65840
|
-
const { properties } = this.analysisGeoJson(geo);
|
|
65841
|
-
if (properties) {
|
|
65842
|
-
const code = properties.code || null;
|
|
65843
|
-
const level = properties.level || 0;
|
|
65844
|
-
const name = properties.name || null;
|
|
65845
|
-
const parent_code = properties.parent_code || null;
|
|
65846
|
-
return { code, level, name, parent_code };
|
|
65847
|
-
}
|
|
65848
|
-
return null;
|
|
65849
|
-
}
|
|
65850
|
-
getbbox(coordinates) {
|
|
65851
|
-
const arr = Object(_lzh__WEBPACK_IMPORTED_MODULE_2__["getLngAndLatMaxMin"])(coordinates);
|
|
65852
|
-
return [arr[2], arr[3], arr[0], arr[1]];
|
|
65853
|
-
}
|
|
65854
|
-
getCenterPoint(coordinates) {
|
|
65855
|
-
return Object(_lzh__WEBPACK_IMPORTED_MODULE_2__["getCenterPoint"])(coordinates);
|
|
65856
|
-
}
|
|
65857
|
-
resetSize() {
|
|
65858
|
-
if (this._map) {
|
|
65859
|
-
this.initLayers(this.modelArr);
|
|
65860
|
-
}
|
|
65861
|
-
}
|
|
65862
|
-
}
|
|
65679
|
+
"use strict";
|
|
65680
|
+
/* 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");
|
|
65681
|
+
/* 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__);
|
|
65682
|
+
/* unused harmony reexport * */
|
|
65863
65683
|
|
|
65864
65684
|
|
|
65865
65685
|
/***/ }),
|
|
@@ -67315,7 +67135,7 @@ const float16 = (function (exports) {
|
|
|
67315
67135
|
/***/ (function(module, exports, __webpack_require__) {
|
|
67316
67136
|
|
|
67317
67137
|
"use strict";
|
|
67318
|
-
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
|
|
67138
|
+
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;
|
|
67319
67139
|
|
|
67320
67140
|
/***/ }),
|
|
67321
67141
|
|
|
@@ -69222,6 +69042,13 @@ var ImageCanvas = /** @class */ (function (_super) {
|
|
|
69222
69042
|
|
|
69223
69043
|
/***/ }),
|
|
69224
69044
|
|
|
69045
|
+
/***/ "efd8":
|
|
69046
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
69047
|
+
|
|
69048
|
+
// extracted by mini-css-extract-plugin
|
|
69049
|
+
|
|
69050
|
+
/***/ }),
|
|
69051
|
+
|
|
69225
69052
|
/***/ "efee":
|
|
69226
69053
|
/***/ (function(module, exports, __webpack_require__) {
|
|
69227
69054
|
|
|
@@ -87875,7 +87702,7 @@ if (typeof window !== 'undefined') {
|
|
|
87875
87702
|
// Indicate to webpack that this file can be concatenated
|
|
87876
87703
|
/* harmony default export */ var setPublicPath = (null);
|
|
87877
87704
|
|
|
87878
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
87705
|
+
// 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&
|
|
87879
87706
|
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:{
|
|
87880
87707
|
'left':!_vm.isRight,
|
|
87881
87708
|
'right':_vm.isRight
|
|
@@ -87887,7 +87714,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
87887
87714
|
var staticRenderFns = []
|
|
87888
87715
|
|
|
87889
87716
|
|
|
87890
|
-
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=template&id=
|
|
87717
|
+
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=template&id=dd9c3db0&scoped=true&
|
|
87891
87718
|
|
|
87892
87719
|
// EXTERNAL MODULE: ./node_modules/ol/ol.css
|
|
87893
87720
|
var ol = __webpack_require__("5bc0");
|
|
@@ -87895,9 +87722,13 @@ var ol = __webpack_require__("5bc0");
|
|
|
87895
87722
|
// EXTERNAL MODULE: ./node_modules/ry-map/index.js
|
|
87896
87723
|
var ry_map = __webpack_require__("13e2");
|
|
87897
87724
|
|
|
87725
|
+
// EXTERNAL MODULE: ./node_modules/ol/interaction.js + 19 modules
|
|
87726
|
+
var interaction = __webpack_require__("3a39");
|
|
87727
|
+
|
|
87898
87728
|
// CONCATENATED MODULE: ./src/utils/lMapServices.js
|
|
87899
87729
|
|
|
87900
87730
|
|
|
87731
|
+
|
|
87901
87732
|
class lMapServices_LMapServices {
|
|
87902
87733
|
constructor() {
|
|
87903
87734
|
this.map = null;
|
|
@@ -87946,7 +87777,10 @@ class lMapServices_LMapServices {
|
|
|
87946
87777
|
}) {
|
|
87947
87778
|
if (!this.lmap) {
|
|
87948
87779
|
this.lmap = new ry_map["LMap"]({
|
|
87949
|
-
controls: ry_map["MapConfig"].Defaults
|
|
87780
|
+
controls: ry_map["MapConfig"].Defaults,
|
|
87781
|
+
interactions: Object(interaction["defaults"])({
|
|
87782
|
+
pinchRotate: false
|
|
87783
|
+
})
|
|
87950
87784
|
});
|
|
87951
87785
|
}
|
|
87952
87786
|
|
|
@@ -89062,14 +88896,14 @@ class mapTool_MapToolDto {
|
|
|
89062
88896
|
}
|
|
89063
88897
|
|
|
89064
88898
|
}
|
|
89065
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
88899
|
+
// 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&
|
|
89066
88900
|
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)}
|
|
89067
88901
|
var srcvue_type_template_id_0eda959b_scoped_true_staticRenderFns = []
|
|
89068
88902
|
|
|
89069
88903
|
|
|
89070
88904
|
// CONCATENATED MODULE: ./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=0eda959b&scoped=true&
|
|
89071
88905
|
|
|
89072
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
88906
|
+
// 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&
|
|
89073
88907
|
var srcvue_type_template_id_735d1508_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
89074
88908
|
var srcvue_type_template_id_735d1508_staticRenderFns = []
|
|
89075
88909
|
|
|
@@ -89614,7 +89448,7 @@ var src_component = normalizeComponent(
|
|
|
89614
89448
|
)
|
|
89615
89449
|
|
|
89616
89450
|
/* harmony default export */ var ryMapTool_src = (src_component.exports);
|
|
89617
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
89451
|
+
// 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&
|
|
89618
89452
|
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()}
|
|
89619
89453
|
var newIndexvue_type_template_id_272b1fcc_scoped_true_staticRenderFns = []
|
|
89620
89454
|
|
|
@@ -90279,8 +90113,8 @@ var newIndex_component = normalizeComponent(
|
|
|
90279
90113
|
});
|
|
90280
90114
|
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=script&lang=js&
|
|
90281
90115
|
/* harmony default export */ var maps_ryMap_srcvue_type_script_lang_js_ = (ryMap_srcvue_type_script_lang_js_);
|
|
90282
|
-
// EXTERNAL MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=style&index=0&id=
|
|
90283
|
-
var
|
|
90116
|
+
// EXTERNAL MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=style&index=0&id=dd9c3db0&prod&lang=scss&scoped=true&
|
|
90117
|
+
var srcvue_type_style_index_0_id_dd9c3db0_prod_lang_scss_scoped_true_ = __webpack_require__("e35d");
|
|
90284
90118
|
|
|
90285
90119
|
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue
|
|
90286
90120
|
|
|
@@ -90297,7 +90131,7 @@ var ryMap_src_component = normalizeComponent(
|
|
|
90297
90131
|
staticRenderFns,
|
|
90298
90132
|
false,
|
|
90299
90133
|
null,
|
|
90300
|
-
"
|
|
90134
|
+
"dd9c3db0",
|
|
90301
90135
|
null
|
|
90302
90136
|
|
|
90303
90137
|
)
|
|
@@ -90327,7 +90161,7 @@ ryMapTool_src.install = Vue => {
|
|
|
90327
90161
|
};
|
|
90328
90162
|
|
|
90329
90163
|
/* harmony default export */ var ryMapTool = (ryMapTool_src);
|
|
90330
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
90164
|
+
// 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&
|
|
90331
90165
|
var srcvue_type_template_id_3e8f1c13_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
90332
90166
|
var srcvue_type_template_id_3e8f1c13_staticRenderFns = []
|
|
90333
90167
|
|
|
@@ -90701,7 +90535,7 @@ ryPolygon_src.install = Vue => {
|
|
|
90701
90535
|
};
|
|
90702
90536
|
|
|
90703
90537
|
/* harmony default export */ var ryPolygon = (ryPolygon_src);
|
|
90704
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
90538
|
+
// 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&
|
|
90705
90539
|
var srcvue_type_template_id_669909a7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
90706
90540
|
var srcvue_type_template_id_669909a7_staticRenderFns = []
|
|
90707
90541
|
|
|
@@ -91440,7 +91274,7 @@ ryPolygons_src.install = Vue => {
|
|
|
91440
91274
|
};
|
|
91441
91275
|
|
|
91442
91276
|
/* harmony default export */ var ryPolygons = (ryPolygons_src);
|
|
91443
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
91277
|
+
// 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&
|
|
91444
91278
|
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')}
|
|
91445
91279
|
var srcvue_type_template_id_240ba74a_scoped_true_staticRenderFns = []
|
|
91446
91280
|
|
|
@@ -91753,7 +91587,7 @@ ryClusters_src.install = Vue => {
|
|
|
91753
91587
|
};
|
|
91754
91588
|
|
|
91755
91589
|
/* harmony default export */ var ryClusters = (ryClusters_src);
|
|
91756
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
91590
|
+
// 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&
|
|
91757
91591
|
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')}
|
|
91758
91592
|
var srcvue_type_template_id_64b08b64_scoped_true_staticRenderFns = []
|
|
91759
91593
|
|
|
@@ -91942,7 +91776,7 @@ ryClustersMarker_src.install = Vue => {
|
|
|
91942
91776
|
};
|
|
91943
91777
|
|
|
91944
91778
|
/* harmony default export */ var ryClustersMarker = (ryClustersMarker_src);
|
|
91945
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
91779
|
+
// 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&
|
|
91946
91780
|
var srcvue_type_template_id_2a5ab464_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
91947
91781
|
var srcvue_type_template_id_2a5ab464_staticRenderFns = []
|
|
91948
91782
|
|
|
@@ -92202,12 +92036,12 @@ ryPolygonGeo_src.install = Vue => {
|
|
|
92202
92036
|
};
|
|
92203
92037
|
|
|
92204
92038
|
/* harmony default export */ var ryPolygonGeo = (ryPolygonGeo_src);
|
|
92205
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
92206
|
-
var
|
|
92207
|
-
var
|
|
92039
|
+
// 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&
|
|
92040
|
+
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"})}
|
|
92041
|
+
var srcvue_type_template_id_022af51f_scoped_true_staticRenderFns = []
|
|
92208
92042
|
|
|
92209
92043
|
|
|
92210
|
-
// CONCATENATED MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=template&id=
|
|
92044
|
+
// CONCATENATED MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=template&id=022af51f&scoped=true&
|
|
92211
92045
|
|
|
92212
92046
|
// 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&
|
|
92213
92047
|
//
|
|
@@ -92386,8 +92220,8 @@ var srcvue_type_template_id_c65225ea_scoped_true_staticRenderFns = []
|
|
|
92386
92220
|
});
|
|
92387
92221
|
// CONCATENATED MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=script&lang=js&
|
|
92388
92222
|
/* harmony default export */ var maps_ryVectorMap_srcvue_type_script_lang_js_ = (ryVectorMap_srcvue_type_script_lang_js_);
|
|
92389
|
-
// EXTERNAL MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=style&index=0&id=
|
|
92390
|
-
var
|
|
92223
|
+
// EXTERNAL MODULE: ./src/components/maps/ryVectorMap/src/index.vue?vue&type=style&index=0&id=022af51f&prod&scoped=true&lang=scss&
|
|
92224
|
+
var srcvue_type_style_index_0_id_022af51f_prod_scoped_true_lang_scss_ = __webpack_require__("76f0");
|
|
92391
92225
|
|
|
92392
92226
|
// CONCATENATED MODULE: ./src/components/maps/ryVectorMap/src/index.vue
|
|
92393
92227
|
|
|
@@ -92400,11 +92234,11 @@ var srcvue_type_style_index_0_id_c65225ea_prod_scoped_true_lang_scss_ = __webpac
|
|
|
92400
92234
|
|
|
92401
92235
|
var ryVectorMap_src_component = normalizeComponent(
|
|
92402
92236
|
maps_ryVectorMap_srcvue_type_script_lang_js_,
|
|
92403
|
-
|
|
92404
|
-
|
|
92237
|
+
srcvue_type_template_id_022af51f_scoped_true_render,
|
|
92238
|
+
srcvue_type_template_id_022af51f_scoped_true_staticRenderFns,
|
|
92405
92239
|
false,
|
|
92406
92240
|
null,
|
|
92407
|
-
"
|
|
92241
|
+
"022af51f",
|
|
92408
92242
|
null
|
|
92409
92243
|
|
|
92410
92244
|
)
|
|
@@ -92418,6 +92252,351 @@ ryVectorMap_src.install = Vue => {
|
|
|
92418
92252
|
};
|
|
92419
92253
|
|
|
92420
92254
|
/* harmony default export */ var ryVectorMap = (ryVectorMap_src);
|
|
92255
|
+
// 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&
|
|
92256
|
+
var srcvue_type_template_id_ac85d52a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
92257
|
+
var srcvue_type_template_id_ac85d52a_staticRenderFns = []
|
|
92258
|
+
|
|
92259
|
+
|
|
92260
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=template&id=ac85d52a&
|
|
92261
|
+
|
|
92262
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryLines/ryLines.js
|
|
92263
|
+
|
|
92264
|
+
|
|
92265
|
+
const _lineDto = {
|
|
92266
|
+
color: 'red',
|
|
92267
|
+
width: 2,
|
|
92268
|
+
zIndex: 1
|
|
92269
|
+
};
|
|
92270
|
+
class ryLines_LineDto extends base_Base {
|
|
92271
|
+
constructor(...args) {
|
|
92272
|
+
super(...args);
|
|
92273
|
+
|
|
92274
|
+
_defineProperty(this, "model", {
|
|
92275
|
+
type: Object,
|
|
92276
|
+
default: () => null
|
|
92277
|
+
});
|
|
92278
|
+
|
|
92279
|
+
_defineProperty(this, "linenIsert", {
|
|
92280
|
+
type: Object,
|
|
92281
|
+
default: () => null
|
|
92282
|
+
});
|
|
92283
|
+
|
|
92284
|
+
_defineProperty(this, "isLineFit", {
|
|
92285
|
+
type: Boolean,
|
|
92286
|
+
default: true
|
|
92287
|
+
});
|
|
92288
|
+
|
|
92289
|
+
_defineProperty(this, "lineAppend", {
|
|
92290
|
+
type: Array,
|
|
92291
|
+
default: () => []
|
|
92292
|
+
});
|
|
92293
|
+
|
|
92294
|
+
_defineProperty(this, "startMarkerDto", {
|
|
92295
|
+
type: Object,
|
|
92296
|
+
default: () => null
|
|
92297
|
+
});
|
|
92298
|
+
|
|
92299
|
+
_defineProperty(this, "endMarkerDto", {
|
|
92300
|
+
type: Object,
|
|
92301
|
+
default: () => null
|
|
92302
|
+
});
|
|
92303
|
+
|
|
92304
|
+
_defineProperty(this, "moveMarkerDto", {
|
|
92305
|
+
type: Object,
|
|
92306
|
+
default: () => null
|
|
92307
|
+
});
|
|
92308
|
+
|
|
92309
|
+
_defineProperty(this, "clearLiens", {
|
|
92310
|
+
type: Boolean,
|
|
92311
|
+
default: false
|
|
92312
|
+
});
|
|
92313
|
+
|
|
92314
|
+
_defineProperty(this, "endMarkerPoint", {
|
|
92315
|
+
type: Array,
|
|
92316
|
+
default: () => []
|
|
92317
|
+
});
|
|
92318
|
+
|
|
92319
|
+
_defineProperty(this, "lineDto", {
|
|
92320
|
+
type: Object,
|
|
92321
|
+
default: () => _lineDto
|
|
92322
|
+
});
|
|
92323
|
+
}
|
|
92324
|
+
|
|
92325
|
+
}
|
|
92326
|
+
// 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&
|
|
92327
|
+
//
|
|
92328
|
+
//
|
|
92329
|
+
//
|
|
92330
|
+
|
|
92331
|
+
|
|
92332
|
+
/* harmony default export */ var ryLines_srcvue_type_script_lang_js_ = ({
|
|
92333
|
+
name: 'RyLines',
|
|
92334
|
+
props: { ...new ryLines_LineDto()
|
|
92335
|
+
},
|
|
92336
|
+
|
|
92337
|
+
data() {
|
|
92338
|
+
return {
|
|
92339
|
+
lines: null,
|
|
92340
|
+
checkPoint: null,
|
|
92341
|
+
bbox: [],
|
|
92342
|
+
bboxGCJ02: [],
|
|
92343
|
+
lastType: -1,
|
|
92344
|
+
lastLinesDto: null,
|
|
92345
|
+
moveMarker: null,
|
|
92346
|
+
endMarker: null,
|
|
92347
|
+
startMarker: null,
|
|
92348
|
+
pineArr: [],
|
|
92349
|
+
lastLineX: 0,
|
|
92350
|
+
lastLineY: 0,
|
|
92351
|
+
cachePointArr: new Array(),
|
|
92352
|
+
drawingEnd: false,
|
|
92353
|
+
isFist: true,
|
|
92354
|
+
lastColor: null,
|
|
92355
|
+
am: new ry_map["AM"]()
|
|
92356
|
+
};
|
|
92357
|
+
},
|
|
92358
|
+
|
|
92359
|
+
watch: {
|
|
92360
|
+
model(val) {
|
|
92361
|
+
this.init();
|
|
92362
|
+
},
|
|
92363
|
+
|
|
92364
|
+
linenIsert(val) {
|
|
92365
|
+
if (!this.map || !val) return;
|
|
92366
|
+
|
|
92367
|
+
this._insertLineAndMarker(val);
|
|
92368
|
+
},
|
|
92369
|
+
|
|
92370
|
+
gpsType(val) {},
|
|
92371
|
+
|
|
92372
|
+
clearLiens(val) {
|
|
92373
|
+
if (val) {
|
|
92374
|
+
this.clearLine();
|
|
92375
|
+
}
|
|
92376
|
+
},
|
|
92377
|
+
|
|
92378
|
+
lineAppend(val) {
|
|
92379
|
+
if (val.length > 0 && this.map) {
|
|
92380
|
+
this.appendCoordinate(val);
|
|
92381
|
+
this.setMarkerPoint(this.endMarker, val);
|
|
92382
|
+
}
|
|
92383
|
+
}
|
|
92384
|
+
|
|
92385
|
+
},
|
|
92386
|
+
|
|
92387
|
+
created() {
|
|
92388
|
+
this.init();
|
|
92389
|
+
},
|
|
92390
|
+
|
|
92391
|
+
methods: {
|
|
92392
|
+
init() {
|
|
92393
|
+
if (!this.map) return;
|
|
92394
|
+
this.clearLine();
|
|
92395
|
+
if (!this.model) return;
|
|
92396
|
+
this.lastType = this.gpsType;
|
|
92397
|
+
|
|
92398
|
+
this._insertLineAndMarker(this.model);
|
|
92399
|
+
},
|
|
92400
|
+
|
|
92401
|
+
_insertLineAndMarker(val) {
|
|
92402
|
+
const color = val.color;
|
|
92403
|
+
const arr = val.pointArr;
|
|
92404
|
+
|
|
92405
|
+
if (this.isLineFit) {
|
|
92406
|
+
this.calculateLineBBOX(arr);
|
|
92407
|
+
}
|
|
92408
|
+
|
|
92409
|
+
this.initMarker(arr[0]);
|
|
92410
|
+
|
|
92411
|
+
if (!val.isAppend || !this.pineArr.length) {
|
|
92412
|
+
this._insertPoint(val);
|
|
92413
|
+
|
|
92414
|
+
const line = this.createPolyline(val);
|
|
92415
|
+
const len = arr.length - 1;
|
|
92416
|
+
this.setMarkerPoint(this.endMarker, arr[len]);
|
|
92417
|
+
this.restLastData(arr);
|
|
92418
|
+
this.pineArr.push(line);
|
|
92419
|
+
return;
|
|
92420
|
+
}
|
|
92421
|
+
|
|
92422
|
+
arr.forEach(r => {
|
|
92423
|
+
this.appendCoordinate(r);
|
|
92424
|
+
});
|
|
92425
|
+
const len = arr.length - 1;
|
|
92426
|
+
this.setMarkerPoint(this.endMarker, arr[len]);
|
|
92427
|
+
this.restLastData(arr);
|
|
92428
|
+
},
|
|
92429
|
+
|
|
92430
|
+
async calculateLineBBOX(arr) {
|
|
92431
|
+
return await new Promise(r => {
|
|
92432
|
+
arr.forEach(r => {
|
|
92433
|
+
this.am.getLngAndLatMaxMin({
|
|
92434
|
+
X: r[0],
|
|
92435
|
+
Y: r[1]
|
|
92436
|
+
});
|
|
92437
|
+
});
|
|
92438
|
+
const amGpsArr = this.am.getLngLats();
|
|
92439
|
+
Object(ry_map["fitNew"])(this.map, [[amGpsArr[0], amGpsArr[1]], [amGpsArr[2], amGpsArr[3]]]);
|
|
92440
|
+
r();
|
|
92441
|
+
});
|
|
92442
|
+
},
|
|
92443
|
+
|
|
92444
|
+
initMarker(arr) {
|
|
92445
|
+
if (!this.startMarkerDto && !this.endMarkerDto) return;
|
|
92446
|
+
|
|
92447
|
+
if (!this.startMarker && !this.endMarker) {
|
|
92448
|
+
this.startMarker = this.createStartMarker(this.startMarkerDto, arr);
|
|
92449
|
+
this.endMarker = this.createStartMarker(this.endMarkerDto);
|
|
92450
|
+
}
|
|
92451
|
+
},
|
|
92452
|
+
|
|
92453
|
+
setMarkerPoint(marker, points) {
|
|
92454
|
+
if (marker && points.length > 1) {
|
|
92455
|
+
marker.setPosition(points, this.gpsType);
|
|
92456
|
+
}
|
|
92457
|
+
},
|
|
92458
|
+
|
|
92459
|
+
restLastData(arr) {
|
|
92460
|
+
if (arr.length > 0) {
|
|
92461
|
+
const [x, y] = arr[arr.length - 1];
|
|
92462
|
+
this.lastLineX = x;
|
|
92463
|
+
this.lastLineY = y;
|
|
92464
|
+
}
|
|
92465
|
+
},
|
|
92466
|
+
|
|
92467
|
+
_insertPoint(val) {
|
|
92468
|
+
if (this.lastLineX > 0 && this.lastLineY > 0 && val) {
|
|
92469
|
+
val.pointArr.unshift([this.lastLineX, this.lastLineY]);
|
|
92470
|
+
}
|
|
92471
|
+
},
|
|
92472
|
+
|
|
92473
|
+
createPolyline(polylineModel = {
|
|
92474
|
+
color: 'rgb(0,0,255)',
|
|
92475
|
+
width: 2,
|
|
92476
|
+
pointArr: [],
|
|
92477
|
+
zIndex: 1000
|
|
92478
|
+
}) {
|
|
92479
|
+
return new ry_map["Polyline"]({ ...polylineModel,
|
|
92480
|
+
type: this.gpsType
|
|
92481
|
+
}, this.map);
|
|
92482
|
+
},
|
|
92483
|
+
|
|
92484
|
+
createStartMarker({
|
|
92485
|
+
offset,
|
|
92486
|
+
url,
|
|
92487
|
+
width,
|
|
92488
|
+
height
|
|
92489
|
+
}, points = []) {
|
|
92490
|
+
const marker = new ry_map["LMarker"](url, width, height);
|
|
92491
|
+
marker.setOffset(offset);
|
|
92492
|
+
|
|
92493
|
+
if (points.length) {
|
|
92494
|
+
marker.setPosition(points, this.gpsType);
|
|
92495
|
+
}
|
|
92496
|
+
|
|
92497
|
+
this.map.addOverlay(marker.getMarker());
|
|
92498
|
+
return marker;
|
|
92499
|
+
},
|
|
92500
|
+
|
|
92501
|
+
getLngLatGCJ02(pointArr) {
|
|
92502
|
+
const arr = [];
|
|
92503
|
+
pointArr.forEach(r => {
|
|
92504
|
+
const {
|
|
92505
|
+
lon,
|
|
92506
|
+
lat
|
|
92507
|
+
} = ry_map["GPS"].gcj_encrypt(r[0], r[1]);
|
|
92508
|
+
arr.push([lon, lat]);
|
|
92509
|
+
});
|
|
92510
|
+
return arr;
|
|
92511
|
+
},
|
|
92512
|
+
|
|
92513
|
+
removeLines() {
|
|
92514
|
+
this.pineArr.forEach(val => {
|
|
92515
|
+
val.removePolyline();
|
|
92516
|
+
});
|
|
92517
|
+
this.pineArr = [];
|
|
92518
|
+
},
|
|
92519
|
+
|
|
92520
|
+
removeLineMarker() {
|
|
92521
|
+
if (!this.map) return;
|
|
92522
|
+
|
|
92523
|
+
if (this.endMarker) {
|
|
92524
|
+
this.map.removeOverlay(this.endMarker.getMarker());
|
|
92525
|
+
}
|
|
92526
|
+
|
|
92527
|
+
if (this.startMarker) {
|
|
92528
|
+
this.map.removeOverlay(this.startMarker.getMarker());
|
|
92529
|
+
}
|
|
92530
|
+
|
|
92531
|
+
if (this.moveMarker) {
|
|
92532
|
+
this.map.removeOverlay(this.moveMarker.getMarker());
|
|
92533
|
+
}
|
|
92534
|
+
|
|
92535
|
+
this.moveMarker = null;
|
|
92536
|
+
this.endMarker = null;
|
|
92537
|
+
this.startMarker = null;
|
|
92538
|
+
},
|
|
92539
|
+
|
|
92540
|
+
clearLine() {
|
|
92541
|
+
this.removeLines();
|
|
92542
|
+
this.removeLineMarker();
|
|
92543
|
+
this.cachePointArr = [];
|
|
92544
|
+
this.lastColor = null;
|
|
92545
|
+
this.lastLineX = 0;
|
|
92546
|
+
this.lastLineY = 0;
|
|
92547
|
+
this.am = null;
|
|
92548
|
+
this.am = new ry_map["AM"]();
|
|
92549
|
+
},
|
|
92550
|
+
|
|
92551
|
+
appendCoordinate(coordinate = []) {
|
|
92552
|
+
if (!coordinate.length) return;
|
|
92553
|
+
|
|
92554
|
+
if (!this.pineArr.length) {
|
|
92555
|
+
this._insertLineAndMarker({ ...this.lineDto,
|
|
92556
|
+
pointArr: [coordinate],
|
|
92557
|
+
isAppend: false
|
|
92558
|
+
});
|
|
92559
|
+
}
|
|
92560
|
+
|
|
92561
|
+
;
|
|
92562
|
+
const line = this.pineArr[this.pineArr.length - 1];
|
|
92563
|
+
line.appendCoordinate(coordinate);
|
|
92564
|
+
},
|
|
92565
|
+
|
|
92566
|
+
selectGPSAll(type) {}
|
|
92567
|
+
|
|
92568
|
+
}
|
|
92569
|
+
});
|
|
92570
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=script&lang=js&
|
|
92571
|
+
/* harmony default export */ var maps_ryLines_srcvue_type_script_lang_js_ = (ryLines_srcvue_type_script_lang_js_);
|
|
92572
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue
|
|
92573
|
+
|
|
92574
|
+
|
|
92575
|
+
|
|
92576
|
+
|
|
92577
|
+
|
|
92578
|
+
/* normalize component */
|
|
92579
|
+
|
|
92580
|
+
var ryLines_src_component = normalizeComponent(
|
|
92581
|
+
maps_ryLines_srcvue_type_script_lang_js_,
|
|
92582
|
+
srcvue_type_template_id_ac85d52a_render,
|
|
92583
|
+
srcvue_type_template_id_ac85d52a_staticRenderFns,
|
|
92584
|
+
false,
|
|
92585
|
+
null,
|
|
92586
|
+
null,
|
|
92587
|
+
null
|
|
92588
|
+
|
|
92589
|
+
)
|
|
92590
|
+
|
|
92591
|
+
/* harmony default export */ var ryLines_src = (ryLines_src_component.exports);
|
|
92592
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/index.js
|
|
92593
|
+
|
|
92594
|
+
|
|
92595
|
+
ryLines_src.install = Vue => {
|
|
92596
|
+
Vue.install(ryLines_src.name, ryLines_src);
|
|
92597
|
+
};
|
|
92598
|
+
|
|
92599
|
+
/* harmony default export */ var ryLines = (ryLines_src);
|
|
92421
92600
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
92422
92601
|
|
|
92423
92602
|
|
|
@@ -92427,10 +92606,11 @@ ryVectorMap_src.install = Vue => {
|
|
|
92427
92606
|
|
|
92428
92607
|
|
|
92429
92608
|
|
|
92609
|
+
|
|
92430
92610
|
// import "./fonts/iconfont.css";
|
|
92431
92611
|
// 组件列表
|
|
92432
92612
|
|
|
92433
|
-
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap]; // 定义install
|
|
92613
|
+
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap, ryLines]; // 定义install
|
|
92434
92614
|
|
|
92435
92615
|
const install = (Vue, options) => {
|
|
92436
92616
|
// 遍历注册全局组件
|