ry-vue-map 0.2.7 → 0.2.9
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/lib/ryui.common.js +1066 -155
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.css.gz +0 -0
- package/lib/ryui.umd.js +1066 -155
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +3 -3
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/assets/mask.png +0 -0
- package/src/assets/play.png +0 -0
- package/src/assets/stop.png +0 -0
- package/src/components/index.js +20 -1
- package/src/components/maps/models/ryLines/ryLines.js +17 -1
- package/src/components/maps/models/ryPolygons/ryPolygons.js +8 -101
- package/src/components/maps/models/ryStaticLayer/index.js +29 -0
- package/src/components/maps/models/ryStaticLayers/index.js +45 -0
- package/src/components/maps/ryKML/src/index.vue +1 -1
- package/src/components/maps/ryLines/src/index.scss +115 -0
- package/src/components/maps/ryLines/src/index.vue +378 -26
- package/src/components/maps/ryStaticLayer/index.js +7 -0
- package/src/components/maps/ryStaticLayer/src/index.vue +154 -0
- package/src/components/maps/ryStaticLayers/index.js +7 -0
- package/src/components/maps/ryStaticLayers/src/index.vue +213 -0
- package/src/components/maps/switchMap/src/newIndex.vue +0 -1
- package/src/views/map/index.vue +405 -113
package/lib/ryui.common.js
CHANGED
|
@@ -4429,6 +4429,13 @@ var _interopRequireDefault=__webpack_require__("4ea4"),_createClass2=(Object.def
|
|
|
4429
4429
|
|
|
4430
4430
|
/***/ }),
|
|
4431
4431
|
|
|
4432
|
+
/***/ "1810":
|
|
4433
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4434
|
+
|
|
4435
|
+
// extracted by mini-css-extract-plugin
|
|
4436
|
+
|
|
4437
|
+
/***/ }),
|
|
4438
|
+
|
|
4432
4439
|
/***/ "183a":
|
|
4433
4440
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4434
4441
|
|
|
@@ -16116,6 +16123,17 @@ var RenderEvent = /** @class */ (function (_super) {
|
|
|
16116
16123
|
/* harmony default export */ __webpack_exports__["a"] = (RenderEvent);
|
|
16117
16124
|
//# sourceMappingURL=Event.js.map
|
|
16118
16125
|
|
|
16126
|
+
/***/ }),
|
|
16127
|
+
|
|
16128
|
+
/***/ "3391":
|
|
16129
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16130
|
+
|
|
16131
|
+
"use strict";
|
|
16132
|
+
/* 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_75840f3c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1810");
|
|
16133
|
+
/* 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_75840f3c_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_75840f3c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
16134
|
+
/* unused harmony reexport * */
|
|
16135
|
+
|
|
16136
|
+
|
|
16119
16137
|
/***/ }),
|
|
16120
16138
|
|
|
16121
16139
|
/***/ "345d":
|
|
@@ -25604,6 +25622,13 @@ function zoomByDelta(view, delta, opt_anchor, opt_duration) {
|
|
|
25604
25622
|
|
|
25605
25623
|
/***/ }),
|
|
25606
25624
|
|
|
25625
|
+
/***/ "4409":
|
|
25626
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
25627
|
+
|
|
25628
|
+
// extracted by mini-css-extract-plugin
|
|
25629
|
+
|
|
25630
|
+
/***/ }),
|
|
25631
|
+
|
|
25607
25632
|
/***/ "448a":
|
|
25608
25633
|
/***/ (function(module, exports, __webpack_require__) {
|
|
25609
25634
|
|
|
@@ -25623,13 +25648,6 @@ module.exports = _toConsumableArray, module.exports.__esModule = true, module.ex
|
|
|
25623
25648
|
|
|
25624
25649
|
/***/ }),
|
|
25625
25650
|
|
|
25626
|
-
/***/ "44d5":
|
|
25627
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
25628
|
-
|
|
25629
|
-
// extracted by mini-css-extract-plugin
|
|
25630
|
-
|
|
25631
|
-
/***/ }),
|
|
25632
|
-
|
|
25633
25651
|
/***/ "47e4":
|
|
25634
25652
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
25635
25653
|
|
|
@@ -66279,17 +66297,6 @@ function cloneGeometries(geometries) {
|
|
|
66279
66297
|
/* harmony default export */ __webpack_exports__["a"] = (GeometryCollection);
|
|
66280
66298
|
//# sourceMappingURL=GeometryCollection.js.map
|
|
66281
66299
|
|
|
66282
|
-
/***/ }),
|
|
66283
|
-
|
|
66284
|
-
/***/ "d8bd":
|
|
66285
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
66286
|
-
|
|
66287
|
-
"use strict";
|
|
66288
|
-
/* 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_newIndex_vue_vue_type_style_index_0_id_bb9d499c_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("44d5");
|
|
66289
|
-
/* 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_newIndex_vue_vue_type_style_index_0_id_bb9d499c_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_newIndex_vue_vue_type_style_index_0_id_bb9d499c_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
66290
|
-
/* unused harmony reexport * */
|
|
66291
|
-
|
|
66292
|
-
|
|
66293
66300
|
/***/ }),
|
|
66294
66301
|
|
|
66295
66302
|
/***/ "da2f":
|
|
@@ -73932,6 +73939,17 @@ var VectorContext = /** @class */ (function () {
|
|
|
73932
73939
|
/* harmony default export */ __webpack_exports__["a"] = (VectorContext);
|
|
73933
73940
|
//# sourceMappingURL=VectorContext.js.map
|
|
73934
73941
|
|
|
73942
|
+
/***/ }),
|
|
73943
|
+
|
|
73944
|
+
/***/ "f7d8":
|
|
73945
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
73946
|
+
|
|
73947
|
+
"use strict";
|
|
73948
|
+
/* 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_newIndex_vue_vue_type_style_index_0_id_10ed49d6_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4409");
|
|
73949
|
+
/* 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_newIndex_vue_vue_type_style_index_0_id_10ed49d6_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_newIndex_vue_vue_type_style_index_0_id_10ed49d6_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
73950
|
+
/* unused harmony reexport * */
|
|
73951
|
+
|
|
73952
|
+
|
|
73935
73953
|
/***/ }),
|
|
73936
73954
|
|
|
73937
73955
|
/***/ "f8b5":
|
|
@@ -91625,7 +91643,7 @@ if (typeof window !== 'undefined') {
|
|
|
91625
91643
|
// Indicate to webpack that this file can be concatenated
|
|
91626
91644
|
/* harmony default export */ var setPublicPath = (null);
|
|
91627
91645
|
|
|
91628
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
91646
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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=2da723f6&scoped=true&
|
|
91629
91647
|
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:{
|
|
91630
91648
|
'left':!_vm.isRight,
|
|
91631
91649
|
'right':_vm.isRight
|
|
@@ -92869,14 +92887,14 @@ class mapTool_MapToolDto {
|
|
|
92869
92887
|
}
|
|
92870
92888
|
|
|
92871
92889
|
}
|
|
92872
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
92890
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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=5b062201&scoped=true&
|
|
92873
92891
|
var srcvue_type_template_id_5b062201_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)}
|
|
92874
92892
|
var srcvue_type_template_id_5b062201_scoped_true_staticRenderFns = []
|
|
92875
92893
|
|
|
92876
92894
|
|
|
92877
92895
|
// CONCATENATED MODULE: ./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=5b062201&scoped=true&
|
|
92878
92896
|
|
|
92879
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
92897
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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&
|
|
92880
92898
|
var srcvue_type_template_id_735d1508_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
92881
92899
|
var srcvue_type_template_id_735d1508_staticRenderFns = []
|
|
92882
92900
|
|
|
@@ -93421,12 +93439,12 @@ var src_component = normalizeComponent(
|
|
|
93421
93439
|
)
|
|
93422
93440
|
|
|
93423
93441
|
/* harmony default export */ var ryMapTool_src = (src_component.exports);
|
|
93424
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
93425
|
-
var
|
|
93426
|
-
var
|
|
93442
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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=10ed49d6&scoped=true&
|
|
93443
|
+
var newIndexvue_type_template_id_10ed49d6_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()}
|
|
93444
|
+
var newIndexvue_type_template_id_10ed49d6_scoped_true_staticRenderFns = []
|
|
93427
93445
|
|
|
93428
93446
|
|
|
93429
|
-
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=
|
|
93447
|
+
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=10ed49d6&scoped=true&
|
|
93430
93448
|
|
|
93431
93449
|
// CONCATENATED MODULE: ./src/components/maps/models/switchMap/switchMap.js
|
|
93432
93450
|
|
|
@@ -93571,7 +93589,6 @@ class switchMap_MapToolDto {
|
|
|
93571
93589
|
// },
|
|
93572
93590
|
mapTypeAndLayer: {
|
|
93573
93591
|
handler(e) {
|
|
93574
|
-
console.log('111111');
|
|
93575
93592
|
if (!Array.isArray(e) || !e[1]) return;
|
|
93576
93593
|
e.forEach((r, index) => {
|
|
93577
93594
|
if (index === 1 && !this.switchMapDefaultTypeOrLayer) {
|
|
@@ -93731,8 +93748,8 @@ class switchMap_MapToolDto {
|
|
|
93731
93748
|
});
|
|
93732
93749
|
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=script&lang=js&
|
|
93733
93750
|
/* harmony default export */ var src_newIndexvue_type_script_lang_js_ = (newIndexvue_type_script_lang_js_);
|
|
93734
|
-
// EXTERNAL MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=style&index=0&id=
|
|
93735
|
-
var
|
|
93751
|
+
// EXTERNAL MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=style&index=0&id=10ed49d6&prod&scoped=true&lang=scss&
|
|
93752
|
+
var newIndexvue_type_style_index_0_id_10ed49d6_prod_scoped_true_lang_scss_ = __webpack_require__("f7d8");
|
|
93736
93753
|
|
|
93737
93754
|
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue
|
|
93738
93755
|
|
|
@@ -93745,11 +93762,11 @@ var newIndexvue_type_style_index_0_id_bb9d499c_prod_scoped_true_lang_scss_ = __w
|
|
|
93745
93762
|
|
|
93746
93763
|
var newIndex_component = normalizeComponent(
|
|
93747
93764
|
src_newIndexvue_type_script_lang_js_,
|
|
93748
|
-
|
|
93749
|
-
|
|
93765
|
+
newIndexvue_type_template_id_10ed49d6_scoped_true_render,
|
|
93766
|
+
newIndexvue_type_template_id_10ed49d6_scoped_true_staticRenderFns,
|
|
93750
93767
|
false,
|
|
93751
93768
|
null,
|
|
93752
|
-
"
|
|
93769
|
+
"10ed49d6",
|
|
93753
93770
|
null
|
|
93754
93771
|
|
|
93755
93772
|
)
|
|
@@ -94156,7 +94173,7 @@ ryMapTool_src.install = Vue => {
|
|
|
94156
94173
|
};
|
|
94157
94174
|
|
|
94158
94175
|
/* harmony default export */ var ryMapTool = (ryMapTool_src);
|
|
94159
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
94176
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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&
|
|
94160
94177
|
var srcvue_type_template_id_3e8f1c13_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
94161
94178
|
var srcvue_type_template_id_3e8f1c13_staticRenderFns = []
|
|
94162
94179
|
|
|
@@ -94530,7 +94547,7 @@ ryPolygon_src.install = Vue => {
|
|
|
94530
94547
|
};
|
|
94531
94548
|
|
|
94532
94549
|
/* harmony default export */ var ryPolygon = (ryPolygon_src);
|
|
94533
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
94550
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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=bd05c456&
|
|
94534
94551
|
var srcvue_type_template_id_bd05c456_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
94535
94552
|
var srcvue_type_template_id_bd05c456_staticRenderFns = []
|
|
94536
94553
|
|
|
@@ -94540,104 +94557,29 @@ var srcvue_type_template_id_bd05c456_staticRenderFns = []
|
|
|
94540
94557
|
// CONCATENATED MODULE: ./src/components/maps/models/ryPolygons/ryPolygons.js
|
|
94541
94558
|
|
|
94542
94559
|
|
|
94543
|
-
class
|
|
94560
|
+
class ryPolygons_RyKMLDto extends base_Base {
|
|
94544
94561
|
constructor(...args) {
|
|
94545
94562
|
super(...args);
|
|
94546
94563
|
|
|
94547
|
-
_defineProperty(this, "
|
|
94548
|
-
type: Array,
|
|
94549
|
-
default: () => []
|
|
94550
|
-
});
|
|
94551
|
-
|
|
94552
|
-
_defineProperty(this, "insert", {
|
|
94553
|
-
type: Object,
|
|
94554
|
-
default: () => null
|
|
94555
|
-
});
|
|
94556
|
-
|
|
94557
|
-
_defineProperty(this, "inserts", {
|
|
94564
|
+
_defineProperty(this, "model", {
|
|
94558
94565
|
type: Array,
|
|
94559
94566
|
default: () => []
|
|
94560
94567
|
});
|
|
94561
94568
|
|
|
94562
|
-
_defineProperty(this, "
|
|
94563
|
-
type: Boolean,
|
|
94564
|
-
default: true
|
|
94565
|
-
});
|
|
94566
|
-
|
|
94567
|
-
_defineProperty(this, "isShowPolygon", {
|
|
94569
|
+
_defineProperty(this, "isShow", {
|
|
94568
94570
|
type: Object,
|
|
94569
94571
|
default: () => null
|
|
94570
94572
|
});
|
|
94571
94573
|
|
|
94572
|
-
_defineProperty(this, "isShowPolygons", {
|
|
94573
|
-
type: Array,
|
|
94574
|
-
default: () => []
|
|
94575
|
-
});
|
|
94576
|
-
|
|
94577
94574
|
_defineProperty(this, "clear", {
|
|
94578
94575
|
type: Boolean,
|
|
94579
94576
|
default: false
|
|
94580
94577
|
});
|
|
94581
94578
|
|
|
94582
|
-
_defineProperty(this, "isCheckPointHideAll", {
|
|
94583
|
-
type: Boolean,
|
|
94584
|
-
default: false
|
|
94585
|
-
});
|
|
94586
|
-
|
|
94587
|
-
_defineProperty(this, "isCheckPointHide", {
|
|
94588
|
-
type: Object,
|
|
94589
|
-
default: () => null
|
|
94590
|
-
});
|
|
94591
|
-
|
|
94592
|
-
_defineProperty(this, "isCheckPointHides", {
|
|
94593
|
-
type: Array,
|
|
94594
|
-
default: () => []
|
|
94595
|
-
});
|
|
94596
|
-
|
|
94597
|
-
_defineProperty(this, "polygonColor", {
|
|
94598
|
-
type: Object,
|
|
94599
|
-
default: () => null
|
|
94600
|
-
});
|
|
94601
|
-
|
|
94602
|
-
_defineProperty(this, "polygonColors", {
|
|
94603
|
-
type: Array,
|
|
94604
|
-
default: () => []
|
|
94605
|
-
});
|
|
94606
|
-
|
|
94607
|
-
_defineProperty(this, "text", {
|
|
94608
|
-
type: Object,
|
|
94609
|
-
default: () => null
|
|
94610
|
-
});
|
|
94611
|
-
|
|
94612
94579
|
_defineProperty(this, "isFit", {
|
|
94613
94580
|
type: Boolean,
|
|
94614
94581
|
default: true
|
|
94615
94582
|
});
|
|
94616
|
-
|
|
94617
|
-
_defineProperty(this, "remove", {
|
|
94618
|
-
type: [String, Number, Object],
|
|
94619
|
-
default: () => null
|
|
94620
|
-
});
|
|
94621
|
-
|
|
94622
|
-
_defineProperty(this, "removes", {
|
|
94623
|
-
type: Array,
|
|
94624
|
-
default: () => []
|
|
94625
|
-
});
|
|
94626
|
-
|
|
94627
|
-
_defineProperty(this, "ranges", {
|
|
94628
|
-
type: Array,
|
|
94629
|
-
default: () => []
|
|
94630
|
-
});
|
|
94631
|
-
|
|
94632
|
-
_defineProperty(this, "range", {
|
|
94633
|
-
type: [String, Number, Object],
|
|
94634
|
-
default: () => null
|
|
94635
|
-
});
|
|
94636
|
-
|
|
94637
|
-
_defineProperty(this, "restFit", {
|
|
94638
|
-
type: Boolean,
|
|
94639
|
-
default: false
|
|
94640
|
-
});
|
|
94641
94583
|
}
|
|
94642
94584
|
|
|
94643
94585
|
}
|
|
@@ -94649,7 +94591,7 @@ class ryPolygons_PolygonsDto extends base_Base {
|
|
|
94649
94591
|
|
|
94650
94592
|
/* harmony default export */ var ryPolygons_srcvue_type_script_lang_js_ = ({
|
|
94651
94593
|
name: 'RyPolygons',
|
|
94652
|
-
props: { ...new
|
|
94594
|
+
props: { ...new ryPolygons_RyKMLDto()
|
|
94653
94595
|
},
|
|
94654
94596
|
|
|
94655
94597
|
data() {
|
|
@@ -95269,7 +95211,7 @@ ryPolygons_src.install = Vue => {
|
|
|
95269
95211
|
};
|
|
95270
95212
|
|
|
95271
95213
|
/* harmony default export */ var ryPolygons = (ryPolygons_src);
|
|
95272
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95214
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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=148ba5e7&scoped=true&
|
|
95273
95215
|
var srcvue_type_template_id_148ba5e7_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
|
|
95274
95216
|
var srcvue_type_template_id_148ba5e7_scoped_true_staticRenderFns = []
|
|
95275
95217
|
|
|
@@ -95583,7 +95525,7 @@ ryClusters_src.install = Vue => {
|
|
|
95583
95525
|
};
|
|
95584
95526
|
|
|
95585
95527
|
/* harmony default export */ var ryClusters = (ryClusters_src);
|
|
95586
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95528
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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&
|
|
95587
95529
|
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')}
|
|
95588
95530
|
var srcvue_type_template_id_64b08b64_scoped_true_staticRenderFns = []
|
|
95589
95531
|
|
|
@@ -95772,7 +95714,7 @@ ryClustersMarker_src.install = Vue => {
|
|
|
95772
95714
|
};
|
|
95773
95715
|
|
|
95774
95716
|
/* harmony default export */ var ryClustersMarker = (ryClustersMarker_src);
|
|
95775
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95717
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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&
|
|
95776
95718
|
var srcvue_type_template_id_2a5ab464_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
95777
95719
|
var srcvue_type_template_id_2a5ab464_staticRenderFns = []
|
|
95778
95720
|
|
|
@@ -96032,7 +95974,7 @@ ryPolygonGeo_src.install = Vue => {
|
|
|
96032
95974
|
};
|
|
96033
95975
|
|
|
96034
95976
|
/* harmony default export */ var ryPolygonGeo = (ryPolygonGeo_src);
|
|
96035
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95977
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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=38afeddc&scoped=true&
|
|
96036
95978
|
var srcvue_type_template_id_38afeddc_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"})}
|
|
96037
95979
|
var srcvue_type_template_id_38afeddc_scoped_true_staticRenderFns = []
|
|
96038
95980
|
|
|
@@ -96248,12 +96190,12 @@ ryVectorMap_src.install = Vue => {
|
|
|
96248
96190
|
};
|
|
96249
96191
|
|
|
96250
96192
|
/* harmony default export */ var ryVectorMap = (ryVectorMap_src);
|
|
96251
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
96252
|
-
var
|
|
96253
|
-
var
|
|
96193
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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=75840f3c&scoped=true&
|
|
96194
|
+
var srcvue_type_template_id_75840f3c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isShowPlayback)?_c('div',{staticClass:"el-slider-box"},[_c('el-row',{attrs:{"type":"flex","justify":"center"}},[_c('el-col',{attrs:{"span":1}},[(!_vm.index || !_vm.isStop)?_c('button',{staticClass:"button-paly",on:{"click":function($event){$event.stopPropagation();return _vm.onPlayTrajectory()}}}):_c('button',{staticClass:"button-stop",on:{"click":function($event){$event.stopPropagation();return _vm.onStopTrajectory()}}})]),_c('el-col',{attrs:{"xs":13,"sm":19,"md":19,"lg":19,"xl":23}},[_c('el-slider',{attrs:{"marks":_vm.marks,"show-tooltip":"","step":1,"min":0,"max":_vm.cacheArr.length,"format-tooltip":_vm.formatTooltip},on:{"change":_vm.sliderChange},model:{value:(_vm.index),callback:function ($$v) {_vm.index=$$v},expression:"index"}})],1)],1),_c('el-row',{attrs:{"type":"flex","justify":"end"}},[_c('el-col',[_c('section',{staticClass:"control-panel"},[_c('span',[_vm._v("播放倍速:")]),_c('span',{class:{ active: _vm.selectActive[0] },on:{"click":function($event){$event.stopPropagation();return _vm.onPlaySpeed(0, 200)}}},[_vm._v("0.5x")]),_c('span',{class:{ active: _vm.selectActive[1] },on:{"click":function($event){$event.stopPropagation();return _vm.onPlaySpeed(1, 100)}}},[_vm._v("正常")]),_c('span',{class:{ active: _vm.selectActive[2] },on:{"click":function($event){$event.stopPropagation();return _vm.onPlaySpeed(2, 50)}}},[_vm._v("1.5x")]),_c('span',{class:{ active: _vm.selectActive[3] },on:{"click":function($event){$event.stopPropagation();return _vm.onPlaySpeed(3, 5)}}},[_vm._v("2.0x")])])])],1)],1):_vm._e()])}
|
|
96195
|
+
var srcvue_type_template_id_75840f3c_scoped_true_staticRenderFns = []
|
|
96254
96196
|
|
|
96255
96197
|
|
|
96256
|
-
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=template&id=
|
|
96198
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=template&id=75840f3c&scoped=true&
|
|
96257
96199
|
|
|
96258
96200
|
// CONCATENATED MODULE: ./src/components/maps/models/ryLines/ryLines.js
|
|
96259
96201
|
|
|
@@ -96282,6 +96224,11 @@ class ryLines_LineDto extends base_Base {
|
|
|
96282
96224
|
default: true
|
|
96283
96225
|
});
|
|
96284
96226
|
|
|
96227
|
+
_defineProperty(this, "isShowPlayback", {
|
|
96228
|
+
type: Boolean,
|
|
96229
|
+
default: false
|
|
96230
|
+
});
|
|
96231
|
+
|
|
96285
96232
|
_defineProperty(this, "lineAppend", {
|
|
96286
96233
|
type: Array,
|
|
96287
96234
|
default: () => []
|
|
@@ -96323,6 +96270,32 @@ class ryLines_LineDto extends base_Base {
|
|
|
96323
96270
|
//
|
|
96324
96271
|
//
|
|
96325
96272
|
//
|
|
96273
|
+
//
|
|
96274
|
+
//
|
|
96275
|
+
//
|
|
96276
|
+
//
|
|
96277
|
+
//
|
|
96278
|
+
//
|
|
96279
|
+
//
|
|
96280
|
+
//
|
|
96281
|
+
//
|
|
96282
|
+
//
|
|
96283
|
+
//
|
|
96284
|
+
//
|
|
96285
|
+
//
|
|
96286
|
+
//
|
|
96287
|
+
//
|
|
96288
|
+
//
|
|
96289
|
+
//
|
|
96290
|
+
//
|
|
96291
|
+
//
|
|
96292
|
+
//
|
|
96293
|
+
//
|
|
96294
|
+
//
|
|
96295
|
+
//
|
|
96296
|
+
//
|
|
96297
|
+
//
|
|
96298
|
+
//
|
|
96326
96299
|
|
|
96327
96300
|
|
|
96328
96301
|
/* harmony default export */ var ryLines_srcvue_type_script_lang_js_ = ({
|
|
@@ -96344,26 +96317,49 @@ class ryLines_LineDto extends base_Base {
|
|
|
96344
96317
|
pineArr: [],
|
|
96345
96318
|
lastLineX: 0,
|
|
96346
96319
|
lastLineY: 0,
|
|
96347
|
-
|
|
96348
|
-
|
|
96320
|
+
lastLineX2: 0,
|
|
96321
|
+
lastLineY2: 0,
|
|
96322
|
+
cacheArr: new Array(),
|
|
96323
|
+
cacheModelArr: new Map(),
|
|
96324
|
+
cacheColors: new Map(),
|
|
96325
|
+
cacheLenArr: new Array(),
|
|
96326
|
+
cacheLines: new Array(),
|
|
96327
|
+
cacheLineMaps: new Map(),
|
|
96328
|
+
cacheScales: new Array(),
|
|
96349
96329
|
isFist: true,
|
|
96350
96330
|
lastColor: null,
|
|
96351
|
-
|
|
96331
|
+
len: 0,
|
|
96332
|
+
am: new ry_map["AM"](),
|
|
96333
|
+
index: 0,
|
|
96334
|
+
intervalId: null,
|
|
96335
|
+
selectActive: [false, true, false, false],
|
|
96336
|
+
marks: {},
|
|
96337
|
+
marks2: {},
|
|
96338
|
+
// 轨迹回放
|
|
96339
|
+
isPlayback: false,
|
|
96340
|
+
// 暂停轨迹回放
|
|
96341
|
+
isStop: false,
|
|
96342
|
+
playSpeed: 100
|
|
96352
96343
|
};
|
|
96353
96344
|
},
|
|
96354
96345
|
|
|
96355
96346
|
watch: {
|
|
96356
96347
|
model(val) {
|
|
96357
96348
|
this.init();
|
|
96349
|
+
if (!val) return;
|
|
96350
|
+
this.insertCache(val.pointArr);
|
|
96358
96351
|
},
|
|
96359
96352
|
|
|
96360
96353
|
linenIsert(val) {
|
|
96361
96354
|
if (!this.map || !val) return;
|
|
96355
|
+
this.insertCache(val);
|
|
96362
96356
|
|
|
96363
96357
|
this._insertLineAndMarker(val);
|
|
96364
96358
|
},
|
|
96365
96359
|
|
|
96366
|
-
gpsType(val) {
|
|
96360
|
+
gpsType(val) {
|
|
96361
|
+
this.selectGPSAll(val);
|
|
96362
|
+
},
|
|
96367
96363
|
|
|
96368
96364
|
clearLiens(val) {
|
|
96369
96365
|
if (val) {
|
|
@@ -96376,7 +96372,33 @@ class ryLines_LineDto extends base_Base {
|
|
|
96376
96372
|
this.appendCoordinate(val);
|
|
96377
96373
|
this.setMarkerPoint(this.endMarker, val);
|
|
96378
96374
|
}
|
|
96379
|
-
}
|
|
96375
|
+
},
|
|
96376
|
+
|
|
96377
|
+
isShowPlayback(val) {
|
|
96378
|
+
if (!val) {
|
|
96379
|
+
this.endPlaybackLines();
|
|
96380
|
+
this.index = 0;
|
|
96381
|
+
this.resetPyalPanel();
|
|
96382
|
+
return;
|
|
96383
|
+
}
|
|
96384
|
+
|
|
96385
|
+
delete this.marks2[this.len];
|
|
96386
|
+
this.marks = this.marks2;
|
|
96387
|
+
} // isPlayback(val){
|
|
96388
|
+
// if(val){
|
|
96389
|
+
// this.trackPlayback();
|
|
96390
|
+
// return;
|
|
96391
|
+
// }
|
|
96392
|
+
// this.endPlaybackLines();
|
|
96393
|
+
// },
|
|
96394
|
+
// isStop(val){
|
|
96395
|
+
// if(val){
|
|
96396
|
+
// this._clearInterval();
|
|
96397
|
+
// return;
|
|
96398
|
+
// }
|
|
96399
|
+
// this.trackPlayback();
|
|
96400
|
+
// },
|
|
96401
|
+
|
|
96380
96402
|
|
|
96381
96403
|
},
|
|
96382
96404
|
|
|
@@ -96388,14 +96410,41 @@ class ryLines_LineDto extends base_Base {
|
|
|
96388
96410
|
init() {
|
|
96389
96411
|
if (!this.map) return;
|
|
96390
96412
|
this.clearLine();
|
|
96391
|
-
if (!this.model) return;
|
|
96413
|
+
if (!this.model && !this.linenIsert) return;
|
|
96392
96414
|
this.lastType = this.gpsType;
|
|
96393
96415
|
|
|
96394
|
-
|
|
96416
|
+
if (this.model) {
|
|
96417
|
+
this.insertCache(this.model);
|
|
96418
|
+
|
|
96419
|
+
this._insertLineAndMarker(this.model);
|
|
96420
|
+
}
|
|
96421
|
+
|
|
96422
|
+
if (this.linenIsert) {
|
|
96423
|
+
this.insertCache(this.linenIsert);
|
|
96424
|
+
|
|
96425
|
+
this._insertLineAndMarker(this.linenIsert);
|
|
96426
|
+
}
|
|
96427
|
+
},
|
|
96428
|
+
|
|
96429
|
+
insertCache(model) {
|
|
96430
|
+
if (model) {
|
|
96431
|
+
const {
|
|
96432
|
+
playbackColor,
|
|
96433
|
+
pointArr
|
|
96434
|
+
} = model;
|
|
96435
|
+
const len = pointArr.length;
|
|
96436
|
+
if (!pointArr.length) return;
|
|
96437
|
+
this.len += len;
|
|
96438
|
+
this.cacheArr.push(...model.pointArr);
|
|
96439
|
+
this.cacheColors.set(this.len, playbackColor);
|
|
96440
|
+
this.cacheLenArr.push(len);
|
|
96441
|
+
this.marks2[this.len] = '';
|
|
96442
|
+
this.cacheScales.push(this.len);
|
|
96443
|
+
this.cacheModelArr.set(this.len, model);
|
|
96444
|
+
}
|
|
96395
96445
|
},
|
|
96396
96446
|
|
|
96397
96447
|
_insertLineAndMarker(val) {
|
|
96398
|
-
const color = val.color;
|
|
96399
96448
|
const arr = val.pointArr;
|
|
96400
96449
|
|
|
96401
96450
|
if (this.isLineFit) {
|
|
@@ -96404,13 +96453,18 @@ class ryLines_LineDto extends base_Base {
|
|
|
96404
96453
|
|
|
96405
96454
|
this.initMarker(arr[0]);
|
|
96406
96455
|
|
|
96407
|
-
if (!val.isAppend
|
|
96408
|
-
this._insertPoint(val);
|
|
96456
|
+
if (!val.isAppend) {
|
|
96457
|
+
this._insertPoint(val, [this.lastLineX, this.lastLineY]);
|
|
96409
96458
|
|
|
96410
96459
|
const line = this.createPolyline(val);
|
|
96411
96460
|
const len = arr.length - 1;
|
|
96412
96461
|
this.setMarkerPoint(this.endMarker, arr[len]);
|
|
96413
|
-
|
|
96462
|
+
const {
|
|
96463
|
+
x,
|
|
96464
|
+
y
|
|
96465
|
+
} = this.restLastData(arr);
|
|
96466
|
+
this.lastLineX = x;
|
|
96467
|
+
this.lastLineY = y;
|
|
96414
96468
|
this.pineArr.push(line);
|
|
96415
96469
|
return;
|
|
96416
96470
|
}
|
|
@@ -96423,6 +96477,21 @@ class ryLines_LineDto extends base_Base {
|
|
|
96423
96477
|
this.restLastData(arr);
|
|
96424
96478
|
},
|
|
96425
96479
|
|
|
96480
|
+
_insertLineAndMarker2(val) {
|
|
96481
|
+
this._insertPoint(val, [this.lastLineX2, this.lastLineY2]);
|
|
96482
|
+
|
|
96483
|
+
const arr = val.pointArr;
|
|
96484
|
+
const line = this.createPolyline(val);
|
|
96485
|
+
const {
|
|
96486
|
+
x,
|
|
96487
|
+
y
|
|
96488
|
+
} = this.restLastData(arr);
|
|
96489
|
+
this.lastLineX2 = x;
|
|
96490
|
+
this.lastLineY2 = y;
|
|
96491
|
+
this.cacheLines.push(line);
|
|
96492
|
+
return;
|
|
96493
|
+
},
|
|
96494
|
+
|
|
96426
96495
|
async calculateLineBBOX(arr) {
|
|
96427
96496
|
return await new Promise(r => {
|
|
96428
96497
|
arr.forEach(r => {
|
|
@@ -96431,7 +96500,14 @@ class ryLines_LineDto extends base_Base {
|
|
|
96431
96500
|
Y: r[1]
|
|
96432
96501
|
});
|
|
96433
96502
|
});
|
|
96434
|
-
|
|
96503
|
+
let amGpsArr = [];
|
|
96504
|
+
|
|
96505
|
+
if (this.gpsType) {
|
|
96506
|
+
amGpsArr = this.am.getLngLatGCJ02();
|
|
96507
|
+
} else {
|
|
96508
|
+
amGpsArr = this.am.getLngLats();
|
|
96509
|
+
}
|
|
96510
|
+
|
|
96435
96511
|
Object(ry_map["fitNew"])(this.map, [[amGpsArr[0], amGpsArr[1]], [amGpsArr[2], amGpsArr[3]]]);
|
|
96436
96512
|
r();
|
|
96437
96513
|
});
|
|
@@ -96455,14 +96531,18 @@ class ryLines_LineDto extends base_Base {
|
|
|
96455
96531
|
restLastData(arr) {
|
|
96456
96532
|
if (arr.length > 0) {
|
|
96457
96533
|
const [x, y] = arr[arr.length - 1];
|
|
96458
|
-
|
|
96459
|
-
|
|
96534
|
+
return {
|
|
96535
|
+
x,
|
|
96536
|
+
y
|
|
96537
|
+
};
|
|
96460
96538
|
}
|
|
96461
96539
|
},
|
|
96462
96540
|
|
|
96463
|
-
_insertPoint(val) {
|
|
96464
|
-
|
|
96465
|
-
|
|
96541
|
+
_insertPoint(val, points) {
|
|
96542
|
+
const [x, y] = points;
|
|
96543
|
+
|
|
96544
|
+
if (x > 0 && y > 0 && val) {
|
|
96545
|
+
val.pointArr.unshift(points);
|
|
96466
96546
|
}
|
|
96467
96547
|
},
|
|
96468
96548
|
|
|
@@ -96470,7 +96550,7 @@ class ryLines_LineDto extends base_Base {
|
|
|
96470
96550
|
color: 'rgb(0,0,255)',
|
|
96471
96551
|
width: 2,
|
|
96472
96552
|
pointArr: [],
|
|
96473
|
-
zIndex:
|
|
96553
|
+
zIndex: 1
|
|
96474
96554
|
}) {
|
|
96475
96555
|
return new ry_map["Polyline"]({ ...polylineModel,
|
|
96476
96556
|
type: this.gpsType
|
|
@@ -96534,14 +96614,143 @@ class ryLines_LineDto extends base_Base {
|
|
|
96534
96614
|
},
|
|
96535
96615
|
|
|
96536
96616
|
clearLine() {
|
|
96617
|
+
this.resetPyalPanel();
|
|
96537
96618
|
this.removeLines();
|
|
96538
96619
|
this.removeLineMarker();
|
|
96539
|
-
this.
|
|
96620
|
+
this.cacheArr = [];
|
|
96540
96621
|
this.lastColor = null;
|
|
96541
96622
|
this.lastLineX = 0;
|
|
96542
96623
|
this.lastLineY = 0;
|
|
96543
96624
|
this.am = null;
|
|
96544
96625
|
this.am = new ry_map["AM"]();
|
|
96626
|
+
this.marks = {};
|
|
96627
|
+
this.marks2 = {};
|
|
96628
|
+
|
|
96629
|
+
this._clearInterval();
|
|
96630
|
+
|
|
96631
|
+
this.clearCacheLines();
|
|
96632
|
+
},
|
|
96633
|
+
|
|
96634
|
+
_clearInterval() {
|
|
96635
|
+
if (this.intervalId) {
|
|
96636
|
+
clearInterval(this.intervalId);
|
|
96637
|
+
}
|
|
96638
|
+
},
|
|
96639
|
+
|
|
96640
|
+
clearCacheLines() {
|
|
96641
|
+
this.endPlaybackLines();
|
|
96642
|
+
this.cacheLenArr = [];
|
|
96643
|
+
this.cacheArr = [];
|
|
96644
|
+
this.cacheColors.clear();
|
|
96645
|
+
this.cacheModelArr.clear();
|
|
96646
|
+
this.len = 0;
|
|
96647
|
+
this.cacheScales = [];
|
|
96648
|
+
this.index = 0;
|
|
96649
|
+
},
|
|
96650
|
+
|
|
96651
|
+
endPlaybackLines() {
|
|
96652
|
+
this._clearInterval();
|
|
96653
|
+
|
|
96654
|
+
this.cacheLines.forEach(r => {
|
|
96655
|
+
r.removePolyline();
|
|
96656
|
+
});
|
|
96657
|
+
|
|
96658
|
+
if (this.moveMarker) {
|
|
96659
|
+
this.map.removeOverlay(this.moveMarker.getMarker());
|
|
96660
|
+
}
|
|
96661
|
+
|
|
96662
|
+
this.isPlayback = false;
|
|
96663
|
+
this.isStop = false;
|
|
96664
|
+
this.cacheLines = [];
|
|
96665
|
+
this.cacheLineMaps.clear();
|
|
96666
|
+
this.moveMarker = null; // this.index = 0;
|
|
96667
|
+
// this.lastColor = null;
|
|
96668
|
+
|
|
96669
|
+
this.lastLineX2 = 0;
|
|
96670
|
+
this.lastLineY2 = 0;
|
|
96671
|
+
},
|
|
96672
|
+
|
|
96673
|
+
stopPlaybackLines(val) {
|
|
96674
|
+
this.isPlayback = false;
|
|
96675
|
+
this.isStop = false;
|
|
96676
|
+
|
|
96677
|
+
if (val) {
|
|
96678
|
+
this._clearInterval();
|
|
96679
|
+
|
|
96680
|
+
return;
|
|
96681
|
+
}
|
|
96682
|
+
|
|
96683
|
+
this.trackPlayback();
|
|
96684
|
+
},
|
|
96685
|
+
|
|
96686
|
+
createTrackLineAndMarker(index = 0, index2 = 0) {
|
|
96687
|
+
const key = index;
|
|
96688
|
+
const {
|
|
96689
|
+
playbackColor,
|
|
96690
|
+
width,
|
|
96691
|
+
zIndex
|
|
96692
|
+
} = this.cacheModelArr.get(key);
|
|
96693
|
+
const line = this.createPolyline({
|
|
96694
|
+
color: playbackColor,
|
|
96695
|
+
isAppend: false,
|
|
96696
|
+
width,
|
|
96697
|
+
pointArr: [],
|
|
96698
|
+
zIndex
|
|
96699
|
+
}, this.gpsType);
|
|
96700
|
+
this.lastColor = playbackColor;
|
|
96701
|
+
this.cacheLines.push(line);
|
|
96702
|
+
|
|
96703
|
+
if (this.moveMarkerDto && !this.moveMarker) {
|
|
96704
|
+
this.moveMarker = this.createStartMarker(this.moveMarkerDto, this.cacheArr[index2]);
|
|
96705
|
+
}
|
|
96706
|
+
},
|
|
96707
|
+
|
|
96708
|
+
trackPlayback() {
|
|
96709
|
+
if (!this.cacheLines.length) {
|
|
96710
|
+
this.createTrackLineAndMarker(this.cacheScales[0], 0);
|
|
96711
|
+
}
|
|
96712
|
+
|
|
96713
|
+
this.intervalId = setInterval(r => {
|
|
96714
|
+
if (this.index >= this.len || !this.isPlayback) {
|
|
96715
|
+
this._clearInterval();
|
|
96716
|
+
|
|
96717
|
+
this.index = 0;
|
|
96718
|
+
this.isStop = false;
|
|
96719
|
+
this.$emit('trackPlayEvent', {
|
|
96720
|
+
index: this.index,
|
|
96721
|
+
points: []
|
|
96722
|
+
});
|
|
96723
|
+
return;
|
|
96724
|
+
}
|
|
96725
|
+
|
|
96726
|
+
const key = this.getKey(this.index);
|
|
96727
|
+
|
|
96728
|
+
if (this.cacheColors.has(key) && !this.cacheLineMaps.has(key)) {
|
|
96729
|
+
if (!this.cacheLineMaps.has(key)) {
|
|
96730
|
+
this.createTrackLineAndMarker(key, this.index);
|
|
96731
|
+
const line = this.cacheLines[this.cacheLines.length - 1];
|
|
96732
|
+
this.cacheLineMaps.set(key, line);
|
|
96733
|
+
|
|
96734
|
+
const _index = this.index - 1 == -1 ? 0 : this.index - 1;
|
|
96735
|
+
|
|
96736
|
+
line.appendCoordinate(this.cacheArr[_index], this.gpsType);
|
|
96737
|
+
this.$emit('trackPlayEvent', {
|
|
96738
|
+
index: this.index,
|
|
96739
|
+
points: this.cacheArr[_index]
|
|
96740
|
+
});
|
|
96741
|
+
}
|
|
96742
|
+
}
|
|
96743
|
+
|
|
96744
|
+
const line = this.cacheLines[this.cacheLines.length - 1];
|
|
96745
|
+
const points = this.cacheArr[this.index];
|
|
96746
|
+
this.setMarkerPoint(this.moveMarker, points);
|
|
96747
|
+
line.appendCoordinate(points, this.gpsType);
|
|
96748
|
+
this.$emit('trackPlayEvent', {
|
|
96749
|
+
index: this.index,
|
|
96750
|
+
points
|
|
96751
|
+
});
|
|
96752
|
+
this.index += 1;
|
|
96753
|
+
}, this.playSpeed);
|
|
96545
96754
|
},
|
|
96546
96755
|
|
|
96547
96756
|
appendCoordinate(coordinate = []) {
|
|
@@ -96556,30 +96765,190 @@ class ryLines_LineDto extends base_Base {
|
|
|
96556
96765
|
|
|
96557
96766
|
;
|
|
96558
96767
|
const line = this.pineArr[this.pineArr.length - 1];
|
|
96559
|
-
line.appendCoordinate(coordinate);
|
|
96768
|
+
line.appendCoordinate(coordinate, this.gpsType);
|
|
96769
|
+
},
|
|
96770
|
+
|
|
96771
|
+
formatTooltip(val) {
|
|
96772
|
+
return val / 100;
|
|
96560
96773
|
},
|
|
96561
96774
|
|
|
96562
|
-
|
|
96775
|
+
getKeys(val) {
|
|
96776
|
+
const arr = [];
|
|
96777
|
+
|
|
96778
|
+
for (let i = 0; i < this.cacheScales.length; i++) {
|
|
96779
|
+
if (val >= this.cacheScales[i]) {
|
|
96780
|
+
arr.push(this.cacheScales[i]);
|
|
96781
|
+
continue;
|
|
96782
|
+
}
|
|
96783
|
+
|
|
96784
|
+
arr.push(this.cacheScales[i]);
|
|
96785
|
+
break;
|
|
96786
|
+
}
|
|
96787
|
+
|
|
96788
|
+
return arr;
|
|
96789
|
+
},
|
|
96790
|
+
|
|
96791
|
+
getKey(val) {
|
|
96792
|
+
for (let i = 0; i < this.cacheScales.length; i++) {
|
|
96793
|
+
const key = this.cacheScales[i];
|
|
96794
|
+
|
|
96795
|
+
if (val <= key) {
|
|
96796
|
+
return key;
|
|
96797
|
+
}
|
|
96798
|
+
}
|
|
96799
|
+
|
|
96800
|
+
return 0;
|
|
96801
|
+
},
|
|
96802
|
+
|
|
96803
|
+
createLineModels(keys, points, step) {
|
|
96804
|
+
const arr = [];
|
|
96805
|
+
const _points = [...points];
|
|
96806
|
+
|
|
96807
|
+
if (keys.length <= 1) {
|
|
96808
|
+
const key = keys[0];
|
|
96809
|
+
const {
|
|
96810
|
+
width,
|
|
96811
|
+
zIndex
|
|
96812
|
+
} = this.cacheModelArr.get(key);
|
|
96813
|
+
arr.push({
|
|
96814
|
+
isAppend: false,
|
|
96815
|
+
color: this.cacheColors.get(key),
|
|
96816
|
+
width,
|
|
96817
|
+
zIndex,
|
|
96818
|
+
pointArr: _points.splice(0, step)
|
|
96819
|
+
});
|
|
96820
|
+
return arr;
|
|
96821
|
+
}
|
|
96822
|
+
|
|
96823
|
+
for (let i = 0; i < keys.length; i++) {
|
|
96824
|
+
const key = keys[i];
|
|
96825
|
+
const {
|
|
96826
|
+
width,
|
|
96827
|
+
zIndex
|
|
96828
|
+
} = this.cacheModelArr.get(key);
|
|
96829
|
+
|
|
96830
|
+
const pointArr = _points.splice(0, this.cacheLenArr[i]);
|
|
96831
|
+
|
|
96832
|
+
if (pointArr.length) {
|
|
96833
|
+
const model = {
|
|
96834
|
+
color: this.cacheColors.get(key),
|
|
96835
|
+
width,
|
|
96836
|
+
zIndex,
|
|
96837
|
+
pointArr
|
|
96838
|
+
};
|
|
96839
|
+
arr.push(model); // if( i > 1 &&i <keys.length-1){
|
|
96840
|
+
// // console.log(points[key-1]);
|
|
96841
|
+
// this._insertPoint(model,points[key-1]);
|
|
96842
|
+
// }
|
|
96843
|
+
}
|
|
96844
|
+
}
|
|
96845
|
+
|
|
96846
|
+
return arr;
|
|
96847
|
+
},
|
|
96848
|
+
|
|
96849
|
+
sliderChange(val) {
|
|
96850
|
+
this.endPlaybackLines();
|
|
96851
|
+
|
|
96852
|
+
if (val === 0) {
|
|
96853
|
+
this.$emit('trackPlayEvent', {
|
|
96854
|
+
index: val,
|
|
96855
|
+
points: []
|
|
96856
|
+
});
|
|
96857
|
+
return;
|
|
96858
|
+
}
|
|
96859
|
+
|
|
96860
|
+
const points = this.cacheArr.slice(0, val);
|
|
96861
|
+
const arr = this.createLineModels(this.getKeys(val), points, val);
|
|
96862
|
+
arr.forEach(r => this._insertLineAndMarker2(r, false));
|
|
96863
|
+
|
|
96864
|
+
if (points.length) {
|
|
96865
|
+
this.$emit('trackPlayEvent', {
|
|
96866
|
+
index: val,
|
|
96867
|
+
points: points[points.length - 1]
|
|
96868
|
+
});
|
|
96869
|
+
}
|
|
96870
|
+
|
|
96871
|
+
if (this.moveMarkerDto && !this.moveMarker && points.length) {
|
|
96872
|
+
this.moveMarker = this.createStartMarker(this.moveMarkerDto, points[points.length - 1]);
|
|
96873
|
+
return;
|
|
96874
|
+
}
|
|
96875
|
+
},
|
|
96876
|
+
|
|
96877
|
+
onPlayTrajectory() {
|
|
96878
|
+
if (!this.isStop) {
|
|
96879
|
+
if (this.index == 0) {
|
|
96880
|
+
this.endPlaybackLines();
|
|
96881
|
+
}
|
|
96882
|
+
}
|
|
96883
|
+
|
|
96884
|
+
this.isPlayback = true;
|
|
96885
|
+
this.isStop = true;
|
|
96886
|
+
this.trackPlayback();
|
|
96887
|
+
},
|
|
96888
|
+
|
|
96889
|
+
onStopTrajectory() {
|
|
96890
|
+
this.isStop = false;
|
|
96891
|
+
|
|
96892
|
+
this._clearInterval();
|
|
96893
|
+
},
|
|
96894
|
+
|
|
96895
|
+
onPlaySpeed(key, val) {
|
|
96896
|
+
this.selectActive = this.selectActive.map(v => v = false);
|
|
96897
|
+
this.selectActive[key] = true;
|
|
96898
|
+
this.playSpeed = val;
|
|
96899
|
+
this.isStop = false;
|
|
96900
|
+
|
|
96901
|
+
this._clearInterval();
|
|
96902
|
+
},
|
|
96903
|
+
|
|
96904
|
+
resetPyalPanel() {
|
|
96905
|
+
this.selectActive = [false, true, false, false, false];
|
|
96906
|
+
this.playSpeed = 100;
|
|
96907
|
+
},
|
|
96908
|
+
|
|
96909
|
+
selectGPSAll(type) {
|
|
96910
|
+
this.pineArr.forEach(r => {
|
|
96911
|
+
r.selectGPS(type);
|
|
96912
|
+
});
|
|
96913
|
+
this.endPlaybackLines();
|
|
96914
|
+
this.index = 0;
|
|
96915
|
+
|
|
96916
|
+
if (this.startMarker) {
|
|
96917
|
+
this.startMarker.selectGPS(type);
|
|
96918
|
+
}
|
|
96919
|
+
|
|
96920
|
+
if (this.endMarker) {
|
|
96921
|
+
this.endMarker.selectGPS(type);
|
|
96922
|
+
}
|
|
96923
|
+
|
|
96924
|
+
if (this.moveMarker) {
|
|
96925
|
+
this.moveMarker.selectGPS(type);
|
|
96926
|
+
}
|
|
96927
|
+
}
|
|
96563
96928
|
|
|
96564
96929
|
}
|
|
96565
96930
|
});
|
|
96566
96931
|
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=script&lang=js&
|
|
96567
96932
|
/* harmony default export */ var maps_ryLines_srcvue_type_script_lang_js_ = (ryLines_srcvue_type_script_lang_js_);
|
|
96933
|
+
// EXTERNAL MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=style&index=0&id=75840f3c&prod&lang=scss&scoped=true&
|
|
96934
|
+
var srcvue_type_style_index_0_id_75840f3c_prod_lang_scss_scoped_true_ = __webpack_require__("3391");
|
|
96935
|
+
|
|
96568
96936
|
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue
|
|
96569
96937
|
|
|
96570
96938
|
|
|
96571
96939
|
|
|
96572
96940
|
|
|
96573
96941
|
|
|
96942
|
+
|
|
96574
96943
|
/* normalize component */
|
|
96575
96944
|
|
|
96576
96945
|
var ryLines_src_component = normalizeComponent(
|
|
96577
96946
|
maps_ryLines_srcvue_type_script_lang_js_,
|
|
96578
|
-
|
|
96579
|
-
|
|
96947
|
+
srcvue_type_template_id_75840f3c_scoped_true_render,
|
|
96948
|
+
srcvue_type_template_id_75840f3c_scoped_true_staticRenderFns,
|
|
96580
96949
|
false,
|
|
96581
96950
|
null,
|
|
96582
|
-
|
|
96951
|
+
"75840f3c",
|
|
96583
96952
|
null
|
|
96584
96953
|
|
|
96585
96954
|
)
|
|
@@ -96593,7 +96962,7 @@ ryLines_src.install = Vue => {
|
|
|
96593
96962
|
};
|
|
96594
96963
|
|
|
96595
96964
|
/* harmony default export */ var ryLines = (ryLines_src);
|
|
96596
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
96965
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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/ryStaticMap/src/index.vue?vue&type=template&id=a77ac42c&scoped=true&
|
|
96597
96966
|
var srcvue_type_template_id_a77ac42c_scoped_true_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:{
|
|
96598
96967
|
'left':!_vm.isRight,
|
|
96599
96968
|
'right':_vm.isRight
|
|
@@ -96960,7 +97329,7 @@ ryStaticMap_src.install = Vue => {
|
|
|
96960
97329
|
};
|
|
96961
97330
|
|
|
96962
97331
|
/* harmony default export */ var ryStaticMap = (ryStaticMap_src);
|
|
96963
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
97332
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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/ryOfflineMap/src/index.vue?vue&type=template&id=110d9690&scoped=true&
|
|
96964
97333
|
var srcvue_type_template_id_110d9690_scoped_true_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:{
|
|
96965
97334
|
'left':!_vm.isRight,
|
|
96966
97335
|
'right':_vm.isRight
|
|
@@ -97454,7 +97823,7 @@ ryOfflineMap_src.install = Vue => {
|
|
|
97454
97823
|
};
|
|
97455
97824
|
|
|
97456
97825
|
/* harmony default export */ var ryOfflineMap = (ryOfflineMap_src);
|
|
97457
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
97826
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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/ryKMLs/src/index.vue?vue&type=template&id=8e9d4f6e&
|
|
97458
97827
|
var srcvue_type_template_id_8e9d4f6e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
97459
97828
|
var srcvue_type_template_id_8e9d4f6e_staticRenderFns = []
|
|
97460
97829
|
|
|
@@ -97767,12 +98136,12 @@ ryKMLs_src.install = Vue => {
|
|
|
97767
98136
|
};
|
|
97768
98137
|
|
|
97769
98138
|
/* harmony default export */ var ryKMLs = (ryKMLs_src);
|
|
97770
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
97771
|
-
var
|
|
97772
|
-
var
|
|
98139
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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/ryKML/src/index.vue?vue&type=template&id=07fa85f6&
|
|
98140
|
+
var srcvue_type_template_id_07fa85f6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
98141
|
+
var srcvue_type_template_id_07fa85f6_staticRenderFns = []
|
|
97773
98142
|
|
|
97774
98143
|
|
|
97775
|
-
// CONCATENATED MODULE: ./src/components/maps/ryKML/src/index.vue?vue&type=template&id=
|
|
98144
|
+
// CONCATENATED MODULE: ./src/components/maps/ryKML/src/index.vue?vue&type=template&id=07fa85f6&
|
|
97776
98145
|
|
|
97777
98146
|
// CONCATENATED MODULE: ./src/components/maps/models/ryKML/index.js
|
|
97778
98147
|
|
|
@@ -97829,7 +98198,7 @@ class ryKML_RyKMLDto extends base_Base {
|
|
|
97829
98198
|
model(val) {
|
|
97830
98199
|
this._remove();
|
|
97831
98200
|
|
|
97832
|
-
if (!val
|
|
98201
|
+
if (!val) return;
|
|
97833
98202
|
this.model = val;
|
|
97834
98203
|
this.init(val);
|
|
97835
98204
|
},
|
|
@@ -97991,8 +98360,8 @@ class ryKML_RyKMLDto extends base_Base {
|
|
|
97991
98360
|
|
|
97992
98361
|
var ryKML_src_component = normalizeComponent(
|
|
97993
98362
|
maps_ryKML_srcvue_type_script_lang_js_,
|
|
97994
|
-
|
|
97995
|
-
|
|
98363
|
+
srcvue_type_template_id_07fa85f6_render,
|
|
98364
|
+
srcvue_type_template_id_07fa85f6_staticRenderFns,
|
|
97996
98365
|
false,
|
|
97997
98366
|
null,
|
|
97998
98367
|
null,
|
|
@@ -98009,6 +98378,546 @@ ryKML_src.install = Vue => {
|
|
|
98009
98378
|
};
|
|
98010
98379
|
|
|
98011
98380
|
/* harmony default export */ var ryKML = (ryKML_src);
|
|
98381
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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/ryStaticLayers/src/index.vue?vue&type=template&id=3270a70a&
|
|
98382
|
+
var srcvue_type_template_id_3270a70a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
98383
|
+
var srcvue_type_template_id_3270a70a_staticRenderFns = []
|
|
98384
|
+
|
|
98385
|
+
|
|
98386
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue?vue&type=template&id=3270a70a&
|
|
98387
|
+
|
|
98388
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryStaticLayers/index.js
|
|
98389
|
+
|
|
98390
|
+
|
|
98391
|
+
class ryStaticLayers_RyKMLDto extends base_Base {
|
|
98392
|
+
constructor(...args) {
|
|
98393
|
+
super(...args);
|
|
98394
|
+
|
|
98395
|
+
_defineProperty(this, "modelArr", {
|
|
98396
|
+
type: Array,
|
|
98397
|
+
default: () => []
|
|
98398
|
+
});
|
|
98399
|
+
|
|
98400
|
+
_defineProperty(this, "insert", {
|
|
98401
|
+
type: Object,
|
|
98402
|
+
default: () => null
|
|
98403
|
+
});
|
|
98404
|
+
|
|
98405
|
+
_defineProperty(this, "inserts", {
|
|
98406
|
+
type: Array,
|
|
98407
|
+
default: () => []
|
|
98408
|
+
});
|
|
98409
|
+
|
|
98410
|
+
_defineProperty(this, "isShowAll", {
|
|
98411
|
+
type: Boolean,
|
|
98412
|
+
default: true
|
|
98413
|
+
});
|
|
98414
|
+
|
|
98415
|
+
_defineProperty(this, "isShow", {
|
|
98416
|
+
type: Object,
|
|
98417
|
+
default: () => null
|
|
98418
|
+
});
|
|
98419
|
+
|
|
98420
|
+
_defineProperty(this, "clear", {
|
|
98421
|
+
type: Boolean,
|
|
98422
|
+
default: false
|
|
98423
|
+
});
|
|
98424
|
+
|
|
98425
|
+
_defineProperty(this, "isFit", {
|
|
98426
|
+
type: Boolean,
|
|
98427
|
+
default: true
|
|
98428
|
+
});
|
|
98429
|
+
}
|
|
98430
|
+
|
|
98431
|
+
}
|
|
98432
|
+
// 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/ryStaticLayers/src/index.vue?vue&type=script&lang=js&
|
|
98433
|
+
//
|
|
98434
|
+
//
|
|
98435
|
+
//
|
|
98436
|
+
|
|
98437
|
+
|
|
98438
|
+
/* harmony default export */ var ryStaticLayers_srcvue_type_script_lang_js_ = ({
|
|
98439
|
+
name: 'RyStaticLayers',
|
|
98440
|
+
props: { ...new ryStaticLayers_RyKMLDto()
|
|
98441
|
+
},
|
|
98442
|
+
|
|
98443
|
+
data() {
|
|
98444
|
+
return {
|
|
98445
|
+
bbox: [],
|
|
98446
|
+
bboxMap: new Map(),
|
|
98447
|
+
bboxGCJ02: [],
|
|
98448
|
+
bboxMapGCJ02: new Map(),
|
|
98449
|
+
staticMap: new Map(),
|
|
98450
|
+
isCreate: true,
|
|
98451
|
+
lastType: -1
|
|
98452
|
+
};
|
|
98453
|
+
},
|
|
98454
|
+
|
|
98455
|
+
watch: {
|
|
98456
|
+
modelArr(val) {
|
|
98457
|
+
this._remove();
|
|
98458
|
+
|
|
98459
|
+
if (!val.length) return;
|
|
98460
|
+
this.modelArr = val;
|
|
98461
|
+
this.init(val);
|
|
98462
|
+
},
|
|
98463
|
+
|
|
98464
|
+
gpsType(val) {
|
|
98465
|
+
if (this.lastType == val) return;
|
|
98466
|
+
this.gpsType = val;
|
|
98467
|
+
this.lastType = val;
|
|
98468
|
+
this.selectGPSAll(this.gpsType);
|
|
98469
|
+
},
|
|
98470
|
+
|
|
98471
|
+
insert(val) {
|
|
98472
|
+
this.insert = val;
|
|
98473
|
+
|
|
98474
|
+
this._insert(val);
|
|
98475
|
+
|
|
98476
|
+
if (this.isFit) {
|
|
98477
|
+
setTimeout(() => {
|
|
98478
|
+
this.setFit();
|
|
98479
|
+
}, 50);
|
|
98480
|
+
}
|
|
98481
|
+
},
|
|
98482
|
+
|
|
98483
|
+
inserts(val) {
|
|
98484
|
+
this.inserts = val;
|
|
98485
|
+
|
|
98486
|
+
this._inserts(val);
|
|
98487
|
+
},
|
|
98488
|
+
|
|
98489
|
+
clear(val) {
|
|
98490
|
+
if (val) {
|
|
98491
|
+
this._remove();
|
|
98492
|
+
}
|
|
98493
|
+
},
|
|
98494
|
+
|
|
98495
|
+
isShowAll(val) {
|
|
98496
|
+
if (val) {
|
|
98497
|
+
this.showAll();
|
|
98498
|
+
return;
|
|
98499
|
+
}
|
|
98500
|
+
|
|
98501
|
+
this.hideAll();
|
|
98502
|
+
},
|
|
98503
|
+
|
|
98504
|
+
isShow(val) {
|
|
98505
|
+
if (!val) return;
|
|
98506
|
+
|
|
98507
|
+
this._isShow(val);
|
|
98508
|
+
}
|
|
98509
|
+
|
|
98510
|
+
},
|
|
98511
|
+
|
|
98512
|
+
created() {
|
|
98513
|
+
this.lastType = this.gpsType;
|
|
98514
|
+
this.init(this.modelArr);
|
|
98515
|
+
},
|
|
98516
|
+
|
|
98517
|
+
methods: {
|
|
98518
|
+
init(arr) {
|
|
98519
|
+
// this._insert();
|
|
98520
|
+
if (!arr || !arr.length) return;
|
|
98521
|
+
arr.forEach(val => {
|
|
98522
|
+
this._insert(val);
|
|
98523
|
+
});
|
|
98524
|
+
|
|
98525
|
+
if (this.isFit) {
|
|
98526
|
+
setTimeout(() => {
|
|
98527
|
+
this.setFit();
|
|
98528
|
+
}, 50);
|
|
98529
|
+
}
|
|
98530
|
+
|
|
98531
|
+
;
|
|
98532
|
+
},
|
|
98533
|
+
|
|
98534
|
+
_inserts(arr) {
|
|
98535
|
+
this.lastType = this.gpsType;
|
|
98536
|
+
arr.forEach(val => {
|
|
98537
|
+
this._insert(val, false);
|
|
98538
|
+
});
|
|
98539
|
+
|
|
98540
|
+
if (this.isFit) {
|
|
98541
|
+
setTimeout(() => {
|
|
98542
|
+
this.setFit();
|
|
98543
|
+
}, 50);
|
|
98544
|
+
}
|
|
98545
|
+
},
|
|
98546
|
+
|
|
98547
|
+
_insert(dto) {
|
|
98548
|
+
const {
|
|
98549
|
+
id,
|
|
98550
|
+
url,
|
|
98551
|
+
bbox,
|
|
98552
|
+
zIndex
|
|
98553
|
+
} = dto;
|
|
98554
|
+
|
|
98555
|
+
if (!this.staticMap.has(id)) {
|
|
98556
|
+
const img = new ry_map["staticImage"]({
|
|
98557
|
+
id,
|
|
98558
|
+
url,
|
|
98559
|
+
imageExtent: bbox,
|
|
98560
|
+
zIndex,
|
|
98561
|
+
type: this.gpsType
|
|
98562
|
+
}, this.map);
|
|
98563
|
+
this.staticMap.set(id, img);
|
|
98564
|
+
}
|
|
98565
|
+
|
|
98566
|
+
this.setBBOXArr(dto.id, bbox);
|
|
98567
|
+
},
|
|
98568
|
+
|
|
98569
|
+
setBBOXArr(id, bbox) {
|
|
98570
|
+
if (!this.bboxMap.has(id)) {
|
|
98571
|
+
this.bbox.push(bbox);
|
|
98572
|
+
this.bboxMap.set(id, bbox);
|
|
98573
|
+
}
|
|
98574
|
+
|
|
98575
|
+
if (!this.bboxMapGCJ02.has(id)) {
|
|
98576
|
+
const _bboxGCJ02 = this.convertBBoxGCJ02(bbox);
|
|
98577
|
+
|
|
98578
|
+
this.bboxGCJ02.push(_bboxGCJ02);
|
|
98579
|
+
this.bboxMapGCJ02.set(id, _bboxGCJ02);
|
|
98580
|
+
}
|
|
98581
|
+
},
|
|
98582
|
+
|
|
98583
|
+
setFit() {
|
|
98584
|
+
if (!this.bbox.length || !this.map) return;
|
|
98585
|
+
|
|
98586
|
+
if (this.bbox.length > 1) {
|
|
98587
|
+
Object(ry_map["fitNew"])(this.map, this.gpsType == 1 ? this.bboxGCJ02 : this.bbox);
|
|
98588
|
+
return;
|
|
98589
|
+
}
|
|
98590
|
+
|
|
98591
|
+
this.setFitFist(this.gpsType == 1 ? this.bboxGCJ02[0] : this.bbox[0]);
|
|
98592
|
+
},
|
|
98593
|
+
|
|
98594
|
+
// bbox.length =1 执行此处
|
|
98595
|
+
setFitFist(bbox) {
|
|
98596
|
+
const bbox2 = [bbox[0], bbox[3], bbox[2], bbox[1]];
|
|
98597
|
+
const bbox3 = [bbox[2], bbox[1], bbox[0], bbox[3]];
|
|
98598
|
+
Object(ry_map["fitNew"])(this.map, [bbox2, bbox3]);
|
|
98599
|
+
},
|
|
98600
|
+
|
|
98601
|
+
convertBBoxGCJ02(bbox) {
|
|
98602
|
+
const pointArr = [];
|
|
98603
|
+
const {
|
|
98604
|
+
lat,
|
|
98605
|
+
lon
|
|
98606
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[0], bbox[1]);
|
|
98607
|
+
const {
|
|
98608
|
+
lon: lon2,
|
|
98609
|
+
lat: lat2
|
|
98610
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[2], bbox[3]);
|
|
98611
|
+
pointArr.push(lon);
|
|
98612
|
+
pointArr.push(lat);
|
|
98613
|
+
pointArr.push(lon2);
|
|
98614
|
+
pointArr.push(lat2);
|
|
98615
|
+
return pointArr;
|
|
98616
|
+
},
|
|
98617
|
+
|
|
98618
|
+
_remove() {
|
|
98619
|
+
this.staticMap.forEach(val => {
|
|
98620
|
+
val.removeImageLayer();
|
|
98621
|
+
val = null;
|
|
98622
|
+
});
|
|
98623
|
+
this.staticMap.clear();
|
|
98624
|
+
this.bboxMap.clear();
|
|
98625
|
+
this.bbox = [];
|
|
98626
|
+
this.bboxGCJ02 = [];
|
|
98627
|
+
this.bboxMapGCJ02.clear();
|
|
98628
|
+
},
|
|
98629
|
+
|
|
98630
|
+
selectGPSAll(type) {
|
|
98631
|
+
this.staticMap.forEach(val => {
|
|
98632
|
+
val.selectGPS(type);
|
|
98633
|
+
});
|
|
98634
|
+
},
|
|
98635
|
+
|
|
98636
|
+
showAll() {
|
|
98637
|
+
this.staticMap.forEach(val => val.show());
|
|
98638
|
+
|
|
98639
|
+
if (this.restFit) {
|
|
98640
|
+
this._restFit();
|
|
98641
|
+
}
|
|
98642
|
+
},
|
|
98643
|
+
|
|
98644
|
+
hideAll() {
|
|
98645
|
+
this.staticMap.forEach(val => val.hide());
|
|
98646
|
+
},
|
|
98647
|
+
|
|
98648
|
+
_isShow(val) {
|
|
98649
|
+
const id = val.id;
|
|
98650
|
+
|
|
98651
|
+
if (this.staticMap.has(id)) {
|
|
98652
|
+
const img = this.staticMap.get(id);
|
|
98653
|
+
|
|
98654
|
+
if (val.show) {
|
|
98655
|
+
img.show();
|
|
98656
|
+
return;
|
|
98657
|
+
}
|
|
98658
|
+
|
|
98659
|
+
img.hide();
|
|
98660
|
+
}
|
|
98661
|
+
}
|
|
98662
|
+
|
|
98663
|
+
}
|
|
98664
|
+
});
|
|
98665
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue?vue&type=script&lang=js&
|
|
98666
|
+
/* harmony default export */ var maps_ryStaticLayers_srcvue_type_script_lang_js_ = (ryStaticLayers_srcvue_type_script_lang_js_);
|
|
98667
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue
|
|
98668
|
+
|
|
98669
|
+
|
|
98670
|
+
|
|
98671
|
+
|
|
98672
|
+
|
|
98673
|
+
/* normalize component */
|
|
98674
|
+
|
|
98675
|
+
var ryStaticLayers_src_component = normalizeComponent(
|
|
98676
|
+
maps_ryStaticLayers_srcvue_type_script_lang_js_,
|
|
98677
|
+
srcvue_type_template_id_3270a70a_render,
|
|
98678
|
+
srcvue_type_template_id_3270a70a_staticRenderFns,
|
|
98679
|
+
false,
|
|
98680
|
+
null,
|
|
98681
|
+
null,
|
|
98682
|
+
null
|
|
98683
|
+
|
|
98684
|
+
)
|
|
98685
|
+
|
|
98686
|
+
/* harmony default export */ var ryStaticLayers_src = (ryStaticLayers_src_component.exports);
|
|
98687
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/index.js
|
|
98688
|
+
|
|
98689
|
+
|
|
98690
|
+
ryStaticLayers_src.install = Vue => {
|
|
98691
|
+
Vue.install(ryStaticLayers_src.name, ryStaticLayers_src);
|
|
98692
|
+
};
|
|
98693
|
+
|
|
98694
|
+
/* harmony default export */ var ryStaticLayers = (ryStaticLayers_src);
|
|
98695
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0dc23e6e-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/ryStaticLayer/src/index.vue?vue&type=template&id=7bec5e5c&
|
|
98696
|
+
var srcvue_type_template_id_7bec5e5c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
98697
|
+
var srcvue_type_template_id_7bec5e5c_staticRenderFns = []
|
|
98698
|
+
|
|
98699
|
+
|
|
98700
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue?vue&type=template&id=7bec5e5c&
|
|
98701
|
+
|
|
98702
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryStaticLayer/index.js
|
|
98703
|
+
|
|
98704
|
+
|
|
98705
|
+
class ryStaticLayer_RyKMLDto extends base_Base {
|
|
98706
|
+
constructor(...args) {
|
|
98707
|
+
super(...args);
|
|
98708
|
+
|
|
98709
|
+
_defineProperty(this, "model", {
|
|
98710
|
+
type: Object,
|
|
98711
|
+
default: () => null
|
|
98712
|
+
});
|
|
98713
|
+
|
|
98714
|
+
_defineProperty(this, "isShow", {
|
|
98715
|
+
type: Boolean,
|
|
98716
|
+
default: true
|
|
98717
|
+
});
|
|
98718
|
+
|
|
98719
|
+
_defineProperty(this, "clear", {
|
|
98720
|
+
type: Boolean,
|
|
98721
|
+
default: false
|
|
98722
|
+
});
|
|
98723
|
+
|
|
98724
|
+
_defineProperty(this, "isFit", {
|
|
98725
|
+
type: Boolean,
|
|
98726
|
+
default: true
|
|
98727
|
+
});
|
|
98728
|
+
}
|
|
98729
|
+
|
|
98730
|
+
}
|
|
98731
|
+
// 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/ryStaticLayer/src/index.vue?vue&type=script&lang=js&
|
|
98732
|
+
//
|
|
98733
|
+
//
|
|
98734
|
+
//
|
|
98735
|
+
|
|
98736
|
+
|
|
98737
|
+
/* harmony default export */ var ryStaticLayer_srcvue_type_script_lang_js_ = ({
|
|
98738
|
+
name: 'RyStaticLayers',
|
|
98739
|
+
props: { ...new ryStaticLayer_RyKMLDto()
|
|
98740
|
+
},
|
|
98741
|
+
|
|
98742
|
+
data() {
|
|
98743
|
+
return {
|
|
98744
|
+
bbox: [],
|
|
98745
|
+
bboxGCJ02: [],
|
|
98746
|
+
staticImg: null,
|
|
98747
|
+
lastType: -1
|
|
98748
|
+
};
|
|
98749
|
+
},
|
|
98750
|
+
|
|
98751
|
+
watch: {
|
|
98752
|
+
model(val) {
|
|
98753
|
+
this._remove();
|
|
98754
|
+
|
|
98755
|
+
if (!val.length) return;
|
|
98756
|
+
this.init(val);
|
|
98757
|
+
},
|
|
98758
|
+
|
|
98759
|
+
gpsType(val) {
|
|
98760
|
+
if (this.lastType == val) return;
|
|
98761
|
+
this.gpsType = val;
|
|
98762
|
+
this.lastType = val;
|
|
98763
|
+
this.selectGPSAll(this.gpsType);
|
|
98764
|
+
},
|
|
98765
|
+
|
|
98766
|
+
clear(val) {
|
|
98767
|
+
if (val) {
|
|
98768
|
+
this._remove();
|
|
98769
|
+
}
|
|
98770
|
+
},
|
|
98771
|
+
|
|
98772
|
+
isShow(val) {
|
|
98773
|
+
this._isShow(val);
|
|
98774
|
+
}
|
|
98775
|
+
|
|
98776
|
+
},
|
|
98777
|
+
|
|
98778
|
+
created() {
|
|
98779
|
+
this.lastType = this.gpsType;
|
|
98780
|
+
this.init(this.model);
|
|
98781
|
+
},
|
|
98782
|
+
|
|
98783
|
+
methods: {
|
|
98784
|
+
init(model) {
|
|
98785
|
+
// this._insert();
|
|
98786
|
+
if (!model) return;
|
|
98787
|
+
|
|
98788
|
+
this._insert(model);
|
|
98789
|
+
|
|
98790
|
+
if (this.isFit) {
|
|
98791
|
+
setTimeout(() => {
|
|
98792
|
+
this.setFit();
|
|
98793
|
+
}, 50);
|
|
98794
|
+
}
|
|
98795
|
+
|
|
98796
|
+
;
|
|
98797
|
+
},
|
|
98798
|
+
|
|
98799
|
+
_insert(dto) {
|
|
98800
|
+
const {
|
|
98801
|
+
id,
|
|
98802
|
+
url,
|
|
98803
|
+
bbox,
|
|
98804
|
+
zIndex
|
|
98805
|
+
} = dto;
|
|
98806
|
+
const img = new ry_map["staticImage"]({
|
|
98807
|
+
id,
|
|
98808
|
+
url,
|
|
98809
|
+
imageExtent: bbox,
|
|
98810
|
+
zIndex,
|
|
98811
|
+
type: this.gpsType
|
|
98812
|
+
}, this.map);
|
|
98813
|
+
this.staticImg = img;
|
|
98814
|
+
this.setBBOXArr(bbox);
|
|
98815
|
+
},
|
|
98816
|
+
|
|
98817
|
+
setBBOXArr(bbox) {
|
|
98818
|
+
this.bbox.push(bbox);
|
|
98819
|
+
|
|
98820
|
+
const _bboxGCJ02 = this.convertBBoxGCJ02(bbox);
|
|
98821
|
+
|
|
98822
|
+
this.bboxGCJ02.push(_bboxGCJ02);
|
|
98823
|
+
},
|
|
98824
|
+
|
|
98825
|
+
setFit() {
|
|
98826
|
+
if (!this.bbox.length || !this.map) return;
|
|
98827
|
+
|
|
98828
|
+
if (this.bbox.length > 1) {
|
|
98829
|
+
Object(ry_map["fitNew"])(this.map, this.gpsType == 1 ? this.bboxGCJ02 : this.bbox);
|
|
98830
|
+
return;
|
|
98831
|
+
}
|
|
98832
|
+
|
|
98833
|
+
this.setFitFist(this.gpsType == 1 ? this.bboxGCJ02[0] : this.bbox[0]);
|
|
98834
|
+
},
|
|
98835
|
+
|
|
98836
|
+
// bbox.length =1 执行此处
|
|
98837
|
+
setFitFist(bbox) {
|
|
98838
|
+
const bbox2 = [bbox[0], bbox[3], bbox[2], bbox[1]];
|
|
98839
|
+
const bbox3 = [bbox[2], bbox[1], bbox[0], bbox[3]];
|
|
98840
|
+
Object(ry_map["fitNew"])(this.map, [bbox2, bbox3]);
|
|
98841
|
+
},
|
|
98842
|
+
|
|
98843
|
+
convertBBoxGCJ02(bbox) {
|
|
98844
|
+
const pointArr = [];
|
|
98845
|
+
const {
|
|
98846
|
+
lat,
|
|
98847
|
+
lon
|
|
98848
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[0], bbox[1]);
|
|
98849
|
+
const {
|
|
98850
|
+
lon: lon2,
|
|
98851
|
+
lat: lat2
|
|
98852
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[2], bbox[3]);
|
|
98853
|
+
pointArr.push(lon);
|
|
98854
|
+
pointArr.push(lat);
|
|
98855
|
+
pointArr.push(lon2);
|
|
98856
|
+
pointArr.push(lat2);
|
|
98857
|
+
return pointArr;
|
|
98858
|
+
},
|
|
98859
|
+
|
|
98860
|
+
_remove() {
|
|
98861
|
+
if (this.staticImg) {
|
|
98862
|
+
this.staticImg.removeImageLayer();
|
|
98863
|
+
}
|
|
98864
|
+
|
|
98865
|
+
this.staticImg = null;
|
|
98866
|
+
this.bbox = [];
|
|
98867
|
+
this.bboxGCJ02 = [];
|
|
98868
|
+
},
|
|
98869
|
+
|
|
98870
|
+
selectGPSAll(type) {
|
|
98871
|
+
if (this.staticImg) {
|
|
98872
|
+
this.staticImg.selectGPS(type);
|
|
98873
|
+
}
|
|
98874
|
+
},
|
|
98875
|
+
|
|
98876
|
+
_isShow(val) {
|
|
98877
|
+
if (this.staticImg) {
|
|
98878
|
+
const img = this.staticImg;
|
|
98879
|
+
|
|
98880
|
+
if (val) {
|
|
98881
|
+
img.show();
|
|
98882
|
+
return;
|
|
98883
|
+
}
|
|
98884
|
+
|
|
98885
|
+
img.hide();
|
|
98886
|
+
}
|
|
98887
|
+
}
|
|
98888
|
+
|
|
98889
|
+
}
|
|
98890
|
+
});
|
|
98891
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue?vue&type=script&lang=js&
|
|
98892
|
+
/* harmony default export */ var maps_ryStaticLayer_srcvue_type_script_lang_js_ = (ryStaticLayer_srcvue_type_script_lang_js_);
|
|
98893
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue
|
|
98894
|
+
|
|
98895
|
+
|
|
98896
|
+
|
|
98897
|
+
|
|
98898
|
+
|
|
98899
|
+
/* normalize component */
|
|
98900
|
+
|
|
98901
|
+
var ryStaticLayer_src_component = normalizeComponent(
|
|
98902
|
+
maps_ryStaticLayer_srcvue_type_script_lang_js_,
|
|
98903
|
+
srcvue_type_template_id_7bec5e5c_render,
|
|
98904
|
+
srcvue_type_template_id_7bec5e5c_staticRenderFns,
|
|
98905
|
+
false,
|
|
98906
|
+
null,
|
|
98907
|
+
null,
|
|
98908
|
+
null
|
|
98909
|
+
|
|
98910
|
+
)
|
|
98911
|
+
|
|
98912
|
+
/* harmony default export */ var ryStaticLayer_src = (ryStaticLayer_src_component.exports);
|
|
98913
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/index.js
|
|
98914
|
+
|
|
98915
|
+
|
|
98916
|
+
ryStaticLayer_src.install = Vue => {
|
|
98917
|
+
Vue.install(ryStaticLayer_src.name, ryStaticLayer_src);
|
|
98918
|
+
};
|
|
98919
|
+
|
|
98920
|
+
/* harmony default export */ var ryStaticLayer = (ryStaticLayer_src);
|
|
98012
98921
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
98013
98922
|
|
|
98014
98923
|
|
|
@@ -98023,10 +98932,12 @@ ryKML_src.install = Vue => {
|
|
|
98023
98932
|
|
|
98024
98933
|
|
|
98025
98934
|
|
|
98935
|
+
|
|
98936
|
+
|
|
98026
98937
|
// import "./fonts/iconfont.css";
|
|
98027
98938
|
// 组件列表
|
|
98028
98939
|
|
|
98029
|
-
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap, ryLines, ryStaticMap, ryOfflineMap, ryKMLs, ryKML]; // 定义install
|
|
98940
|
+
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap, ryLines, ryStaticMap, ryOfflineMap, ryKMLs, ryKML, ryStaticLayers, ryStaticLayer]; // 定义install
|
|
98030
98941
|
|
|
98031
98942
|
const install = (Vue, options) => {
|
|
98032
98943
|
// 遍历注册全局组件
|