ry-vue-map 0.2.8 → 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 +1060 -149
- 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 +1060 -149
- 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/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 -125
package/lib/ryui.umd.js
CHANGED
|
@@ -4438,6 +4438,13 @@ var _interopRequireDefault=__webpack_require__("4ea4"),_createClass2=(Object.def
|
|
|
4438
4438
|
|
|
4439
4439
|
/***/ }),
|
|
4440
4440
|
|
|
4441
|
+
/***/ "1810":
|
|
4442
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4443
|
+
|
|
4444
|
+
// extracted by mini-css-extract-plugin
|
|
4445
|
+
|
|
4446
|
+
/***/ }),
|
|
4447
|
+
|
|
4441
4448
|
/***/ "183a":
|
|
4442
4449
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4443
4450
|
|
|
@@ -16125,6 +16132,17 @@ var RenderEvent = /** @class */ (function (_super) {
|
|
|
16125
16132
|
/* harmony default export */ __webpack_exports__["a"] = (RenderEvent);
|
|
16126
16133
|
//# sourceMappingURL=Event.js.map
|
|
16127
16134
|
|
|
16135
|
+
/***/ }),
|
|
16136
|
+
|
|
16137
|
+
/***/ "3391":
|
|
16138
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16139
|
+
|
|
16140
|
+
"use strict";
|
|
16141
|
+
/* 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");
|
|
16142
|
+
/* 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__);
|
|
16143
|
+
/* unused harmony reexport * */
|
|
16144
|
+
|
|
16145
|
+
|
|
16128
16146
|
/***/ }),
|
|
16129
16147
|
|
|
16130
16148
|
/***/ "345d":
|
|
@@ -25613,6 +25631,13 @@ function zoomByDelta(view, delta, opt_anchor, opt_duration) {
|
|
|
25613
25631
|
|
|
25614
25632
|
/***/ }),
|
|
25615
25633
|
|
|
25634
|
+
/***/ "4409":
|
|
25635
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
25636
|
+
|
|
25637
|
+
// extracted by mini-css-extract-plugin
|
|
25638
|
+
|
|
25639
|
+
/***/ }),
|
|
25640
|
+
|
|
25616
25641
|
/***/ "448a":
|
|
25617
25642
|
/***/ (function(module, exports, __webpack_require__) {
|
|
25618
25643
|
|
|
@@ -25632,13 +25657,6 @@ module.exports = _toConsumableArray, module.exports.__esModule = true, module.ex
|
|
|
25632
25657
|
|
|
25633
25658
|
/***/ }),
|
|
25634
25659
|
|
|
25635
|
-
/***/ "44d5":
|
|
25636
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
25637
|
-
|
|
25638
|
-
// extracted by mini-css-extract-plugin
|
|
25639
|
-
|
|
25640
|
-
/***/ }),
|
|
25641
|
-
|
|
25642
25660
|
/***/ "47e4":
|
|
25643
25661
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
25644
25662
|
|
|
@@ -66288,17 +66306,6 @@ function cloneGeometries(geometries) {
|
|
|
66288
66306
|
/* harmony default export */ __webpack_exports__["a"] = (GeometryCollection);
|
|
66289
66307
|
//# sourceMappingURL=GeometryCollection.js.map
|
|
66290
66308
|
|
|
66291
|
-
/***/ }),
|
|
66292
|
-
|
|
66293
|
-
/***/ "d8bd":
|
|
66294
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
66295
|
-
|
|
66296
|
-
"use strict";
|
|
66297
|
-
/* 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");
|
|
66298
|
-
/* 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__);
|
|
66299
|
-
/* unused harmony reexport * */
|
|
66300
|
-
|
|
66301
|
-
|
|
66302
66309
|
/***/ }),
|
|
66303
66310
|
|
|
66304
66311
|
/***/ "da2f":
|
|
@@ -73941,6 +73948,17 @@ var VectorContext = /** @class */ (function () {
|
|
|
73941
73948
|
/* harmony default export */ __webpack_exports__["a"] = (VectorContext);
|
|
73942
73949
|
//# sourceMappingURL=VectorContext.js.map
|
|
73943
73950
|
|
|
73951
|
+
/***/ }),
|
|
73952
|
+
|
|
73953
|
+
/***/ "f7d8":
|
|
73954
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
73955
|
+
|
|
73956
|
+
"use strict";
|
|
73957
|
+
/* 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");
|
|
73958
|
+
/* 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__);
|
|
73959
|
+
/* unused harmony reexport * */
|
|
73960
|
+
|
|
73961
|
+
|
|
73944
73962
|
/***/ }),
|
|
73945
73963
|
|
|
73946
73964
|
/***/ "f8b5":
|
|
@@ -91634,7 +91652,7 @@ if (typeof window !== 'undefined') {
|
|
|
91634
91652
|
// Indicate to webpack that this file can be concatenated
|
|
91635
91653
|
/* harmony default export */ var setPublicPath = (null);
|
|
91636
91654
|
|
|
91637
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
91655
|
+
// 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&
|
|
91638
91656
|
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:{
|
|
91639
91657
|
'left':!_vm.isRight,
|
|
91640
91658
|
'right':_vm.isRight
|
|
@@ -92878,14 +92896,14 @@ class mapTool_MapToolDto {
|
|
|
92878
92896
|
}
|
|
92879
92897
|
|
|
92880
92898
|
}
|
|
92881
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
92899
|
+
// 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&
|
|
92882
92900
|
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)}
|
|
92883
92901
|
var srcvue_type_template_id_5b062201_scoped_true_staticRenderFns = []
|
|
92884
92902
|
|
|
92885
92903
|
|
|
92886
92904
|
// CONCATENATED MODULE: ./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=5b062201&scoped=true&
|
|
92887
92905
|
|
|
92888
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
92906
|
+
// 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&
|
|
92889
92907
|
var srcvue_type_template_id_735d1508_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
92890
92908
|
var srcvue_type_template_id_735d1508_staticRenderFns = []
|
|
92891
92909
|
|
|
@@ -93430,12 +93448,12 @@ var src_component = normalizeComponent(
|
|
|
93430
93448
|
)
|
|
93431
93449
|
|
|
93432
93450
|
/* harmony default export */ var ryMapTool_src = (src_component.exports);
|
|
93433
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
93434
|
-
var
|
|
93435
|
-
var
|
|
93451
|
+
// 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&
|
|
93452
|
+
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()}
|
|
93453
|
+
var newIndexvue_type_template_id_10ed49d6_scoped_true_staticRenderFns = []
|
|
93436
93454
|
|
|
93437
93455
|
|
|
93438
|
-
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=
|
|
93456
|
+
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=10ed49d6&scoped=true&
|
|
93439
93457
|
|
|
93440
93458
|
// CONCATENATED MODULE: ./src/components/maps/models/switchMap/switchMap.js
|
|
93441
93459
|
|
|
@@ -93580,7 +93598,6 @@ class switchMap_MapToolDto {
|
|
|
93580
93598
|
// },
|
|
93581
93599
|
mapTypeAndLayer: {
|
|
93582
93600
|
handler(e) {
|
|
93583
|
-
console.log('111111');
|
|
93584
93601
|
if (!Array.isArray(e) || !e[1]) return;
|
|
93585
93602
|
e.forEach((r, index) => {
|
|
93586
93603
|
if (index === 1 && !this.switchMapDefaultTypeOrLayer) {
|
|
@@ -93740,8 +93757,8 @@ class switchMap_MapToolDto {
|
|
|
93740
93757
|
});
|
|
93741
93758
|
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=script&lang=js&
|
|
93742
93759
|
/* harmony default export */ var src_newIndexvue_type_script_lang_js_ = (newIndexvue_type_script_lang_js_);
|
|
93743
|
-
// EXTERNAL MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=style&index=0&id=
|
|
93744
|
-
var
|
|
93760
|
+
// EXTERNAL MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=style&index=0&id=10ed49d6&prod&scoped=true&lang=scss&
|
|
93761
|
+
var newIndexvue_type_style_index_0_id_10ed49d6_prod_scoped_true_lang_scss_ = __webpack_require__("f7d8");
|
|
93745
93762
|
|
|
93746
93763
|
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue
|
|
93747
93764
|
|
|
@@ -93754,11 +93771,11 @@ var newIndexvue_type_style_index_0_id_bb9d499c_prod_scoped_true_lang_scss_ = __w
|
|
|
93754
93771
|
|
|
93755
93772
|
var newIndex_component = normalizeComponent(
|
|
93756
93773
|
src_newIndexvue_type_script_lang_js_,
|
|
93757
|
-
|
|
93758
|
-
|
|
93774
|
+
newIndexvue_type_template_id_10ed49d6_scoped_true_render,
|
|
93775
|
+
newIndexvue_type_template_id_10ed49d6_scoped_true_staticRenderFns,
|
|
93759
93776
|
false,
|
|
93760
93777
|
null,
|
|
93761
|
-
"
|
|
93778
|
+
"10ed49d6",
|
|
93762
93779
|
null
|
|
93763
93780
|
|
|
93764
93781
|
)
|
|
@@ -94165,7 +94182,7 @@ ryMapTool_src.install = Vue => {
|
|
|
94165
94182
|
};
|
|
94166
94183
|
|
|
94167
94184
|
/* harmony default export */ var ryMapTool = (ryMapTool_src);
|
|
94168
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
94185
|
+
// 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&
|
|
94169
94186
|
var srcvue_type_template_id_3e8f1c13_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
94170
94187
|
var srcvue_type_template_id_3e8f1c13_staticRenderFns = []
|
|
94171
94188
|
|
|
@@ -94539,7 +94556,7 @@ ryPolygon_src.install = Vue => {
|
|
|
94539
94556
|
};
|
|
94540
94557
|
|
|
94541
94558
|
/* harmony default export */ var ryPolygon = (ryPolygon_src);
|
|
94542
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
94559
|
+
// 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&
|
|
94543
94560
|
var srcvue_type_template_id_bd05c456_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
94544
94561
|
var srcvue_type_template_id_bd05c456_staticRenderFns = []
|
|
94545
94562
|
|
|
@@ -94549,104 +94566,29 @@ var srcvue_type_template_id_bd05c456_staticRenderFns = []
|
|
|
94549
94566
|
// CONCATENATED MODULE: ./src/components/maps/models/ryPolygons/ryPolygons.js
|
|
94550
94567
|
|
|
94551
94568
|
|
|
94552
|
-
class
|
|
94569
|
+
class ryPolygons_RyKMLDto extends base_Base {
|
|
94553
94570
|
constructor(...args) {
|
|
94554
94571
|
super(...args);
|
|
94555
94572
|
|
|
94556
|
-
_defineProperty(this, "
|
|
94557
|
-
type: Array,
|
|
94558
|
-
default: () => []
|
|
94559
|
-
});
|
|
94560
|
-
|
|
94561
|
-
_defineProperty(this, "insert", {
|
|
94562
|
-
type: Object,
|
|
94563
|
-
default: () => null
|
|
94564
|
-
});
|
|
94565
|
-
|
|
94566
|
-
_defineProperty(this, "inserts", {
|
|
94573
|
+
_defineProperty(this, "model", {
|
|
94567
94574
|
type: Array,
|
|
94568
94575
|
default: () => []
|
|
94569
94576
|
});
|
|
94570
94577
|
|
|
94571
|
-
_defineProperty(this, "
|
|
94572
|
-
type: Boolean,
|
|
94573
|
-
default: true
|
|
94574
|
-
});
|
|
94575
|
-
|
|
94576
|
-
_defineProperty(this, "isShowPolygon", {
|
|
94578
|
+
_defineProperty(this, "isShow", {
|
|
94577
94579
|
type: Object,
|
|
94578
94580
|
default: () => null
|
|
94579
94581
|
});
|
|
94580
94582
|
|
|
94581
|
-
_defineProperty(this, "isShowPolygons", {
|
|
94582
|
-
type: Array,
|
|
94583
|
-
default: () => []
|
|
94584
|
-
});
|
|
94585
|
-
|
|
94586
94583
|
_defineProperty(this, "clear", {
|
|
94587
94584
|
type: Boolean,
|
|
94588
94585
|
default: false
|
|
94589
94586
|
});
|
|
94590
94587
|
|
|
94591
|
-
_defineProperty(this, "isCheckPointHideAll", {
|
|
94592
|
-
type: Boolean,
|
|
94593
|
-
default: false
|
|
94594
|
-
});
|
|
94595
|
-
|
|
94596
|
-
_defineProperty(this, "isCheckPointHide", {
|
|
94597
|
-
type: Object,
|
|
94598
|
-
default: () => null
|
|
94599
|
-
});
|
|
94600
|
-
|
|
94601
|
-
_defineProperty(this, "isCheckPointHides", {
|
|
94602
|
-
type: Array,
|
|
94603
|
-
default: () => []
|
|
94604
|
-
});
|
|
94605
|
-
|
|
94606
|
-
_defineProperty(this, "polygonColor", {
|
|
94607
|
-
type: Object,
|
|
94608
|
-
default: () => null
|
|
94609
|
-
});
|
|
94610
|
-
|
|
94611
|
-
_defineProperty(this, "polygonColors", {
|
|
94612
|
-
type: Array,
|
|
94613
|
-
default: () => []
|
|
94614
|
-
});
|
|
94615
|
-
|
|
94616
|
-
_defineProperty(this, "text", {
|
|
94617
|
-
type: Object,
|
|
94618
|
-
default: () => null
|
|
94619
|
-
});
|
|
94620
|
-
|
|
94621
94588
|
_defineProperty(this, "isFit", {
|
|
94622
94589
|
type: Boolean,
|
|
94623
94590
|
default: true
|
|
94624
94591
|
});
|
|
94625
|
-
|
|
94626
|
-
_defineProperty(this, "remove", {
|
|
94627
|
-
type: [String, Number, Object],
|
|
94628
|
-
default: () => null
|
|
94629
|
-
});
|
|
94630
|
-
|
|
94631
|
-
_defineProperty(this, "removes", {
|
|
94632
|
-
type: Array,
|
|
94633
|
-
default: () => []
|
|
94634
|
-
});
|
|
94635
|
-
|
|
94636
|
-
_defineProperty(this, "ranges", {
|
|
94637
|
-
type: Array,
|
|
94638
|
-
default: () => []
|
|
94639
|
-
});
|
|
94640
|
-
|
|
94641
|
-
_defineProperty(this, "range", {
|
|
94642
|
-
type: [String, Number, Object],
|
|
94643
|
-
default: () => null
|
|
94644
|
-
});
|
|
94645
|
-
|
|
94646
|
-
_defineProperty(this, "restFit", {
|
|
94647
|
-
type: Boolean,
|
|
94648
|
-
default: false
|
|
94649
|
-
});
|
|
94650
94592
|
}
|
|
94651
94593
|
|
|
94652
94594
|
}
|
|
@@ -94658,7 +94600,7 @@ class ryPolygons_PolygonsDto extends base_Base {
|
|
|
94658
94600
|
|
|
94659
94601
|
/* harmony default export */ var ryPolygons_srcvue_type_script_lang_js_ = ({
|
|
94660
94602
|
name: 'RyPolygons',
|
|
94661
|
-
props: { ...new
|
|
94603
|
+
props: { ...new ryPolygons_RyKMLDto()
|
|
94662
94604
|
},
|
|
94663
94605
|
|
|
94664
94606
|
data() {
|
|
@@ -95278,7 +95220,7 @@ ryPolygons_src.install = Vue => {
|
|
|
95278
95220
|
};
|
|
95279
95221
|
|
|
95280
95222
|
/* harmony default export */ var ryPolygons = (ryPolygons_src);
|
|
95281
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95223
|
+
// 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&
|
|
95282
95224
|
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')}
|
|
95283
95225
|
var srcvue_type_template_id_148ba5e7_scoped_true_staticRenderFns = []
|
|
95284
95226
|
|
|
@@ -95592,7 +95534,7 @@ ryClusters_src.install = Vue => {
|
|
|
95592
95534
|
};
|
|
95593
95535
|
|
|
95594
95536
|
/* harmony default export */ var ryClusters = (ryClusters_src);
|
|
95595
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95537
|
+
// 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&
|
|
95596
95538
|
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')}
|
|
95597
95539
|
var srcvue_type_template_id_64b08b64_scoped_true_staticRenderFns = []
|
|
95598
95540
|
|
|
@@ -95781,7 +95723,7 @@ ryClustersMarker_src.install = Vue => {
|
|
|
95781
95723
|
};
|
|
95782
95724
|
|
|
95783
95725
|
/* harmony default export */ var ryClustersMarker = (ryClustersMarker_src);
|
|
95784
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95726
|
+
// 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&
|
|
95785
95727
|
var srcvue_type_template_id_2a5ab464_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
95786
95728
|
var srcvue_type_template_id_2a5ab464_staticRenderFns = []
|
|
95787
95729
|
|
|
@@ -96041,7 +95983,7 @@ ryPolygonGeo_src.install = Vue => {
|
|
|
96041
95983
|
};
|
|
96042
95984
|
|
|
96043
95985
|
/* harmony default export */ var ryPolygonGeo = (ryPolygonGeo_src);
|
|
96044
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95986
|
+
// 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&
|
|
96045
95987
|
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"})}
|
|
96046
95988
|
var srcvue_type_template_id_38afeddc_scoped_true_staticRenderFns = []
|
|
96047
95989
|
|
|
@@ -96257,12 +96199,12 @@ ryVectorMap_src.install = Vue => {
|
|
|
96257
96199
|
};
|
|
96258
96200
|
|
|
96259
96201
|
/* harmony default export */ var ryVectorMap = (ryVectorMap_src);
|
|
96260
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
96261
|
-
var
|
|
96262
|
-
var
|
|
96202
|
+
// 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&
|
|
96203
|
+
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()])}
|
|
96204
|
+
var srcvue_type_template_id_75840f3c_scoped_true_staticRenderFns = []
|
|
96263
96205
|
|
|
96264
96206
|
|
|
96265
|
-
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=template&id=
|
|
96207
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=template&id=75840f3c&scoped=true&
|
|
96266
96208
|
|
|
96267
96209
|
// CONCATENATED MODULE: ./src/components/maps/models/ryLines/ryLines.js
|
|
96268
96210
|
|
|
@@ -96291,6 +96233,11 @@ class ryLines_LineDto extends base_Base {
|
|
|
96291
96233
|
default: true
|
|
96292
96234
|
});
|
|
96293
96235
|
|
|
96236
|
+
_defineProperty(this, "isShowPlayback", {
|
|
96237
|
+
type: Boolean,
|
|
96238
|
+
default: false
|
|
96239
|
+
});
|
|
96240
|
+
|
|
96294
96241
|
_defineProperty(this, "lineAppend", {
|
|
96295
96242
|
type: Array,
|
|
96296
96243
|
default: () => []
|
|
@@ -96332,6 +96279,32 @@ class ryLines_LineDto extends base_Base {
|
|
|
96332
96279
|
//
|
|
96333
96280
|
//
|
|
96334
96281
|
//
|
|
96282
|
+
//
|
|
96283
|
+
//
|
|
96284
|
+
//
|
|
96285
|
+
//
|
|
96286
|
+
//
|
|
96287
|
+
//
|
|
96288
|
+
//
|
|
96289
|
+
//
|
|
96290
|
+
//
|
|
96291
|
+
//
|
|
96292
|
+
//
|
|
96293
|
+
//
|
|
96294
|
+
//
|
|
96295
|
+
//
|
|
96296
|
+
//
|
|
96297
|
+
//
|
|
96298
|
+
//
|
|
96299
|
+
//
|
|
96300
|
+
//
|
|
96301
|
+
//
|
|
96302
|
+
//
|
|
96303
|
+
//
|
|
96304
|
+
//
|
|
96305
|
+
//
|
|
96306
|
+
//
|
|
96307
|
+
//
|
|
96335
96308
|
|
|
96336
96309
|
|
|
96337
96310
|
/* harmony default export */ var ryLines_srcvue_type_script_lang_js_ = ({
|
|
@@ -96353,26 +96326,49 @@ class ryLines_LineDto extends base_Base {
|
|
|
96353
96326
|
pineArr: [],
|
|
96354
96327
|
lastLineX: 0,
|
|
96355
96328
|
lastLineY: 0,
|
|
96356
|
-
|
|
96357
|
-
|
|
96329
|
+
lastLineX2: 0,
|
|
96330
|
+
lastLineY2: 0,
|
|
96331
|
+
cacheArr: new Array(),
|
|
96332
|
+
cacheModelArr: new Map(),
|
|
96333
|
+
cacheColors: new Map(),
|
|
96334
|
+
cacheLenArr: new Array(),
|
|
96335
|
+
cacheLines: new Array(),
|
|
96336
|
+
cacheLineMaps: new Map(),
|
|
96337
|
+
cacheScales: new Array(),
|
|
96358
96338
|
isFist: true,
|
|
96359
96339
|
lastColor: null,
|
|
96360
|
-
|
|
96340
|
+
len: 0,
|
|
96341
|
+
am: new ry_map["AM"](),
|
|
96342
|
+
index: 0,
|
|
96343
|
+
intervalId: null,
|
|
96344
|
+
selectActive: [false, true, false, false],
|
|
96345
|
+
marks: {},
|
|
96346
|
+
marks2: {},
|
|
96347
|
+
// 轨迹回放
|
|
96348
|
+
isPlayback: false,
|
|
96349
|
+
// 暂停轨迹回放
|
|
96350
|
+
isStop: false,
|
|
96351
|
+
playSpeed: 100
|
|
96361
96352
|
};
|
|
96362
96353
|
},
|
|
96363
96354
|
|
|
96364
96355
|
watch: {
|
|
96365
96356
|
model(val) {
|
|
96366
96357
|
this.init();
|
|
96358
|
+
if (!val) return;
|
|
96359
|
+
this.insertCache(val.pointArr);
|
|
96367
96360
|
},
|
|
96368
96361
|
|
|
96369
96362
|
linenIsert(val) {
|
|
96370
96363
|
if (!this.map || !val) return;
|
|
96364
|
+
this.insertCache(val);
|
|
96371
96365
|
|
|
96372
96366
|
this._insertLineAndMarker(val);
|
|
96373
96367
|
},
|
|
96374
96368
|
|
|
96375
|
-
gpsType(val) {
|
|
96369
|
+
gpsType(val) {
|
|
96370
|
+
this.selectGPSAll(val);
|
|
96371
|
+
},
|
|
96376
96372
|
|
|
96377
96373
|
clearLiens(val) {
|
|
96378
96374
|
if (val) {
|
|
@@ -96385,7 +96381,33 @@ class ryLines_LineDto extends base_Base {
|
|
|
96385
96381
|
this.appendCoordinate(val);
|
|
96386
96382
|
this.setMarkerPoint(this.endMarker, val);
|
|
96387
96383
|
}
|
|
96388
|
-
}
|
|
96384
|
+
},
|
|
96385
|
+
|
|
96386
|
+
isShowPlayback(val) {
|
|
96387
|
+
if (!val) {
|
|
96388
|
+
this.endPlaybackLines();
|
|
96389
|
+
this.index = 0;
|
|
96390
|
+
this.resetPyalPanel();
|
|
96391
|
+
return;
|
|
96392
|
+
}
|
|
96393
|
+
|
|
96394
|
+
delete this.marks2[this.len];
|
|
96395
|
+
this.marks = this.marks2;
|
|
96396
|
+
} // isPlayback(val){
|
|
96397
|
+
// if(val){
|
|
96398
|
+
// this.trackPlayback();
|
|
96399
|
+
// return;
|
|
96400
|
+
// }
|
|
96401
|
+
// this.endPlaybackLines();
|
|
96402
|
+
// },
|
|
96403
|
+
// isStop(val){
|
|
96404
|
+
// if(val){
|
|
96405
|
+
// this._clearInterval();
|
|
96406
|
+
// return;
|
|
96407
|
+
// }
|
|
96408
|
+
// this.trackPlayback();
|
|
96409
|
+
// },
|
|
96410
|
+
|
|
96389
96411
|
|
|
96390
96412
|
},
|
|
96391
96413
|
|
|
@@ -96397,14 +96419,41 @@ class ryLines_LineDto extends base_Base {
|
|
|
96397
96419
|
init() {
|
|
96398
96420
|
if (!this.map) return;
|
|
96399
96421
|
this.clearLine();
|
|
96400
|
-
if (!this.model) return;
|
|
96422
|
+
if (!this.model && !this.linenIsert) return;
|
|
96401
96423
|
this.lastType = this.gpsType;
|
|
96402
96424
|
|
|
96403
|
-
|
|
96425
|
+
if (this.model) {
|
|
96426
|
+
this.insertCache(this.model);
|
|
96427
|
+
|
|
96428
|
+
this._insertLineAndMarker(this.model);
|
|
96429
|
+
}
|
|
96430
|
+
|
|
96431
|
+
if (this.linenIsert) {
|
|
96432
|
+
this.insertCache(this.linenIsert);
|
|
96433
|
+
|
|
96434
|
+
this._insertLineAndMarker(this.linenIsert);
|
|
96435
|
+
}
|
|
96436
|
+
},
|
|
96437
|
+
|
|
96438
|
+
insertCache(model) {
|
|
96439
|
+
if (model) {
|
|
96440
|
+
const {
|
|
96441
|
+
playbackColor,
|
|
96442
|
+
pointArr
|
|
96443
|
+
} = model;
|
|
96444
|
+
const len = pointArr.length;
|
|
96445
|
+
if (!pointArr.length) return;
|
|
96446
|
+
this.len += len;
|
|
96447
|
+
this.cacheArr.push(...model.pointArr);
|
|
96448
|
+
this.cacheColors.set(this.len, playbackColor);
|
|
96449
|
+
this.cacheLenArr.push(len);
|
|
96450
|
+
this.marks2[this.len] = '';
|
|
96451
|
+
this.cacheScales.push(this.len);
|
|
96452
|
+
this.cacheModelArr.set(this.len, model);
|
|
96453
|
+
}
|
|
96404
96454
|
},
|
|
96405
96455
|
|
|
96406
96456
|
_insertLineAndMarker(val) {
|
|
96407
|
-
const color = val.color;
|
|
96408
96457
|
const arr = val.pointArr;
|
|
96409
96458
|
|
|
96410
96459
|
if (this.isLineFit) {
|
|
@@ -96413,13 +96462,18 @@ class ryLines_LineDto extends base_Base {
|
|
|
96413
96462
|
|
|
96414
96463
|
this.initMarker(arr[0]);
|
|
96415
96464
|
|
|
96416
|
-
if (!val.isAppend
|
|
96417
|
-
this._insertPoint(val);
|
|
96465
|
+
if (!val.isAppend) {
|
|
96466
|
+
this._insertPoint(val, [this.lastLineX, this.lastLineY]);
|
|
96418
96467
|
|
|
96419
96468
|
const line = this.createPolyline(val);
|
|
96420
96469
|
const len = arr.length - 1;
|
|
96421
96470
|
this.setMarkerPoint(this.endMarker, arr[len]);
|
|
96422
|
-
|
|
96471
|
+
const {
|
|
96472
|
+
x,
|
|
96473
|
+
y
|
|
96474
|
+
} = this.restLastData(arr);
|
|
96475
|
+
this.lastLineX = x;
|
|
96476
|
+
this.lastLineY = y;
|
|
96423
96477
|
this.pineArr.push(line);
|
|
96424
96478
|
return;
|
|
96425
96479
|
}
|
|
@@ -96432,6 +96486,21 @@ class ryLines_LineDto extends base_Base {
|
|
|
96432
96486
|
this.restLastData(arr);
|
|
96433
96487
|
},
|
|
96434
96488
|
|
|
96489
|
+
_insertLineAndMarker2(val) {
|
|
96490
|
+
this._insertPoint(val, [this.lastLineX2, this.lastLineY2]);
|
|
96491
|
+
|
|
96492
|
+
const arr = val.pointArr;
|
|
96493
|
+
const line = this.createPolyline(val);
|
|
96494
|
+
const {
|
|
96495
|
+
x,
|
|
96496
|
+
y
|
|
96497
|
+
} = this.restLastData(arr);
|
|
96498
|
+
this.lastLineX2 = x;
|
|
96499
|
+
this.lastLineY2 = y;
|
|
96500
|
+
this.cacheLines.push(line);
|
|
96501
|
+
return;
|
|
96502
|
+
},
|
|
96503
|
+
|
|
96435
96504
|
async calculateLineBBOX(arr) {
|
|
96436
96505
|
return await new Promise(r => {
|
|
96437
96506
|
arr.forEach(r => {
|
|
@@ -96440,7 +96509,14 @@ class ryLines_LineDto extends base_Base {
|
|
|
96440
96509
|
Y: r[1]
|
|
96441
96510
|
});
|
|
96442
96511
|
});
|
|
96443
|
-
|
|
96512
|
+
let amGpsArr = [];
|
|
96513
|
+
|
|
96514
|
+
if (this.gpsType) {
|
|
96515
|
+
amGpsArr = this.am.getLngLatGCJ02();
|
|
96516
|
+
} else {
|
|
96517
|
+
amGpsArr = this.am.getLngLats();
|
|
96518
|
+
}
|
|
96519
|
+
|
|
96444
96520
|
Object(ry_map["fitNew"])(this.map, [[amGpsArr[0], amGpsArr[1]], [amGpsArr[2], amGpsArr[3]]]);
|
|
96445
96521
|
r();
|
|
96446
96522
|
});
|
|
@@ -96464,14 +96540,18 @@ class ryLines_LineDto extends base_Base {
|
|
|
96464
96540
|
restLastData(arr) {
|
|
96465
96541
|
if (arr.length > 0) {
|
|
96466
96542
|
const [x, y] = arr[arr.length - 1];
|
|
96467
|
-
|
|
96468
|
-
|
|
96543
|
+
return {
|
|
96544
|
+
x,
|
|
96545
|
+
y
|
|
96546
|
+
};
|
|
96469
96547
|
}
|
|
96470
96548
|
},
|
|
96471
96549
|
|
|
96472
|
-
_insertPoint(val) {
|
|
96473
|
-
|
|
96474
|
-
|
|
96550
|
+
_insertPoint(val, points) {
|
|
96551
|
+
const [x, y] = points;
|
|
96552
|
+
|
|
96553
|
+
if (x > 0 && y > 0 && val) {
|
|
96554
|
+
val.pointArr.unshift(points);
|
|
96475
96555
|
}
|
|
96476
96556
|
},
|
|
96477
96557
|
|
|
@@ -96479,7 +96559,7 @@ class ryLines_LineDto extends base_Base {
|
|
|
96479
96559
|
color: 'rgb(0,0,255)',
|
|
96480
96560
|
width: 2,
|
|
96481
96561
|
pointArr: [],
|
|
96482
|
-
zIndex:
|
|
96562
|
+
zIndex: 1
|
|
96483
96563
|
}) {
|
|
96484
96564
|
return new ry_map["Polyline"]({ ...polylineModel,
|
|
96485
96565
|
type: this.gpsType
|
|
@@ -96543,14 +96623,143 @@ class ryLines_LineDto extends base_Base {
|
|
|
96543
96623
|
},
|
|
96544
96624
|
|
|
96545
96625
|
clearLine() {
|
|
96626
|
+
this.resetPyalPanel();
|
|
96546
96627
|
this.removeLines();
|
|
96547
96628
|
this.removeLineMarker();
|
|
96548
|
-
this.
|
|
96629
|
+
this.cacheArr = [];
|
|
96549
96630
|
this.lastColor = null;
|
|
96550
96631
|
this.lastLineX = 0;
|
|
96551
96632
|
this.lastLineY = 0;
|
|
96552
96633
|
this.am = null;
|
|
96553
96634
|
this.am = new ry_map["AM"]();
|
|
96635
|
+
this.marks = {};
|
|
96636
|
+
this.marks2 = {};
|
|
96637
|
+
|
|
96638
|
+
this._clearInterval();
|
|
96639
|
+
|
|
96640
|
+
this.clearCacheLines();
|
|
96641
|
+
},
|
|
96642
|
+
|
|
96643
|
+
_clearInterval() {
|
|
96644
|
+
if (this.intervalId) {
|
|
96645
|
+
clearInterval(this.intervalId);
|
|
96646
|
+
}
|
|
96647
|
+
},
|
|
96648
|
+
|
|
96649
|
+
clearCacheLines() {
|
|
96650
|
+
this.endPlaybackLines();
|
|
96651
|
+
this.cacheLenArr = [];
|
|
96652
|
+
this.cacheArr = [];
|
|
96653
|
+
this.cacheColors.clear();
|
|
96654
|
+
this.cacheModelArr.clear();
|
|
96655
|
+
this.len = 0;
|
|
96656
|
+
this.cacheScales = [];
|
|
96657
|
+
this.index = 0;
|
|
96658
|
+
},
|
|
96659
|
+
|
|
96660
|
+
endPlaybackLines() {
|
|
96661
|
+
this._clearInterval();
|
|
96662
|
+
|
|
96663
|
+
this.cacheLines.forEach(r => {
|
|
96664
|
+
r.removePolyline();
|
|
96665
|
+
});
|
|
96666
|
+
|
|
96667
|
+
if (this.moveMarker) {
|
|
96668
|
+
this.map.removeOverlay(this.moveMarker.getMarker());
|
|
96669
|
+
}
|
|
96670
|
+
|
|
96671
|
+
this.isPlayback = false;
|
|
96672
|
+
this.isStop = false;
|
|
96673
|
+
this.cacheLines = [];
|
|
96674
|
+
this.cacheLineMaps.clear();
|
|
96675
|
+
this.moveMarker = null; // this.index = 0;
|
|
96676
|
+
// this.lastColor = null;
|
|
96677
|
+
|
|
96678
|
+
this.lastLineX2 = 0;
|
|
96679
|
+
this.lastLineY2 = 0;
|
|
96680
|
+
},
|
|
96681
|
+
|
|
96682
|
+
stopPlaybackLines(val) {
|
|
96683
|
+
this.isPlayback = false;
|
|
96684
|
+
this.isStop = false;
|
|
96685
|
+
|
|
96686
|
+
if (val) {
|
|
96687
|
+
this._clearInterval();
|
|
96688
|
+
|
|
96689
|
+
return;
|
|
96690
|
+
}
|
|
96691
|
+
|
|
96692
|
+
this.trackPlayback();
|
|
96693
|
+
},
|
|
96694
|
+
|
|
96695
|
+
createTrackLineAndMarker(index = 0, index2 = 0) {
|
|
96696
|
+
const key = index;
|
|
96697
|
+
const {
|
|
96698
|
+
playbackColor,
|
|
96699
|
+
width,
|
|
96700
|
+
zIndex
|
|
96701
|
+
} = this.cacheModelArr.get(key);
|
|
96702
|
+
const line = this.createPolyline({
|
|
96703
|
+
color: playbackColor,
|
|
96704
|
+
isAppend: false,
|
|
96705
|
+
width,
|
|
96706
|
+
pointArr: [],
|
|
96707
|
+
zIndex
|
|
96708
|
+
}, this.gpsType);
|
|
96709
|
+
this.lastColor = playbackColor;
|
|
96710
|
+
this.cacheLines.push(line);
|
|
96711
|
+
|
|
96712
|
+
if (this.moveMarkerDto && !this.moveMarker) {
|
|
96713
|
+
this.moveMarker = this.createStartMarker(this.moveMarkerDto, this.cacheArr[index2]);
|
|
96714
|
+
}
|
|
96715
|
+
},
|
|
96716
|
+
|
|
96717
|
+
trackPlayback() {
|
|
96718
|
+
if (!this.cacheLines.length) {
|
|
96719
|
+
this.createTrackLineAndMarker(this.cacheScales[0], 0);
|
|
96720
|
+
}
|
|
96721
|
+
|
|
96722
|
+
this.intervalId = setInterval(r => {
|
|
96723
|
+
if (this.index >= this.len || !this.isPlayback) {
|
|
96724
|
+
this._clearInterval();
|
|
96725
|
+
|
|
96726
|
+
this.index = 0;
|
|
96727
|
+
this.isStop = false;
|
|
96728
|
+
this.$emit('trackPlayEvent', {
|
|
96729
|
+
index: this.index,
|
|
96730
|
+
points: []
|
|
96731
|
+
});
|
|
96732
|
+
return;
|
|
96733
|
+
}
|
|
96734
|
+
|
|
96735
|
+
const key = this.getKey(this.index);
|
|
96736
|
+
|
|
96737
|
+
if (this.cacheColors.has(key) && !this.cacheLineMaps.has(key)) {
|
|
96738
|
+
if (!this.cacheLineMaps.has(key)) {
|
|
96739
|
+
this.createTrackLineAndMarker(key, this.index);
|
|
96740
|
+
const line = this.cacheLines[this.cacheLines.length - 1];
|
|
96741
|
+
this.cacheLineMaps.set(key, line);
|
|
96742
|
+
|
|
96743
|
+
const _index = this.index - 1 == -1 ? 0 : this.index - 1;
|
|
96744
|
+
|
|
96745
|
+
line.appendCoordinate(this.cacheArr[_index], this.gpsType);
|
|
96746
|
+
this.$emit('trackPlayEvent', {
|
|
96747
|
+
index: this.index,
|
|
96748
|
+
points: this.cacheArr[_index]
|
|
96749
|
+
});
|
|
96750
|
+
}
|
|
96751
|
+
}
|
|
96752
|
+
|
|
96753
|
+
const line = this.cacheLines[this.cacheLines.length - 1];
|
|
96754
|
+
const points = this.cacheArr[this.index];
|
|
96755
|
+
this.setMarkerPoint(this.moveMarker, points);
|
|
96756
|
+
line.appendCoordinate(points, this.gpsType);
|
|
96757
|
+
this.$emit('trackPlayEvent', {
|
|
96758
|
+
index: this.index,
|
|
96759
|
+
points
|
|
96760
|
+
});
|
|
96761
|
+
this.index += 1;
|
|
96762
|
+
}, this.playSpeed);
|
|
96554
96763
|
},
|
|
96555
96764
|
|
|
96556
96765
|
appendCoordinate(coordinate = []) {
|
|
@@ -96565,30 +96774,190 @@ class ryLines_LineDto extends base_Base {
|
|
|
96565
96774
|
|
|
96566
96775
|
;
|
|
96567
96776
|
const line = this.pineArr[this.pineArr.length - 1];
|
|
96568
|
-
line.appendCoordinate(coordinate);
|
|
96777
|
+
line.appendCoordinate(coordinate, this.gpsType);
|
|
96778
|
+
},
|
|
96779
|
+
|
|
96780
|
+
formatTooltip(val) {
|
|
96781
|
+
return val / 100;
|
|
96569
96782
|
},
|
|
96570
96783
|
|
|
96571
|
-
|
|
96784
|
+
getKeys(val) {
|
|
96785
|
+
const arr = [];
|
|
96786
|
+
|
|
96787
|
+
for (let i = 0; i < this.cacheScales.length; i++) {
|
|
96788
|
+
if (val >= this.cacheScales[i]) {
|
|
96789
|
+
arr.push(this.cacheScales[i]);
|
|
96790
|
+
continue;
|
|
96791
|
+
}
|
|
96792
|
+
|
|
96793
|
+
arr.push(this.cacheScales[i]);
|
|
96794
|
+
break;
|
|
96795
|
+
}
|
|
96796
|
+
|
|
96797
|
+
return arr;
|
|
96798
|
+
},
|
|
96799
|
+
|
|
96800
|
+
getKey(val) {
|
|
96801
|
+
for (let i = 0; i < this.cacheScales.length; i++) {
|
|
96802
|
+
const key = this.cacheScales[i];
|
|
96803
|
+
|
|
96804
|
+
if (val <= key) {
|
|
96805
|
+
return key;
|
|
96806
|
+
}
|
|
96807
|
+
}
|
|
96808
|
+
|
|
96809
|
+
return 0;
|
|
96810
|
+
},
|
|
96811
|
+
|
|
96812
|
+
createLineModels(keys, points, step) {
|
|
96813
|
+
const arr = [];
|
|
96814
|
+
const _points = [...points];
|
|
96815
|
+
|
|
96816
|
+
if (keys.length <= 1) {
|
|
96817
|
+
const key = keys[0];
|
|
96818
|
+
const {
|
|
96819
|
+
width,
|
|
96820
|
+
zIndex
|
|
96821
|
+
} = this.cacheModelArr.get(key);
|
|
96822
|
+
arr.push({
|
|
96823
|
+
isAppend: false,
|
|
96824
|
+
color: this.cacheColors.get(key),
|
|
96825
|
+
width,
|
|
96826
|
+
zIndex,
|
|
96827
|
+
pointArr: _points.splice(0, step)
|
|
96828
|
+
});
|
|
96829
|
+
return arr;
|
|
96830
|
+
}
|
|
96831
|
+
|
|
96832
|
+
for (let i = 0; i < keys.length; i++) {
|
|
96833
|
+
const key = keys[i];
|
|
96834
|
+
const {
|
|
96835
|
+
width,
|
|
96836
|
+
zIndex
|
|
96837
|
+
} = this.cacheModelArr.get(key);
|
|
96838
|
+
|
|
96839
|
+
const pointArr = _points.splice(0, this.cacheLenArr[i]);
|
|
96840
|
+
|
|
96841
|
+
if (pointArr.length) {
|
|
96842
|
+
const model = {
|
|
96843
|
+
color: this.cacheColors.get(key),
|
|
96844
|
+
width,
|
|
96845
|
+
zIndex,
|
|
96846
|
+
pointArr
|
|
96847
|
+
};
|
|
96848
|
+
arr.push(model); // if( i > 1 &&i <keys.length-1){
|
|
96849
|
+
// // console.log(points[key-1]);
|
|
96850
|
+
// this._insertPoint(model,points[key-1]);
|
|
96851
|
+
// }
|
|
96852
|
+
}
|
|
96853
|
+
}
|
|
96854
|
+
|
|
96855
|
+
return arr;
|
|
96856
|
+
},
|
|
96857
|
+
|
|
96858
|
+
sliderChange(val) {
|
|
96859
|
+
this.endPlaybackLines();
|
|
96860
|
+
|
|
96861
|
+
if (val === 0) {
|
|
96862
|
+
this.$emit('trackPlayEvent', {
|
|
96863
|
+
index: val,
|
|
96864
|
+
points: []
|
|
96865
|
+
});
|
|
96866
|
+
return;
|
|
96867
|
+
}
|
|
96868
|
+
|
|
96869
|
+
const points = this.cacheArr.slice(0, val);
|
|
96870
|
+
const arr = this.createLineModels(this.getKeys(val), points, val);
|
|
96871
|
+
arr.forEach(r => this._insertLineAndMarker2(r, false));
|
|
96872
|
+
|
|
96873
|
+
if (points.length) {
|
|
96874
|
+
this.$emit('trackPlayEvent', {
|
|
96875
|
+
index: val,
|
|
96876
|
+
points: points[points.length - 1]
|
|
96877
|
+
});
|
|
96878
|
+
}
|
|
96879
|
+
|
|
96880
|
+
if (this.moveMarkerDto && !this.moveMarker && points.length) {
|
|
96881
|
+
this.moveMarker = this.createStartMarker(this.moveMarkerDto, points[points.length - 1]);
|
|
96882
|
+
return;
|
|
96883
|
+
}
|
|
96884
|
+
},
|
|
96885
|
+
|
|
96886
|
+
onPlayTrajectory() {
|
|
96887
|
+
if (!this.isStop) {
|
|
96888
|
+
if (this.index == 0) {
|
|
96889
|
+
this.endPlaybackLines();
|
|
96890
|
+
}
|
|
96891
|
+
}
|
|
96892
|
+
|
|
96893
|
+
this.isPlayback = true;
|
|
96894
|
+
this.isStop = true;
|
|
96895
|
+
this.trackPlayback();
|
|
96896
|
+
},
|
|
96897
|
+
|
|
96898
|
+
onStopTrajectory() {
|
|
96899
|
+
this.isStop = false;
|
|
96900
|
+
|
|
96901
|
+
this._clearInterval();
|
|
96902
|
+
},
|
|
96903
|
+
|
|
96904
|
+
onPlaySpeed(key, val) {
|
|
96905
|
+
this.selectActive = this.selectActive.map(v => v = false);
|
|
96906
|
+
this.selectActive[key] = true;
|
|
96907
|
+
this.playSpeed = val;
|
|
96908
|
+
this.isStop = false;
|
|
96909
|
+
|
|
96910
|
+
this._clearInterval();
|
|
96911
|
+
},
|
|
96912
|
+
|
|
96913
|
+
resetPyalPanel() {
|
|
96914
|
+
this.selectActive = [false, true, false, false, false];
|
|
96915
|
+
this.playSpeed = 100;
|
|
96916
|
+
},
|
|
96917
|
+
|
|
96918
|
+
selectGPSAll(type) {
|
|
96919
|
+
this.pineArr.forEach(r => {
|
|
96920
|
+
r.selectGPS(type);
|
|
96921
|
+
});
|
|
96922
|
+
this.endPlaybackLines();
|
|
96923
|
+
this.index = 0;
|
|
96924
|
+
|
|
96925
|
+
if (this.startMarker) {
|
|
96926
|
+
this.startMarker.selectGPS(type);
|
|
96927
|
+
}
|
|
96928
|
+
|
|
96929
|
+
if (this.endMarker) {
|
|
96930
|
+
this.endMarker.selectGPS(type);
|
|
96931
|
+
}
|
|
96932
|
+
|
|
96933
|
+
if (this.moveMarker) {
|
|
96934
|
+
this.moveMarker.selectGPS(type);
|
|
96935
|
+
}
|
|
96936
|
+
}
|
|
96572
96937
|
|
|
96573
96938
|
}
|
|
96574
96939
|
});
|
|
96575
96940
|
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=script&lang=js&
|
|
96576
96941
|
/* harmony default export */ var maps_ryLines_srcvue_type_script_lang_js_ = (ryLines_srcvue_type_script_lang_js_);
|
|
96942
|
+
// EXTERNAL MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=style&index=0&id=75840f3c&prod&lang=scss&scoped=true&
|
|
96943
|
+
var srcvue_type_style_index_0_id_75840f3c_prod_lang_scss_scoped_true_ = __webpack_require__("3391");
|
|
96944
|
+
|
|
96577
96945
|
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue
|
|
96578
96946
|
|
|
96579
96947
|
|
|
96580
96948
|
|
|
96581
96949
|
|
|
96582
96950
|
|
|
96951
|
+
|
|
96583
96952
|
/* normalize component */
|
|
96584
96953
|
|
|
96585
96954
|
var ryLines_src_component = normalizeComponent(
|
|
96586
96955
|
maps_ryLines_srcvue_type_script_lang_js_,
|
|
96587
|
-
|
|
96588
|
-
|
|
96956
|
+
srcvue_type_template_id_75840f3c_scoped_true_render,
|
|
96957
|
+
srcvue_type_template_id_75840f3c_scoped_true_staticRenderFns,
|
|
96589
96958
|
false,
|
|
96590
96959
|
null,
|
|
96591
|
-
|
|
96960
|
+
"75840f3c",
|
|
96592
96961
|
null
|
|
96593
96962
|
|
|
96594
96963
|
)
|
|
@@ -96602,7 +96971,7 @@ ryLines_src.install = Vue => {
|
|
|
96602
96971
|
};
|
|
96603
96972
|
|
|
96604
96973
|
/* harmony default export */ var ryLines = (ryLines_src);
|
|
96605
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
96974
|
+
// 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&
|
|
96606
96975
|
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:{
|
|
96607
96976
|
'left':!_vm.isRight,
|
|
96608
96977
|
'right':_vm.isRight
|
|
@@ -96969,7 +97338,7 @@ ryStaticMap_src.install = Vue => {
|
|
|
96969
97338
|
};
|
|
96970
97339
|
|
|
96971
97340
|
/* harmony default export */ var ryStaticMap = (ryStaticMap_src);
|
|
96972
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
97341
|
+
// 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&
|
|
96973
97342
|
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:{
|
|
96974
97343
|
'left':!_vm.isRight,
|
|
96975
97344
|
'right':_vm.isRight
|
|
@@ -97463,7 +97832,7 @@ ryOfflineMap_src.install = Vue => {
|
|
|
97463
97832
|
};
|
|
97464
97833
|
|
|
97465
97834
|
/* harmony default export */ var ryOfflineMap = (ryOfflineMap_src);
|
|
97466
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
97835
|
+
// 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&
|
|
97467
97836
|
var srcvue_type_template_id_8e9d4f6e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
97468
97837
|
var srcvue_type_template_id_8e9d4f6e_staticRenderFns = []
|
|
97469
97838
|
|
|
@@ -97776,7 +98145,7 @@ ryKMLs_src.install = Vue => {
|
|
|
97776
98145
|
};
|
|
97777
98146
|
|
|
97778
98147
|
/* harmony default export */ var ryKMLs = (ryKMLs_src);
|
|
97779
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
98148
|
+
// 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&
|
|
97780
98149
|
var srcvue_type_template_id_07fa85f6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
97781
98150
|
var srcvue_type_template_id_07fa85f6_staticRenderFns = []
|
|
97782
98151
|
|
|
@@ -98018,6 +98387,546 @@ ryKML_src.install = Vue => {
|
|
|
98018
98387
|
};
|
|
98019
98388
|
|
|
98020
98389
|
/* harmony default export */ var ryKML = (ryKML_src);
|
|
98390
|
+
// 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&
|
|
98391
|
+
var srcvue_type_template_id_3270a70a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
98392
|
+
var srcvue_type_template_id_3270a70a_staticRenderFns = []
|
|
98393
|
+
|
|
98394
|
+
|
|
98395
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue?vue&type=template&id=3270a70a&
|
|
98396
|
+
|
|
98397
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryStaticLayers/index.js
|
|
98398
|
+
|
|
98399
|
+
|
|
98400
|
+
class ryStaticLayers_RyKMLDto extends base_Base {
|
|
98401
|
+
constructor(...args) {
|
|
98402
|
+
super(...args);
|
|
98403
|
+
|
|
98404
|
+
_defineProperty(this, "modelArr", {
|
|
98405
|
+
type: Array,
|
|
98406
|
+
default: () => []
|
|
98407
|
+
});
|
|
98408
|
+
|
|
98409
|
+
_defineProperty(this, "insert", {
|
|
98410
|
+
type: Object,
|
|
98411
|
+
default: () => null
|
|
98412
|
+
});
|
|
98413
|
+
|
|
98414
|
+
_defineProperty(this, "inserts", {
|
|
98415
|
+
type: Array,
|
|
98416
|
+
default: () => []
|
|
98417
|
+
});
|
|
98418
|
+
|
|
98419
|
+
_defineProperty(this, "isShowAll", {
|
|
98420
|
+
type: Boolean,
|
|
98421
|
+
default: true
|
|
98422
|
+
});
|
|
98423
|
+
|
|
98424
|
+
_defineProperty(this, "isShow", {
|
|
98425
|
+
type: Object,
|
|
98426
|
+
default: () => null
|
|
98427
|
+
});
|
|
98428
|
+
|
|
98429
|
+
_defineProperty(this, "clear", {
|
|
98430
|
+
type: Boolean,
|
|
98431
|
+
default: false
|
|
98432
|
+
});
|
|
98433
|
+
|
|
98434
|
+
_defineProperty(this, "isFit", {
|
|
98435
|
+
type: Boolean,
|
|
98436
|
+
default: true
|
|
98437
|
+
});
|
|
98438
|
+
}
|
|
98439
|
+
|
|
98440
|
+
}
|
|
98441
|
+
// 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&
|
|
98442
|
+
//
|
|
98443
|
+
//
|
|
98444
|
+
//
|
|
98445
|
+
|
|
98446
|
+
|
|
98447
|
+
/* harmony default export */ var ryStaticLayers_srcvue_type_script_lang_js_ = ({
|
|
98448
|
+
name: 'RyStaticLayers',
|
|
98449
|
+
props: { ...new ryStaticLayers_RyKMLDto()
|
|
98450
|
+
},
|
|
98451
|
+
|
|
98452
|
+
data() {
|
|
98453
|
+
return {
|
|
98454
|
+
bbox: [],
|
|
98455
|
+
bboxMap: new Map(),
|
|
98456
|
+
bboxGCJ02: [],
|
|
98457
|
+
bboxMapGCJ02: new Map(),
|
|
98458
|
+
staticMap: new Map(),
|
|
98459
|
+
isCreate: true,
|
|
98460
|
+
lastType: -1
|
|
98461
|
+
};
|
|
98462
|
+
},
|
|
98463
|
+
|
|
98464
|
+
watch: {
|
|
98465
|
+
modelArr(val) {
|
|
98466
|
+
this._remove();
|
|
98467
|
+
|
|
98468
|
+
if (!val.length) return;
|
|
98469
|
+
this.modelArr = val;
|
|
98470
|
+
this.init(val);
|
|
98471
|
+
},
|
|
98472
|
+
|
|
98473
|
+
gpsType(val) {
|
|
98474
|
+
if (this.lastType == val) return;
|
|
98475
|
+
this.gpsType = val;
|
|
98476
|
+
this.lastType = val;
|
|
98477
|
+
this.selectGPSAll(this.gpsType);
|
|
98478
|
+
},
|
|
98479
|
+
|
|
98480
|
+
insert(val) {
|
|
98481
|
+
this.insert = val;
|
|
98482
|
+
|
|
98483
|
+
this._insert(val);
|
|
98484
|
+
|
|
98485
|
+
if (this.isFit) {
|
|
98486
|
+
setTimeout(() => {
|
|
98487
|
+
this.setFit();
|
|
98488
|
+
}, 50);
|
|
98489
|
+
}
|
|
98490
|
+
},
|
|
98491
|
+
|
|
98492
|
+
inserts(val) {
|
|
98493
|
+
this.inserts = val;
|
|
98494
|
+
|
|
98495
|
+
this._inserts(val);
|
|
98496
|
+
},
|
|
98497
|
+
|
|
98498
|
+
clear(val) {
|
|
98499
|
+
if (val) {
|
|
98500
|
+
this._remove();
|
|
98501
|
+
}
|
|
98502
|
+
},
|
|
98503
|
+
|
|
98504
|
+
isShowAll(val) {
|
|
98505
|
+
if (val) {
|
|
98506
|
+
this.showAll();
|
|
98507
|
+
return;
|
|
98508
|
+
}
|
|
98509
|
+
|
|
98510
|
+
this.hideAll();
|
|
98511
|
+
},
|
|
98512
|
+
|
|
98513
|
+
isShow(val) {
|
|
98514
|
+
if (!val) return;
|
|
98515
|
+
|
|
98516
|
+
this._isShow(val);
|
|
98517
|
+
}
|
|
98518
|
+
|
|
98519
|
+
},
|
|
98520
|
+
|
|
98521
|
+
created() {
|
|
98522
|
+
this.lastType = this.gpsType;
|
|
98523
|
+
this.init(this.modelArr);
|
|
98524
|
+
},
|
|
98525
|
+
|
|
98526
|
+
methods: {
|
|
98527
|
+
init(arr) {
|
|
98528
|
+
// this._insert();
|
|
98529
|
+
if (!arr || !arr.length) return;
|
|
98530
|
+
arr.forEach(val => {
|
|
98531
|
+
this._insert(val);
|
|
98532
|
+
});
|
|
98533
|
+
|
|
98534
|
+
if (this.isFit) {
|
|
98535
|
+
setTimeout(() => {
|
|
98536
|
+
this.setFit();
|
|
98537
|
+
}, 50);
|
|
98538
|
+
}
|
|
98539
|
+
|
|
98540
|
+
;
|
|
98541
|
+
},
|
|
98542
|
+
|
|
98543
|
+
_inserts(arr) {
|
|
98544
|
+
this.lastType = this.gpsType;
|
|
98545
|
+
arr.forEach(val => {
|
|
98546
|
+
this._insert(val, false);
|
|
98547
|
+
});
|
|
98548
|
+
|
|
98549
|
+
if (this.isFit) {
|
|
98550
|
+
setTimeout(() => {
|
|
98551
|
+
this.setFit();
|
|
98552
|
+
}, 50);
|
|
98553
|
+
}
|
|
98554
|
+
},
|
|
98555
|
+
|
|
98556
|
+
_insert(dto) {
|
|
98557
|
+
const {
|
|
98558
|
+
id,
|
|
98559
|
+
url,
|
|
98560
|
+
bbox,
|
|
98561
|
+
zIndex
|
|
98562
|
+
} = dto;
|
|
98563
|
+
|
|
98564
|
+
if (!this.staticMap.has(id)) {
|
|
98565
|
+
const img = new ry_map["staticImage"]({
|
|
98566
|
+
id,
|
|
98567
|
+
url,
|
|
98568
|
+
imageExtent: bbox,
|
|
98569
|
+
zIndex,
|
|
98570
|
+
type: this.gpsType
|
|
98571
|
+
}, this.map);
|
|
98572
|
+
this.staticMap.set(id, img);
|
|
98573
|
+
}
|
|
98574
|
+
|
|
98575
|
+
this.setBBOXArr(dto.id, bbox);
|
|
98576
|
+
},
|
|
98577
|
+
|
|
98578
|
+
setBBOXArr(id, bbox) {
|
|
98579
|
+
if (!this.bboxMap.has(id)) {
|
|
98580
|
+
this.bbox.push(bbox);
|
|
98581
|
+
this.bboxMap.set(id, bbox);
|
|
98582
|
+
}
|
|
98583
|
+
|
|
98584
|
+
if (!this.bboxMapGCJ02.has(id)) {
|
|
98585
|
+
const _bboxGCJ02 = this.convertBBoxGCJ02(bbox);
|
|
98586
|
+
|
|
98587
|
+
this.bboxGCJ02.push(_bboxGCJ02);
|
|
98588
|
+
this.bboxMapGCJ02.set(id, _bboxGCJ02);
|
|
98589
|
+
}
|
|
98590
|
+
},
|
|
98591
|
+
|
|
98592
|
+
setFit() {
|
|
98593
|
+
if (!this.bbox.length || !this.map) return;
|
|
98594
|
+
|
|
98595
|
+
if (this.bbox.length > 1) {
|
|
98596
|
+
Object(ry_map["fitNew"])(this.map, this.gpsType == 1 ? this.bboxGCJ02 : this.bbox);
|
|
98597
|
+
return;
|
|
98598
|
+
}
|
|
98599
|
+
|
|
98600
|
+
this.setFitFist(this.gpsType == 1 ? this.bboxGCJ02[0] : this.bbox[0]);
|
|
98601
|
+
},
|
|
98602
|
+
|
|
98603
|
+
// bbox.length =1 执行此处
|
|
98604
|
+
setFitFist(bbox) {
|
|
98605
|
+
const bbox2 = [bbox[0], bbox[3], bbox[2], bbox[1]];
|
|
98606
|
+
const bbox3 = [bbox[2], bbox[1], bbox[0], bbox[3]];
|
|
98607
|
+
Object(ry_map["fitNew"])(this.map, [bbox2, bbox3]);
|
|
98608
|
+
},
|
|
98609
|
+
|
|
98610
|
+
convertBBoxGCJ02(bbox) {
|
|
98611
|
+
const pointArr = [];
|
|
98612
|
+
const {
|
|
98613
|
+
lat,
|
|
98614
|
+
lon
|
|
98615
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[0], bbox[1]);
|
|
98616
|
+
const {
|
|
98617
|
+
lon: lon2,
|
|
98618
|
+
lat: lat2
|
|
98619
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[2], bbox[3]);
|
|
98620
|
+
pointArr.push(lon);
|
|
98621
|
+
pointArr.push(lat);
|
|
98622
|
+
pointArr.push(lon2);
|
|
98623
|
+
pointArr.push(lat2);
|
|
98624
|
+
return pointArr;
|
|
98625
|
+
},
|
|
98626
|
+
|
|
98627
|
+
_remove() {
|
|
98628
|
+
this.staticMap.forEach(val => {
|
|
98629
|
+
val.removeImageLayer();
|
|
98630
|
+
val = null;
|
|
98631
|
+
});
|
|
98632
|
+
this.staticMap.clear();
|
|
98633
|
+
this.bboxMap.clear();
|
|
98634
|
+
this.bbox = [];
|
|
98635
|
+
this.bboxGCJ02 = [];
|
|
98636
|
+
this.bboxMapGCJ02.clear();
|
|
98637
|
+
},
|
|
98638
|
+
|
|
98639
|
+
selectGPSAll(type) {
|
|
98640
|
+
this.staticMap.forEach(val => {
|
|
98641
|
+
val.selectGPS(type);
|
|
98642
|
+
});
|
|
98643
|
+
},
|
|
98644
|
+
|
|
98645
|
+
showAll() {
|
|
98646
|
+
this.staticMap.forEach(val => val.show());
|
|
98647
|
+
|
|
98648
|
+
if (this.restFit) {
|
|
98649
|
+
this._restFit();
|
|
98650
|
+
}
|
|
98651
|
+
},
|
|
98652
|
+
|
|
98653
|
+
hideAll() {
|
|
98654
|
+
this.staticMap.forEach(val => val.hide());
|
|
98655
|
+
},
|
|
98656
|
+
|
|
98657
|
+
_isShow(val) {
|
|
98658
|
+
const id = val.id;
|
|
98659
|
+
|
|
98660
|
+
if (this.staticMap.has(id)) {
|
|
98661
|
+
const img = this.staticMap.get(id);
|
|
98662
|
+
|
|
98663
|
+
if (val.show) {
|
|
98664
|
+
img.show();
|
|
98665
|
+
return;
|
|
98666
|
+
}
|
|
98667
|
+
|
|
98668
|
+
img.hide();
|
|
98669
|
+
}
|
|
98670
|
+
}
|
|
98671
|
+
|
|
98672
|
+
}
|
|
98673
|
+
});
|
|
98674
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue?vue&type=script&lang=js&
|
|
98675
|
+
/* harmony default export */ var maps_ryStaticLayers_srcvue_type_script_lang_js_ = (ryStaticLayers_srcvue_type_script_lang_js_);
|
|
98676
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue
|
|
98677
|
+
|
|
98678
|
+
|
|
98679
|
+
|
|
98680
|
+
|
|
98681
|
+
|
|
98682
|
+
/* normalize component */
|
|
98683
|
+
|
|
98684
|
+
var ryStaticLayers_src_component = normalizeComponent(
|
|
98685
|
+
maps_ryStaticLayers_srcvue_type_script_lang_js_,
|
|
98686
|
+
srcvue_type_template_id_3270a70a_render,
|
|
98687
|
+
srcvue_type_template_id_3270a70a_staticRenderFns,
|
|
98688
|
+
false,
|
|
98689
|
+
null,
|
|
98690
|
+
null,
|
|
98691
|
+
null
|
|
98692
|
+
|
|
98693
|
+
)
|
|
98694
|
+
|
|
98695
|
+
/* harmony default export */ var ryStaticLayers_src = (ryStaticLayers_src_component.exports);
|
|
98696
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/index.js
|
|
98697
|
+
|
|
98698
|
+
|
|
98699
|
+
ryStaticLayers_src.install = Vue => {
|
|
98700
|
+
Vue.install(ryStaticLayers_src.name, ryStaticLayers_src);
|
|
98701
|
+
};
|
|
98702
|
+
|
|
98703
|
+
/* harmony default export */ var ryStaticLayers = (ryStaticLayers_src);
|
|
98704
|
+
// 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&
|
|
98705
|
+
var srcvue_type_template_id_7bec5e5c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
98706
|
+
var srcvue_type_template_id_7bec5e5c_staticRenderFns = []
|
|
98707
|
+
|
|
98708
|
+
|
|
98709
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue?vue&type=template&id=7bec5e5c&
|
|
98710
|
+
|
|
98711
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryStaticLayer/index.js
|
|
98712
|
+
|
|
98713
|
+
|
|
98714
|
+
class ryStaticLayer_RyKMLDto extends base_Base {
|
|
98715
|
+
constructor(...args) {
|
|
98716
|
+
super(...args);
|
|
98717
|
+
|
|
98718
|
+
_defineProperty(this, "model", {
|
|
98719
|
+
type: Object,
|
|
98720
|
+
default: () => null
|
|
98721
|
+
});
|
|
98722
|
+
|
|
98723
|
+
_defineProperty(this, "isShow", {
|
|
98724
|
+
type: Boolean,
|
|
98725
|
+
default: true
|
|
98726
|
+
});
|
|
98727
|
+
|
|
98728
|
+
_defineProperty(this, "clear", {
|
|
98729
|
+
type: Boolean,
|
|
98730
|
+
default: false
|
|
98731
|
+
});
|
|
98732
|
+
|
|
98733
|
+
_defineProperty(this, "isFit", {
|
|
98734
|
+
type: Boolean,
|
|
98735
|
+
default: true
|
|
98736
|
+
});
|
|
98737
|
+
}
|
|
98738
|
+
|
|
98739
|
+
}
|
|
98740
|
+
// 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&
|
|
98741
|
+
//
|
|
98742
|
+
//
|
|
98743
|
+
//
|
|
98744
|
+
|
|
98745
|
+
|
|
98746
|
+
/* harmony default export */ var ryStaticLayer_srcvue_type_script_lang_js_ = ({
|
|
98747
|
+
name: 'RyStaticLayers',
|
|
98748
|
+
props: { ...new ryStaticLayer_RyKMLDto()
|
|
98749
|
+
},
|
|
98750
|
+
|
|
98751
|
+
data() {
|
|
98752
|
+
return {
|
|
98753
|
+
bbox: [],
|
|
98754
|
+
bboxGCJ02: [],
|
|
98755
|
+
staticImg: null,
|
|
98756
|
+
lastType: -1
|
|
98757
|
+
};
|
|
98758
|
+
},
|
|
98759
|
+
|
|
98760
|
+
watch: {
|
|
98761
|
+
model(val) {
|
|
98762
|
+
this._remove();
|
|
98763
|
+
|
|
98764
|
+
if (!val.length) return;
|
|
98765
|
+
this.init(val);
|
|
98766
|
+
},
|
|
98767
|
+
|
|
98768
|
+
gpsType(val) {
|
|
98769
|
+
if (this.lastType == val) return;
|
|
98770
|
+
this.gpsType = val;
|
|
98771
|
+
this.lastType = val;
|
|
98772
|
+
this.selectGPSAll(this.gpsType);
|
|
98773
|
+
},
|
|
98774
|
+
|
|
98775
|
+
clear(val) {
|
|
98776
|
+
if (val) {
|
|
98777
|
+
this._remove();
|
|
98778
|
+
}
|
|
98779
|
+
},
|
|
98780
|
+
|
|
98781
|
+
isShow(val) {
|
|
98782
|
+
this._isShow(val);
|
|
98783
|
+
}
|
|
98784
|
+
|
|
98785
|
+
},
|
|
98786
|
+
|
|
98787
|
+
created() {
|
|
98788
|
+
this.lastType = this.gpsType;
|
|
98789
|
+
this.init(this.model);
|
|
98790
|
+
},
|
|
98791
|
+
|
|
98792
|
+
methods: {
|
|
98793
|
+
init(model) {
|
|
98794
|
+
// this._insert();
|
|
98795
|
+
if (!model) return;
|
|
98796
|
+
|
|
98797
|
+
this._insert(model);
|
|
98798
|
+
|
|
98799
|
+
if (this.isFit) {
|
|
98800
|
+
setTimeout(() => {
|
|
98801
|
+
this.setFit();
|
|
98802
|
+
}, 50);
|
|
98803
|
+
}
|
|
98804
|
+
|
|
98805
|
+
;
|
|
98806
|
+
},
|
|
98807
|
+
|
|
98808
|
+
_insert(dto) {
|
|
98809
|
+
const {
|
|
98810
|
+
id,
|
|
98811
|
+
url,
|
|
98812
|
+
bbox,
|
|
98813
|
+
zIndex
|
|
98814
|
+
} = dto;
|
|
98815
|
+
const img = new ry_map["staticImage"]({
|
|
98816
|
+
id,
|
|
98817
|
+
url,
|
|
98818
|
+
imageExtent: bbox,
|
|
98819
|
+
zIndex,
|
|
98820
|
+
type: this.gpsType
|
|
98821
|
+
}, this.map);
|
|
98822
|
+
this.staticImg = img;
|
|
98823
|
+
this.setBBOXArr(bbox);
|
|
98824
|
+
},
|
|
98825
|
+
|
|
98826
|
+
setBBOXArr(bbox) {
|
|
98827
|
+
this.bbox.push(bbox);
|
|
98828
|
+
|
|
98829
|
+
const _bboxGCJ02 = this.convertBBoxGCJ02(bbox);
|
|
98830
|
+
|
|
98831
|
+
this.bboxGCJ02.push(_bboxGCJ02);
|
|
98832
|
+
},
|
|
98833
|
+
|
|
98834
|
+
setFit() {
|
|
98835
|
+
if (!this.bbox.length || !this.map) return;
|
|
98836
|
+
|
|
98837
|
+
if (this.bbox.length > 1) {
|
|
98838
|
+
Object(ry_map["fitNew"])(this.map, this.gpsType == 1 ? this.bboxGCJ02 : this.bbox);
|
|
98839
|
+
return;
|
|
98840
|
+
}
|
|
98841
|
+
|
|
98842
|
+
this.setFitFist(this.gpsType == 1 ? this.bboxGCJ02[0] : this.bbox[0]);
|
|
98843
|
+
},
|
|
98844
|
+
|
|
98845
|
+
// bbox.length =1 执行此处
|
|
98846
|
+
setFitFist(bbox) {
|
|
98847
|
+
const bbox2 = [bbox[0], bbox[3], bbox[2], bbox[1]];
|
|
98848
|
+
const bbox3 = [bbox[2], bbox[1], bbox[0], bbox[3]];
|
|
98849
|
+
Object(ry_map["fitNew"])(this.map, [bbox2, bbox3]);
|
|
98850
|
+
},
|
|
98851
|
+
|
|
98852
|
+
convertBBoxGCJ02(bbox) {
|
|
98853
|
+
const pointArr = [];
|
|
98854
|
+
const {
|
|
98855
|
+
lat,
|
|
98856
|
+
lon
|
|
98857
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[0], bbox[1]);
|
|
98858
|
+
const {
|
|
98859
|
+
lon: lon2,
|
|
98860
|
+
lat: lat2
|
|
98861
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[2], bbox[3]);
|
|
98862
|
+
pointArr.push(lon);
|
|
98863
|
+
pointArr.push(lat);
|
|
98864
|
+
pointArr.push(lon2);
|
|
98865
|
+
pointArr.push(lat2);
|
|
98866
|
+
return pointArr;
|
|
98867
|
+
},
|
|
98868
|
+
|
|
98869
|
+
_remove() {
|
|
98870
|
+
if (this.staticImg) {
|
|
98871
|
+
this.staticImg.removeImageLayer();
|
|
98872
|
+
}
|
|
98873
|
+
|
|
98874
|
+
this.staticImg = null;
|
|
98875
|
+
this.bbox = [];
|
|
98876
|
+
this.bboxGCJ02 = [];
|
|
98877
|
+
},
|
|
98878
|
+
|
|
98879
|
+
selectGPSAll(type) {
|
|
98880
|
+
if (this.staticImg) {
|
|
98881
|
+
this.staticImg.selectGPS(type);
|
|
98882
|
+
}
|
|
98883
|
+
},
|
|
98884
|
+
|
|
98885
|
+
_isShow(val) {
|
|
98886
|
+
if (this.staticImg) {
|
|
98887
|
+
const img = this.staticImg;
|
|
98888
|
+
|
|
98889
|
+
if (val) {
|
|
98890
|
+
img.show();
|
|
98891
|
+
return;
|
|
98892
|
+
}
|
|
98893
|
+
|
|
98894
|
+
img.hide();
|
|
98895
|
+
}
|
|
98896
|
+
}
|
|
98897
|
+
|
|
98898
|
+
}
|
|
98899
|
+
});
|
|
98900
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue?vue&type=script&lang=js&
|
|
98901
|
+
/* harmony default export */ var maps_ryStaticLayer_srcvue_type_script_lang_js_ = (ryStaticLayer_srcvue_type_script_lang_js_);
|
|
98902
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue
|
|
98903
|
+
|
|
98904
|
+
|
|
98905
|
+
|
|
98906
|
+
|
|
98907
|
+
|
|
98908
|
+
/* normalize component */
|
|
98909
|
+
|
|
98910
|
+
var ryStaticLayer_src_component = normalizeComponent(
|
|
98911
|
+
maps_ryStaticLayer_srcvue_type_script_lang_js_,
|
|
98912
|
+
srcvue_type_template_id_7bec5e5c_render,
|
|
98913
|
+
srcvue_type_template_id_7bec5e5c_staticRenderFns,
|
|
98914
|
+
false,
|
|
98915
|
+
null,
|
|
98916
|
+
null,
|
|
98917
|
+
null
|
|
98918
|
+
|
|
98919
|
+
)
|
|
98920
|
+
|
|
98921
|
+
/* harmony default export */ var ryStaticLayer_src = (ryStaticLayer_src_component.exports);
|
|
98922
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/index.js
|
|
98923
|
+
|
|
98924
|
+
|
|
98925
|
+
ryStaticLayer_src.install = Vue => {
|
|
98926
|
+
Vue.install(ryStaticLayer_src.name, ryStaticLayer_src);
|
|
98927
|
+
};
|
|
98928
|
+
|
|
98929
|
+
/* harmony default export */ var ryStaticLayer = (ryStaticLayer_src);
|
|
98021
98930
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
98022
98931
|
|
|
98023
98932
|
|
|
@@ -98032,10 +98941,12 @@ ryKML_src.install = Vue => {
|
|
|
98032
98941
|
|
|
98033
98942
|
|
|
98034
98943
|
|
|
98944
|
+
|
|
98945
|
+
|
|
98035
98946
|
// import "./fonts/iconfont.css";
|
|
98036
98947
|
// 组件列表
|
|
98037
98948
|
|
|
98038
|
-
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap, ryLines, ryStaticMap, ryOfflineMap, ryKMLs, ryKML]; // 定义install
|
|
98949
|
+
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap, ryLines, ryStaticMap, ryOfflineMap, ryKMLs, ryKML, ryStaticLayers, ryStaticLayer]; // 定义install
|
|
98039
98950
|
|
|
98040
98951
|
const install = (Vue, options) => {
|
|
98041
98952
|
// 遍历注册全局组件
|