ry-vue-map 0.2.8 → 0.3.0
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 +1056 -70
- 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 +1056 -70
- 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 +122 -122
- 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 +430 -76
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":"249cb997-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":"249cb997-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":"249cb997-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":"249cb997-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":"249cb997-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":"249cb997-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
|
|
|
@@ -95269,7 +95286,7 @@ ryPolygons_src.install = Vue => {
|
|
|
95269
95286
|
};
|
|
95270
95287
|
|
|
95271
95288
|
/* harmony default export */ var ryPolygons = (ryPolygons_src);
|
|
95272
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95289
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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
95290
|
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
95291
|
var srcvue_type_template_id_148ba5e7_scoped_true_staticRenderFns = []
|
|
95275
95292
|
|
|
@@ -95583,7 +95600,7 @@ ryClusters_src.install = Vue => {
|
|
|
95583
95600
|
};
|
|
95584
95601
|
|
|
95585
95602
|
/* harmony default export */ var ryClusters = (ryClusters_src);
|
|
95586
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95603
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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
95604
|
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
95605
|
var srcvue_type_template_id_64b08b64_scoped_true_staticRenderFns = []
|
|
95589
95606
|
|
|
@@ -95772,7 +95789,7 @@ ryClustersMarker_src.install = Vue => {
|
|
|
95772
95789
|
};
|
|
95773
95790
|
|
|
95774
95791
|
/* harmony default export */ var ryClustersMarker = (ryClustersMarker_src);
|
|
95775
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
95792
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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
95793
|
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
95794
|
var srcvue_type_template_id_2a5ab464_staticRenderFns = []
|
|
95778
95795
|
|
|
@@ -96032,7 +96049,7 @@ ryPolygonGeo_src.install = Vue => {
|
|
|
96032
96049
|
};
|
|
96033
96050
|
|
|
96034
96051
|
/* harmony default export */ var ryPolygonGeo = (ryPolygonGeo_src);
|
|
96035
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
96052
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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
96053
|
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
96054
|
var srcvue_type_template_id_38afeddc_scoped_true_staticRenderFns = []
|
|
96038
96055
|
|
|
@@ -96248,12 +96265,12 @@ ryVectorMap_src.install = Vue => {
|
|
|
96248
96265
|
};
|
|
96249
96266
|
|
|
96250
96267
|
/* 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
|
|
96268
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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&
|
|
96269
|
+
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()])}
|
|
96270
|
+
var srcvue_type_template_id_75840f3c_scoped_true_staticRenderFns = []
|
|
96254
96271
|
|
|
96255
96272
|
|
|
96256
|
-
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=template&id=
|
|
96273
|
+
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=template&id=75840f3c&scoped=true&
|
|
96257
96274
|
|
|
96258
96275
|
// CONCATENATED MODULE: ./src/components/maps/models/ryLines/ryLines.js
|
|
96259
96276
|
|
|
@@ -96282,6 +96299,11 @@ class ryLines_LineDto extends base_Base {
|
|
|
96282
96299
|
default: true
|
|
96283
96300
|
});
|
|
96284
96301
|
|
|
96302
|
+
_defineProperty(this, "isShowPlayback", {
|
|
96303
|
+
type: Boolean,
|
|
96304
|
+
default: false
|
|
96305
|
+
});
|
|
96306
|
+
|
|
96285
96307
|
_defineProperty(this, "lineAppend", {
|
|
96286
96308
|
type: Array,
|
|
96287
96309
|
default: () => []
|
|
@@ -96323,6 +96345,32 @@ class ryLines_LineDto extends base_Base {
|
|
|
96323
96345
|
//
|
|
96324
96346
|
//
|
|
96325
96347
|
//
|
|
96348
|
+
//
|
|
96349
|
+
//
|
|
96350
|
+
//
|
|
96351
|
+
//
|
|
96352
|
+
//
|
|
96353
|
+
//
|
|
96354
|
+
//
|
|
96355
|
+
//
|
|
96356
|
+
//
|
|
96357
|
+
//
|
|
96358
|
+
//
|
|
96359
|
+
//
|
|
96360
|
+
//
|
|
96361
|
+
//
|
|
96362
|
+
//
|
|
96363
|
+
//
|
|
96364
|
+
//
|
|
96365
|
+
//
|
|
96366
|
+
//
|
|
96367
|
+
//
|
|
96368
|
+
//
|
|
96369
|
+
//
|
|
96370
|
+
//
|
|
96371
|
+
//
|
|
96372
|
+
//
|
|
96373
|
+
//
|
|
96326
96374
|
|
|
96327
96375
|
|
|
96328
96376
|
/* harmony default export */ var ryLines_srcvue_type_script_lang_js_ = ({
|
|
@@ -96344,26 +96392,49 @@ class ryLines_LineDto extends base_Base {
|
|
|
96344
96392
|
pineArr: [],
|
|
96345
96393
|
lastLineX: 0,
|
|
96346
96394
|
lastLineY: 0,
|
|
96347
|
-
|
|
96348
|
-
|
|
96395
|
+
lastLineX2: 0,
|
|
96396
|
+
lastLineY2: 0,
|
|
96397
|
+
cacheArr: new Array(),
|
|
96398
|
+
cacheModelArr: new Map(),
|
|
96399
|
+
cacheColors: new Map(),
|
|
96400
|
+
cacheLenArr: new Array(),
|
|
96401
|
+
cacheLines: new Array(),
|
|
96402
|
+
cacheLineMaps: new Map(),
|
|
96403
|
+
cacheScales: new Array(),
|
|
96349
96404
|
isFist: true,
|
|
96350
96405
|
lastColor: null,
|
|
96351
|
-
|
|
96406
|
+
len: 0,
|
|
96407
|
+
am: new ry_map["AM"](),
|
|
96408
|
+
index: 0,
|
|
96409
|
+
intervalId: null,
|
|
96410
|
+
selectActive: [false, true, false, false],
|
|
96411
|
+
marks: {},
|
|
96412
|
+
marks2: {},
|
|
96413
|
+
// 轨迹回放
|
|
96414
|
+
isPlayback: false,
|
|
96415
|
+
// 暂停轨迹回放
|
|
96416
|
+
isStop: false,
|
|
96417
|
+
playSpeed: 100
|
|
96352
96418
|
};
|
|
96353
96419
|
},
|
|
96354
96420
|
|
|
96355
96421
|
watch: {
|
|
96356
96422
|
model(val) {
|
|
96357
96423
|
this.init();
|
|
96424
|
+
if (!val) return;
|
|
96425
|
+
this.insertCache(val.pointArr);
|
|
96358
96426
|
},
|
|
96359
96427
|
|
|
96360
96428
|
linenIsert(val) {
|
|
96361
96429
|
if (!this.map || !val) return;
|
|
96430
|
+
this.insertCache(val);
|
|
96362
96431
|
|
|
96363
96432
|
this._insertLineAndMarker(val);
|
|
96364
96433
|
},
|
|
96365
96434
|
|
|
96366
|
-
gpsType(val) {
|
|
96435
|
+
gpsType(val) {
|
|
96436
|
+
this.selectGPSAll(val);
|
|
96437
|
+
},
|
|
96367
96438
|
|
|
96368
96439
|
clearLiens(val) {
|
|
96369
96440
|
if (val) {
|
|
@@ -96376,7 +96447,33 @@ class ryLines_LineDto extends base_Base {
|
|
|
96376
96447
|
this.appendCoordinate(val);
|
|
96377
96448
|
this.setMarkerPoint(this.endMarker, val);
|
|
96378
96449
|
}
|
|
96379
|
-
}
|
|
96450
|
+
},
|
|
96451
|
+
|
|
96452
|
+
isShowPlayback(val) {
|
|
96453
|
+
if (!val) {
|
|
96454
|
+
this.endPlaybackLines();
|
|
96455
|
+
this.index = 0;
|
|
96456
|
+
this.resetPyalPanel();
|
|
96457
|
+
return;
|
|
96458
|
+
}
|
|
96459
|
+
|
|
96460
|
+
delete this.marks2[this.len];
|
|
96461
|
+
this.marks = this.marks2;
|
|
96462
|
+
} // isPlayback(val){
|
|
96463
|
+
// if(val){
|
|
96464
|
+
// this.trackPlayback();
|
|
96465
|
+
// return;
|
|
96466
|
+
// }
|
|
96467
|
+
// this.endPlaybackLines();
|
|
96468
|
+
// },
|
|
96469
|
+
// isStop(val){
|
|
96470
|
+
// if(val){
|
|
96471
|
+
// this._clearInterval();
|
|
96472
|
+
// return;
|
|
96473
|
+
// }
|
|
96474
|
+
// this.trackPlayback();
|
|
96475
|
+
// },
|
|
96476
|
+
|
|
96380
96477
|
|
|
96381
96478
|
},
|
|
96382
96479
|
|
|
@@ -96388,14 +96485,41 @@ class ryLines_LineDto extends base_Base {
|
|
|
96388
96485
|
init() {
|
|
96389
96486
|
if (!this.map) return;
|
|
96390
96487
|
this.clearLine();
|
|
96391
|
-
if (!this.model) return;
|
|
96488
|
+
if (!this.model && !this.linenIsert) return;
|
|
96392
96489
|
this.lastType = this.gpsType;
|
|
96393
96490
|
|
|
96394
|
-
|
|
96491
|
+
if (this.model) {
|
|
96492
|
+
this.insertCache(this.model);
|
|
96493
|
+
|
|
96494
|
+
this._insertLineAndMarker(this.model);
|
|
96495
|
+
}
|
|
96496
|
+
|
|
96497
|
+
if (this.linenIsert) {
|
|
96498
|
+
this.insertCache(this.linenIsert);
|
|
96499
|
+
|
|
96500
|
+
this._insertLineAndMarker(this.linenIsert);
|
|
96501
|
+
}
|
|
96502
|
+
},
|
|
96503
|
+
|
|
96504
|
+
insertCache(model) {
|
|
96505
|
+
if (model) {
|
|
96506
|
+
const {
|
|
96507
|
+
playbackColor,
|
|
96508
|
+
pointArr
|
|
96509
|
+
} = model;
|
|
96510
|
+
const len = pointArr.length;
|
|
96511
|
+
if (!pointArr.length) return;
|
|
96512
|
+
this.len += len;
|
|
96513
|
+
this.cacheArr.push(...model.pointArr);
|
|
96514
|
+
this.cacheColors.set(this.len, playbackColor);
|
|
96515
|
+
this.cacheLenArr.push(len);
|
|
96516
|
+
this.marks2[this.len] = '';
|
|
96517
|
+
this.cacheScales.push(this.len);
|
|
96518
|
+
this.cacheModelArr.set(this.len, model);
|
|
96519
|
+
}
|
|
96395
96520
|
},
|
|
96396
96521
|
|
|
96397
96522
|
_insertLineAndMarker(val) {
|
|
96398
|
-
const color = val.color;
|
|
96399
96523
|
const arr = val.pointArr;
|
|
96400
96524
|
|
|
96401
96525
|
if (this.isLineFit) {
|
|
@@ -96404,13 +96528,18 @@ class ryLines_LineDto extends base_Base {
|
|
|
96404
96528
|
|
|
96405
96529
|
this.initMarker(arr[0]);
|
|
96406
96530
|
|
|
96407
|
-
if (!val.isAppend
|
|
96408
|
-
this._insertPoint(val);
|
|
96531
|
+
if (!val.isAppend) {
|
|
96532
|
+
this._insertPoint(val, [this.lastLineX, this.lastLineY]);
|
|
96409
96533
|
|
|
96410
96534
|
const line = this.createPolyline(val);
|
|
96411
96535
|
const len = arr.length - 1;
|
|
96412
96536
|
this.setMarkerPoint(this.endMarker, arr[len]);
|
|
96413
|
-
|
|
96537
|
+
const {
|
|
96538
|
+
x,
|
|
96539
|
+
y
|
|
96540
|
+
} = this.restLastData(arr);
|
|
96541
|
+
this.lastLineX = x;
|
|
96542
|
+
this.lastLineY = y;
|
|
96414
96543
|
this.pineArr.push(line);
|
|
96415
96544
|
return;
|
|
96416
96545
|
}
|
|
@@ -96423,6 +96552,21 @@ class ryLines_LineDto extends base_Base {
|
|
|
96423
96552
|
this.restLastData(arr);
|
|
96424
96553
|
},
|
|
96425
96554
|
|
|
96555
|
+
_insertLineAndMarker2(val) {
|
|
96556
|
+
this._insertPoint(val, [this.lastLineX2, this.lastLineY2]);
|
|
96557
|
+
|
|
96558
|
+
const arr = val.pointArr;
|
|
96559
|
+
const line = this.createPolyline(val);
|
|
96560
|
+
const {
|
|
96561
|
+
x,
|
|
96562
|
+
y
|
|
96563
|
+
} = this.restLastData(arr);
|
|
96564
|
+
this.lastLineX2 = x;
|
|
96565
|
+
this.lastLineY2 = y;
|
|
96566
|
+
this.cacheLines.push(line);
|
|
96567
|
+
return;
|
|
96568
|
+
},
|
|
96569
|
+
|
|
96426
96570
|
async calculateLineBBOX(arr) {
|
|
96427
96571
|
return await new Promise(r => {
|
|
96428
96572
|
arr.forEach(r => {
|
|
@@ -96431,7 +96575,14 @@ class ryLines_LineDto extends base_Base {
|
|
|
96431
96575
|
Y: r[1]
|
|
96432
96576
|
});
|
|
96433
96577
|
});
|
|
96434
|
-
|
|
96578
|
+
let amGpsArr = [];
|
|
96579
|
+
|
|
96580
|
+
if (this.gpsType) {
|
|
96581
|
+
amGpsArr = this.am.getLngLatGCJ02();
|
|
96582
|
+
} else {
|
|
96583
|
+
amGpsArr = this.am.getLngLats();
|
|
96584
|
+
}
|
|
96585
|
+
|
|
96435
96586
|
Object(ry_map["fitNew"])(this.map, [[amGpsArr[0], amGpsArr[1]], [amGpsArr[2], amGpsArr[3]]]);
|
|
96436
96587
|
r();
|
|
96437
96588
|
});
|
|
@@ -96455,14 +96606,18 @@ class ryLines_LineDto extends base_Base {
|
|
|
96455
96606
|
restLastData(arr) {
|
|
96456
96607
|
if (arr.length > 0) {
|
|
96457
96608
|
const [x, y] = arr[arr.length - 1];
|
|
96458
|
-
|
|
96459
|
-
|
|
96609
|
+
return {
|
|
96610
|
+
x,
|
|
96611
|
+
y
|
|
96612
|
+
};
|
|
96460
96613
|
}
|
|
96461
96614
|
},
|
|
96462
96615
|
|
|
96463
|
-
_insertPoint(val) {
|
|
96464
|
-
|
|
96465
|
-
|
|
96616
|
+
_insertPoint(val, points) {
|
|
96617
|
+
const [x, y] = points;
|
|
96618
|
+
|
|
96619
|
+
if (x > 0 && y > 0 && val) {
|
|
96620
|
+
val.pointArr.unshift(points);
|
|
96466
96621
|
}
|
|
96467
96622
|
},
|
|
96468
96623
|
|
|
@@ -96470,7 +96625,7 @@ class ryLines_LineDto extends base_Base {
|
|
|
96470
96625
|
color: 'rgb(0,0,255)',
|
|
96471
96626
|
width: 2,
|
|
96472
96627
|
pointArr: [],
|
|
96473
|
-
zIndex:
|
|
96628
|
+
zIndex: 1
|
|
96474
96629
|
}) {
|
|
96475
96630
|
return new ry_map["Polyline"]({ ...polylineModel,
|
|
96476
96631
|
type: this.gpsType
|
|
@@ -96534,14 +96689,143 @@ class ryLines_LineDto extends base_Base {
|
|
|
96534
96689
|
},
|
|
96535
96690
|
|
|
96536
96691
|
clearLine() {
|
|
96692
|
+
this.resetPyalPanel();
|
|
96537
96693
|
this.removeLines();
|
|
96538
96694
|
this.removeLineMarker();
|
|
96539
|
-
this.
|
|
96695
|
+
this.cacheArr = [];
|
|
96540
96696
|
this.lastColor = null;
|
|
96541
96697
|
this.lastLineX = 0;
|
|
96542
96698
|
this.lastLineY = 0;
|
|
96543
96699
|
this.am = null;
|
|
96544
96700
|
this.am = new ry_map["AM"]();
|
|
96701
|
+
this.marks = {};
|
|
96702
|
+
this.marks2 = {};
|
|
96703
|
+
|
|
96704
|
+
this._clearInterval();
|
|
96705
|
+
|
|
96706
|
+
this.clearCacheLines();
|
|
96707
|
+
},
|
|
96708
|
+
|
|
96709
|
+
_clearInterval() {
|
|
96710
|
+
if (this.intervalId) {
|
|
96711
|
+
clearInterval(this.intervalId);
|
|
96712
|
+
}
|
|
96713
|
+
},
|
|
96714
|
+
|
|
96715
|
+
clearCacheLines() {
|
|
96716
|
+
this.endPlaybackLines();
|
|
96717
|
+
this.cacheLenArr = [];
|
|
96718
|
+
this.cacheArr = [];
|
|
96719
|
+
this.cacheColors.clear();
|
|
96720
|
+
this.cacheModelArr.clear();
|
|
96721
|
+
this.len = 0;
|
|
96722
|
+
this.cacheScales = [];
|
|
96723
|
+
this.index = 0;
|
|
96724
|
+
},
|
|
96725
|
+
|
|
96726
|
+
endPlaybackLines() {
|
|
96727
|
+
this._clearInterval();
|
|
96728
|
+
|
|
96729
|
+
this.cacheLines.forEach(r => {
|
|
96730
|
+
r.removePolyline();
|
|
96731
|
+
});
|
|
96732
|
+
|
|
96733
|
+
if (this.moveMarker) {
|
|
96734
|
+
this.map.removeOverlay(this.moveMarker.getMarker());
|
|
96735
|
+
}
|
|
96736
|
+
|
|
96737
|
+
this.isPlayback = false;
|
|
96738
|
+
this.isStop = false;
|
|
96739
|
+
this.cacheLines = [];
|
|
96740
|
+
this.cacheLineMaps.clear();
|
|
96741
|
+
this.moveMarker = null; // this.index = 0;
|
|
96742
|
+
// this.lastColor = null;
|
|
96743
|
+
|
|
96744
|
+
this.lastLineX2 = 0;
|
|
96745
|
+
this.lastLineY2 = 0;
|
|
96746
|
+
},
|
|
96747
|
+
|
|
96748
|
+
stopPlaybackLines(val) {
|
|
96749
|
+
this.isPlayback = false;
|
|
96750
|
+
this.isStop = false;
|
|
96751
|
+
|
|
96752
|
+
if (val) {
|
|
96753
|
+
this._clearInterval();
|
|
96754
|
+
|
|
96755
|
+
return;
|
|
96756
|
+
}
|
|
96757
|
+
|
|
96758
|
+
this.trackPlayback();
|
|
96759
|
+
},
|
|
96760
|
+
|
|
96761
|
+
createTrackLineAndMarker(index = 0, index2 = 0) {
|
|
96762
|
+
const key = index;
|
|
96763
|
+
const {
|
|
96764
|
+
playbackColor,
|
|
96765
|
+
width,
|
|
96766
|
+
zIndex
|
|
96767
|
+
} = this.cacheModelArr.get(key);
|
|
96768
|
+
const line = this.createPolyline({
|
|
96769
|
+
color: playbackColor,
|
|
96770
|
+
isAppend: false,
|
|
96771
|
+
width,
|
|
96772
|
+
pointArr: [],
|
|
96773
|
+
zIndex
|
|
96774
|
+
}, this.gpsType);
|
|
96775
|
+
this.lastColor = playbackColor;
|
|
96776
|
+
this.cacheLines.push(line);
|
|
96777
|
+
|
|
96778
|
+
if (this.moveMarkerDto && !this.moveMarker) {
|
|
96779
|
+
this.moveMarker = this.createStartMarker(this.moveMarkerDto, this.cacheArr[index2]);
|
|
96780
|
+
}
|
|
96781
|
+
},
|
|
96782
|
+
|
|
96783
|
+
trackPlayback() {
|
|
96784
|
+
if (!this.cacheLines.length) {
|
|
96785
|
+
this.createTrackLineAndMarker(this.cacheScales[0], 0);
|
|
96786
|
+
}
|
|
96787
|
+
|
|
96788
|
+
this.intervalId = setInterval(r => {
|
|
96789
|
+
if (this.index >= this.len || !this.isPlayback) {
|
|
96790
|
+
this._clearInterval();
|
|
96791
|
+
|
|
96792
|
+
this.index = 0;
|
|
96793
|
+
this.isStop = false;
|
|
96794
|
+
this.$emit('trackPlayEvent', {
|
|
96795
|
+
index: this.index,
|
|
96796
|
+
points: []
|
|
96797
|
+
});
|
|
96798
|
+
return;
|
|
96799
|
+
}
|
|
96800
|
+
|
|
96801
|
+
const key = this.getKey(this.index);
|
|
96802
|
+
|
|
96803
|
+
if (this.cacheColors.has(key) && !this.cacheLineMaps.has(key)) {
|
|
96804
|
+
if (!this.cacheLineMaps.has(key)) {
|
|
96805
|
+
this.createTrackLineAndMarker(key, this.index);
|
|
96806
|
+
const line = this.cacheLines[this.cacheLines.length - 1];
|
|
96807
|
+
this.cacheLineMaps.set(key, line);
|
|
96808
|
+
|
|
96809
|
+
const _index = this.index - 1 == -1 ? 0 : this.index - 1;
|
|
96810
|
+
|
|
96811
|
+
line.appendCoordinate(this.cacheArr[_index], this.gpsType);
|
|
96812
|
+
this.$emit('trackPlayEvent', {
|
|
96813
|
+
index: this.index,
|
|
96814
|
+
points: this.cacheArr[_index]
|
|
96815
|
+
});
|
|
96816
|
+
}
|
|
96817
|
+
}
|
|
96818
|
+
|
|
96819
|
+
const line = this.cacheLines[this.cacheLines.length - 1];
|
|
96820
|
+
const points = this.cacheArr[this.index];
|
|
96821
|
+
this.setMarkerPoint(this.moveMarker, points);
|
|
96822
|
+
line.appendCoordinate(points, this.gpsType);
|
|
96823
|
+
this.$emit('trackPlayEvent', {
|
|
96824
|
+
index: this.index,
|
|
96825
|
+
points
|
|
96826
|
+
});
|
|
96827
|
+
this.index += 1;
|
|
96828
|
+
}, this.playSpeed);
|
|
96545
96829
|
},
|
|
96546
96830
|
|
|
96547
96831
|
appendCoordinate(coordinate = []) {
|
|
@@ -96556,30 +96840,190 @@ class ryLines_LineDto extends base_Base {
|
|
|
96556
96840
|
|
|
96557
96841
|
;
|
|
96558
96842
|
const line = this.pineArr[this.pineArr.length - 1];
|
|
96559
|
-
line.appendCoordinate(coordinate);
|
|
96843
|
+
line.appendCoordinate(coordinate, this.gpsType);
|
|
96844
|
+
},
|
|
96845
|
+
|
|
96846
|
+
formatTooltip(val) {
|
|
96847
|
+
return val / 100;
|
|
96560
96848
|
},
|
|
96561
96849
|
|
|
96562
|
-
|
|
96850
|
+
getKeys(val) {
|
|
96851
|
+
const arr = [];
|
|
96852
|
+
|
|
96853
|
+
for (let i = 0; i < this.cacheScales.length; i++) {
|
|
96854
|
+
if (val >= this.cacheScales[i]) {
|
|
96855
|
+
arr.push(this.cacheScales[i]);
|
|
96856
|
+
continue;
|
|
96857
|
+
}
|
|
96858
|
+
|
|
96859
|
+
arr.push(this.cacheScales[i]);
|
|
96860
|
+
break;
|
|
96861
|
+
}
|
|
96862
|
+
|
|
96863
|
+
return arr;
|
|
96864
|
+
},
|
|
96865
|
+
|
|
96866
|
+
getKey(val) {
|
|
96867
|
+
for (let i = 0; i < this.cacheScales.length; i++) {
|
|
96868
|
+
const key = this.cacheScales[i];
|
|
96869
|
+
|
|
96870
|
+
if (val <= key) {
|
|
96871
|
+
return key;
|
|
96872
|
+
}
|
|
96873
|
+
}
|
|
96874
|
+
|
|
96875
|
+
return 0;
|
|
96876
|
+
},
|
|
96877
|
+
|
|
96878
|
+
createLineModels(keys, points, step) {
|
|
96879
|
+
const arr = [];
|
|
96880
|
+
const _points = [...points];
|
|
96881
|
+
|
|
96882
|
+
if (keys.length <= 1) {
|
|
96883
|
+
const key = keys[0];
|
|
96884
|
+
const {
|
|
96885
|
+
width,
|
|
96886
|
+
zIndex
|
|
96887
|
+
} = this.cacheModelArr.get(key);
|
|
96888
|
+
arr.push({
|
|
96889
|
+
isAppend: false,
|
|
96890
|
+
color: this.cacheColors.get(key),
|
|
96891
|
+
width,
|
|
96892
|
+
zIndex,
|
|
96893
|
+
pointArr: _points.splice(0, step)
|
|
96894
|
+
});
|
|
96895
|
+
return arr;
|
|
96896
|
+
}
|
|
96897
|
+
|
|
96898
|
+
for (let i = 0; i < keys.length; i++) {
|
|
96899
|
+
const key = keys[i];
|
|
96900
|
+
const {
|
|
96901
|
+
width,
|
|
96902
|
+
zIndex
|
|
96903
|
+
} = this.cacheModelArr.get(key);
|
|
96904
|
+
|
|
96905
|
+
const pointArr = _points.splice(0, this.cacheLenArr[i]);
|
|
96906
|
+
|
|
96907
|
+
if (pointArr.length) {
|
|
96908
|
+
const model = {
|
|
96909
|
+
color: this.cacheColors.get(key),
|
|
96910
|
+
width,
|
|
96911
|
+
zIndex,
|
|
96912
|
+
pointArr
|
|
96913
|
+
};
|
|
96914
|
+
arr.push(model); // if( i > 1 &&i <keys.length-1){
|
|
96915
|
+
// // console.log(points[key-1]);
|
|
96916
|
+
// this._insertPoint(model,points[key-1]);
|
|
96917
|
+
// }
|
|
96918
|
+
}
|
|
96919
|
+
}
|
|
96920
|
+
|
|
96921
|
+
return arr;
|
|
96922
|
+
},
|
|
96923
|
+
|
|
96924
|
+
sliderChange(val) {
|
|
96925
|
+
this.endPlaybackLines();
|
|
96926
|
+
|
|
96927
|
+
if (val === 0) {
|
|
96928
|
+
this.$emit('trackPlayEvent', {
|
|
96929
|
+
index: val,
|
|
96930
|
+
points: []
|
|
96931
|
+
});
|
|
96932
|
+
return;
|
|
96933
|
+
}
|
|
96934
|
+
|
|
96935
|
+
const points = this.cacheArr.slice(0, val);
|
|
96936
|
+
const arr = this.createLineModels(this.getKeys(val), points, val);
|
|
96937
|
+
arr.forEach(r => this._insertLineAndMarker2(r, false));
|
|
96938
|
+
|
|
96939
|
+
if (points.length) {
|
|
96940
|
+
this.$emit('trackPlayEvent', {
|
|
96941
|
+
index: val,
|
|
96942
|
+
points: points[points.length - 1]
|
|
96943
|
+
});
|
|
96944
|
+
}
|
|
96945
|
+
|
|
96946
|
+
if (this.moveMarkerDto && !this.moveMarker && points.length) {
|
|
96947
|
+
this.moveMarker = this.createStartMarker(this.moveMarkerDto, points[points.length - 1]);
|
|
96948
|
+
return;
|
|
96949
|
+
}
|
|
96950
|
+
},
|
|
96951
|
+
|
|
96952
|
+
onPlayTrajectory() {
|
|
96953
|
+
if (!this.isStop) {
|
|
96954
|
+
if (this.index == 0) {
|
|
96955
|
+
this.endPlaybackLines();
|
|
96956
|
+
}
|
|
96957
|
+
}
|
|
96958
|
+
|
|
96959
|
+
this.isPlayback = true;
|
|
96960
|
+
this.isStop = true;
|
|
96961
|
+
this.trackPlayback();
|
|
96962
|
+
},
|
|
96963
|
+
|
|
96964
|
+
onStopTrajectory() {
|
|
96965
|
+
this.isStop = false;
|
|
96966
|
+
|
|
96967
|
+
this._clearInterval();
|
|
96968
|
+
},
|
|
96969
|
+
|
|
96970
|
+
onPlaySpeed(key, val) {
|
|
96971
|
+
this.selectActive = this.selectActive.map(v => v = false);
|
|
96972
|
+
this.selectActive[key] = true;
|
|
96973
|
+
this.playSpeed = val;
|
|
96974
|
+
this.isStop = false;
|
|
96975
|
+
|
|
96976
|
+
this._clearInterval();
|
|
96977
|
+
},
|
|
96978
|
+
|
|
96979
|
+
resetPyalPanel() {
|
|
96980
|
+
this.selectActive = [false, true, false, false, false];
|
|
96981
|
+
this.playSpeed = 100;
|
|
96982
|
+
},
|
|
96983
|
+
|
|
96984
|
+
selectGPSAll(type) {
|
|
96985
|
+
this.pineArr.forEach(r => {
|
|
96986
|
+
r.selectGPS(type);
|
|
96987
|
+
});
|
|
96988
|
+
this.endPlaybackLines();
|
|
96989
|
+
this.index = 0;
|
|
96990
|
+
|
|
96991
|
+
if (this.startMarker) {
|
|
96992
|
+
this.startMarker.selectGPS(type);
|
|
96993
|
+
}
|
|
96994
|
+
|
|
96995
|
+
if (this.endMarker) {
|
|
96996
|
+
this.endMarker.selectGPS(type);
|
|
96997
|
+
}
|
|
96998
|
+
|
|
96999
|
+
if (this.moveMarker) {
|
|
97000
|
+
this.moveMarker.selectGPS(type);
|
|
97001
|
+
}
|
|
97002
|
+
}
|
|
96563
97003
|
|
|
96564
97004
|
}
|
|
96565
97005
|
});
|
|
96566
97006
|
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=script&lang=js&
|
|
96567
97007
|
/* harmony default export */ var maps_ryLines_srcvue_type_script_lang_js_ = (ryLines_srcvue_type_script_lang_js_);
|
|
97008
|
+
// EXTERNAL MODULE: ./src/components/maps/ryLines/src/index.vue?vue&type=style&index=0&id=75840f3c&prod&lang=scss&scoped=true&
|
|
97009
|
+
var srcvue_type_style_index_0_id_75840f3c_prod_lang_scss_scoped_true_ = __webpack_require__("3391");
|
|
97010
|
+
|
|
96568
97011
|
// CONCATENATED MODULE: ./src/components/maps/ryLines/src/index.vue
|
|
96569
97012
|
|
|
96570
97013
|
|
|
96571
97014
|
|
|
96572
97015
|
|
|
96573
97016
|
|
|
97017
|
+
|
|
96574
97018
|
/* normalize component */
|
|
96575
97019
|
|
|
96576
97020
|
var ryLines_src_component = normalizeComponent(
|
|
96577
97021
|
maps_ryLines_srcvue_type_script_lang_js_,
|
|
96578
|
-
|
|
96579
|
-
|
|
97022
|
+
srcvue_type_template_id_75840f3c_scoped_true_render,
|
|
97023
|
+
srcvue_type_template_id_75840f3c_scoped_true_staticRenderFns,
|
|
96580
97024
|
false,
|
|
96581
97025
|
null,
|
|
96582
|
-
|
|
97026
|
+
"75840f3c",
|
|
96583
97027
|
null
|
|
96584
97028
|
|
|
96585
97029
|
)
|
|
@@ -96593,7 +97037,7 @@ ryLines_src.install = Vue => {
|
|
|
96593
97037
|
};
|
|
96594
97038
|
|
|
96595
97039
|
/* harmony default export */ var ryLines = (ryLines_src);
|
|
96596
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
97040
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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
97041
|
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
97042
|
'left':!_vm.isRight,
|
|
96599
97043
|
'right':_vm.isRight
|
|
@@ -96960,7 +97404,7 @@ ryStaticMap_src.install = Vue => {
|
|
|
96960
97404
|
};
|
|
96961
97405
|
|
|
96962
97406
|
/* harmony default export */ var ryStaticMap = (ryStaticMap_src);
|
|
96963
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
97407
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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
97408
|
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
97409
|
'left':!_vm.isRight,
|
|
96966
97410
|
'right':_vm.isRight
|
|
@@ -97454,7 +97898,7 @@ ryOfflineMap_src.install = Vue => {
|
|
|
97454
97898
|
};
|
|
97455
97899
|
|
|
97456
97900
|
/* harmony default export */ var ryOfflineMap = (ryOfflineMap_src);
|
|
97457
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
97901
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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
97902
|
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
97903
|
var srcvue_type_template_id_8e9d4f6e_staticRenderFns = []
|
|
97460
97904
|
|
|
@@ -97767,7 +98211,7 @@ ryKMLs_src.install = Vue => {
|
|
|
97767
98211
|
};
|
|
97768
98212
|
|
|
97769
98213
|
/* harmony default export */ var ryKMLs = (ryKMLs_src);
|
|
97770
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
98214
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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&
|
|
97771
98215
|
var srcvue_type_template_id_07fa85f6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
97772
98216
|
var srcvue_type_template_id_07fa85f6_staticRenderFns = []
|
|
97773
98217
|
|
|
@@ -98009,6 +98453,546 @@ ryKML_src.install = Vue => {
|
|
|
98009
98453
|
};
|
|
98010
98454
|
|
|
98011
98455
|
/* harmony default export */ var ryKML = (ryKML_src);
|
|
98456
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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&
|
|
98457
|
+
var srcvue_type_template_id_3270a70a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
98458
|
+
var srcvue_type_template_id_3270a70a_staticRenderFns = []
|
|
98459
|
+
|
|
98460
|
+
|
|
98461
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue?vue&type=template&id=3270a70a&
|
|
98462
|
+
|
|
98463
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryStaticLayers/index.js
|
|
98464
|
+
|
|
98465
|
+
|
|
98466
|
+
class ryStaticLayers_RyKMLDto extends base_Base {
|
|
98467
|
+
constructor(...args) {
|
|
98468
|
+
super(...args);
|
|
98469
|
+
|
|
98470
|
+
_defineProperty(this, "modelArr", {
|
|
98471
|
+
type: Array,
|
|
98472
|
+
default: () => []
|
|
98473
|
+
});
|
|
98474
|
+
|
|
98475
|
+
_defineProperty(this, "insert", {
|
|
98476
|
+
type: Object,
|
|
98477
|
+
default: () => null
|
|
98478
|
+
});
|
|
98479
|
+
|
|
98480
|
+
_defineProperty(this, "inserts", {
|
|
98481
|
+
type: Array,
|
|
98482
|
+
default: () => []
|
|
98483
|
+
});
|
|
98484
|
+
|
|
98485
|
+
_defineProperty(this, "isShowAll", {
|
|
98486
|
+
type: Boolean,
|
|
98487
|
+
default: true
|
|
98488
|
+
});
|
|
98489
|
+
|
|
98490
|
+
_defineProperty(this, "isShow", {
|
|
98491
|
+
type: Object,
|
|
98492
|
+
default: () => null
|
|
98493
|
+
});
|
|
98494
|
+
|
|
98495
|
+
_defineProperty(this, "clear", {
|
|
98496
|
+
type: Boolean,
|
|
98497
|
+
default: false
|
|
98498
|
+
});
|
|
98499
|
+
|
|
98500
|
+
_defineProperty(this, "isFit", {
|
|
98501
|
+
type: Boolean,
|
|
98502
|
+
default: true
|
|
98503
|
+
});
|
|
98504
|
+
}
|
|
98505
|
+
|
|
98506
|
+
}
|
|
98507
|
+
// 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&
|
|
98508
|
+
//
|
|
98509
|
+
//
|
|
98510
|
+
//
|
|
98511
|
+
|
|
98512
|
+
|
|
98513
|
+
/* harmony default export */ var ryStaticLayers_srcvue_type_script_lang_js_ = ({
|
|
98514
|
+
name: 'RyStaticLayers',
|
|
98515
|
+
props: { ...new ryStaticLayers_RyKMLDto()
|
|
98516
|
+
},
|
|
98517
|
+
|
|
98518
|
+
data() {
|
|
98519
|
+
return {
|
|
98520
|
+
bbox: [],
|
|
98521
|
+
bboxMap: new Map(),
|
|
98522
|
+
bboxGCJ02: [],
|
|
98523
|
+
bboxMapGCJ02: new Map(),
|
|
98524
|
+
staticMap: new Map(),
|
|
98525
|
+
isCreate: true,
|
|
98526
|
+
lastType: -1
|
|
98527
|
+
};
|
|
98528
|
+
},
|
|
98529
|
+
|
|
98530
|
+
watch: {
|
|
98531
|
+
modelArr(val) {
|
|
98532
|
+
this._remove();
|
|
98533
|
+
|
|
98534
|
+
if (!val.length) return;
|
|
98535
|
+
this.modelArr = val;
|
|
98536
|
+
this.init(val);
|
|
98537
|
+
},
|
|
98538
|
+
|
|
98539
|
+
gpsType(val) {
|
|
98540
|
+
if (this.lastType == val) return;
|
|
98541
|
+
this.gpsType = val;
|
|
98542
|
+
this.lastType = val;
|
|
98543
|
+
this.selectGPSAll(this.gpsType);
|
|
98544
|
+
},
|
|
98545
|
+
|
|
98546
|
+
insert(val) {
|
|
98547
|
+
this.insert = val;
|
|
98548
|
+
|
|
98549
|
+
this._insert(val);
|
|
98550
|
+
|
|
98551
|
+
if (this.isFit) {
|
|
98552
|
+
setTimeout(() => {
|
|
98553
|
+
this.setFit();
|
|
98554
|
+
}, 50);
|
|
98555
|
+
}
|
|
98556
|
+
},
|
|
98557
|
+
|
|
98558
|
+
inserts(val) {
|
|
98559
|
+
this.inserts = val;
|
|
98560
|
+
|
|
98561
|
+
this._inserts(val);
|
|
98562
|
+
},
|
|
98563
|
+
|
|
98564
|
+
clear(val) {
|
|
98565
|
+
if (val) {
|
|
98566
|
+
this._remove();
|
|
98567
|
+
}
|
|
98568
|
+
},
|
|
98569
|
+
|
|
98570
|
+
isShowAll(val) {
|
|
98571
|
+
if (val) {
|
|
98572
|
+
this.showAll();
|
|
98573
|
+
return;
|
|
98574
|
+
}
|
|
98575
|
+
|
|
98576
|
+
this.hideAll();
|
|
98577
|
+
},
|
|
98578
|
+
|
|
98579
|
+
isShow(val) {
|
|
98580
|
+
if (!val) return;
|
|
98581
|
+
|
|
98582
|
+
this._isShow(val);
|
|
98583
|
+
}
|
|
98584
|
+
|
|
98585
|
+
},
|
|
98586
|
+
|
|
98587
|
+
created() {
|
|
98588
|
+
this.lastType = this.gpsType;
|
|
98589
|
+
this.init(this.modelArr);
|
|
98590
|
+
},
|
|
98591
|
+
|
|
98592
|
+
methods: {
|
|
98593
|
+
init(arr) {
|
|
98594
|
+
// this._insert();
|
|
98595
|
+
if (!arr || !arr.length) return;
|
|
98596
|
+
arr.forEach(val => {
|
|
98597
|
+
this._insert(val);
|
|
98598
|
+
});
|
|
98599
|
+
|
|
98600
|
+
if (this.isFit) {
|
|
98601
|
+
setTimeout(() => {
|
|
98602
|
+
this.setFit();
|
|
98603
|
+
}, 50);
|
|
98604
|
+
}
|
|
98605
|
+
|
|
98606
|
+
;
|
|
98607
|
+
},
|
|
98608
|
+
|
|
98609
|
+
_inserts(arr) {
|
|
98610
|
+
this.lastType = this.gpsType;
|
|
98611
|
+
arr.forEach(val => {
|
|
98612
|
+
this._insert(val, false);
|
|
98613
|
+
});
|
|
98614
|
+
|
|
98615
|
+
if (this.isFit) {
|
|
98616
|
+
setTimeout(() => {
|
|
98617
|
+
this.setFit();
|
|
98618
|
+
}, 50);
|
|
98619
|
+
}
|
|
98620
|
+
},
|
|
98621
|
+
|
|
98622
|
+
_insert(dto) {
|
|
98623
|
+
const {
|
|
98624
|
+
id,
|
|
98625
|
+
url,
|
|
98626
|
+
bbox,
|
|
98627
|
+
zIndex
|
|
98628
|
+
} = dto;
|
|
98629
|
+
|
|
98630
|
+
if (!this.staticMap.has(id)) {
|
|
98631
|
+
const img = new ry_map["staticImage"]({
|
|
98632
|
+
id,
|
|
98633
|
+
url,
|
|
98634
|
+
imageExtent: bbox,
|
|
98635
|
+
zIndex,
|
|
98636
|
+
type: this.gpsType
|
|
98637
|
+
}, this.map);
|
|
98638
|
+
this.staticMap.set(id, img);
|
|
98639
|
+
}
|
|
98640
|
+
|
|
98641
|
+
this.setBBOXArr(dto.id, bbox);
|
|
98642
|
+
},
|
|
98643
|
+
|
|
98644
|
+
setBBOXArr(id, bbox) {
|
|
98645
|
+
if (!this.bboxMap.has(id)) {
|
|
98646
|
+
this.bbox.push(bbox);
|
|
98647
|
+
this.bboxMap.set(id, bbox);
|
|
98648
|
+
}
|
|
98649
|
+
|
|
98650
|
+
if (!this.bboxMapGCJ02.has(id)) {
|
|
98651
|
+
const _bboxGCJ02 = this.convertBBoxGCJ02(bbox);
|
|
98652
|
+
|
|
98653
|
+
this.bboxGCJ02.push(_bboxGCJ02);
|
|
98654
|
+
this.bboxMapGCJ02.set(id, _bboxGCJ02);
|
|
98655
|
+
}
|
|
98656
|
+
},
|
|
98657
|
+
|
|
98658
|
+
setFit() {
|
|
98659
|
+
if (!this.bbox.length || !this.map) return;
|
|
98660
|
+
|
|
98661
|
+
if (this.bbox.length > 1) {
|
|
98662
|
+
Object(ry_map["fitNew"])(this.map, this.gpsType == 1 ? this.bboxGCJ02 : this.bbox);
|
|
98663
|
+
return;
|
|
98664
|
+
}
|
|
98665
|
+
|
|
98666
|
+
this.setFitFist(this.gpsType == 1 ? this.bboxGCJ02[0] : this.bbox[0]);
|
|
98667
|
+
},
|
|
98668
|
+
|
|
98669
|
+
// bbox.length =1 执行此处
|
|
98670
|
+
setFitFist(bbox) {
|
|
98671
|
+
const bbox2 = [bbox[0], bbox[3], bbox[2], bbox[1]];
|
|
98672
|
+
const bbox3 = [bbox[2], bbox[1], bbox[0], bbox[3]];
|
|
98673
|
+
Object(ry_map["fitNew"])(this.map, [bbox2, bbox3]);
|
|
98674
|
+
},
|
|
98675
|
+
|
|
98676
|
+
convertBBoxGCJ02(bbox) {
|
|
98677
|
+
const pointArr = [];
|
|
98678
|
+
const {
|
|
98679
|
+
lat,
|
|
98680
|
+
lon
|
|
98681
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[0], bbox[1]);
|
|
98682
|
+
const {
|
|
98683
|
+
lon: lon2,
|
|
98684
|
+
lat: lat2
|
|
98685
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[2], bbox[3]);
|
|
98686
|
+
pointArr.push(lon);
|
|
98687
|
+
pointArr.push(lat);
|
|
98688
|
+
pointArr.push(lon2);
|
|
98689
|
+
pointArr.push(lat2);
|
|
98690
|
+
return pointArr;
|
|
98691
|
+
},
|
|
98692
|
+
|
|
98693
|
+
_remove() {
|
|
98694
|
+
this.staticMap.forEach(val => {
|
|
98695
|
+
val.removeImageLayer();
|
|
98696
|
+
val = null;
|
|
98697
|
+
});
|
|
98698
|
+
this.staticMap.clear();
|
|
98699
|
+
this.bboxMap.clear();
|
|
98700
|
+
this.bbox = [];
|
|
98701
|
+
this.bboxGCJ02 = [];
|
|
98702
|
+
this.bboxMapGCJ02.clear();
|
|
98703
|
+
},
|
|
98704
|
+
|
|
98705
|
+
selectGPSAll(type) {
|
|
98706
|
+
this.staticMap.forEach(val => {
|
|
98707
|
+
val.selectGPS(type);
|
|
98708
|
+
});
|
|
98709
|
+
},
|
|
98710
|
+
|
|
98711
|
+
showAll() {
|
|
98712
|
+
this.staticMap.forEach(val => val.show());
|
|
98713
|
+
|
|
98714
|
+
if (this.restFit) {
|
|
98715
|
+
this._restFit();
|
|
98716
|
+
}
|
|
98717
|
+
},
|
|
98718
|
+
|
|
98719
|
+
hideAll() {
|
|
98720
|
+
this.staticMap.forEach(val => val.hide());
|
|
98721
|
+
},
|
|
98722
|
+
|
|
98723
|
+
_isShow(val) {
|
|
98724
|
+
const id = val.id;
|
|
98725
|
+
|
|
98726
|
+
if (this.staticMap.has(id)) {
|
|
98727
|
+
const img = this.staticMap.get(id);
|
|
98728
|
+
|
|
98729
|
+
if (val.show) {
|
|
98730
|
+
img.show();
|
|
98731
|
+
return;
|
|
98732
|
+
}
|
|
98733
|
+
|
|
98734
|
+
img.hide();
|
|
98735
|
+
}
|
|
98736
|
+
}
|
|
98737
|
+
|
|
98738
|
+
}
|
|
98739
|
+
});
|
|
98740
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue?vue&type=script&lang=js&
|
|
98741
|
+
/* harmony default export */ var maps_ryStaticLayers_srcvue_type_script_lang_js_ = (ryStaticLayers_srcvue_type_script_lang_js_);
|
|
98742
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/src/index.vue
|
|
98743
|
+
|
|
98744
|
+
|
|
98745
|
+
|
|
98746
|
+
|
|
98747
|
+
|
|
98748
|
+
/* normalize component */
|
|
98749
|
+
|
|
98750
|
+
var ryStaticLayers_src_component = normalizeComponent(
|
|
98751
|
+
maps_ryStaticLayers_srcvue_type_script_lang_js_,
|
|
98752
|
+
srcvue_type_template_id_3270a70a_render,
|
|
98753
|
+
srcvue_type_template_id_3270a70a_staticRenderFns,
|
|
98754
|
+
false,
|
|
98755
|
+
null,
|
|
98756
|
+
null,
|
|
98757
|
+
null
|
|
98758
|
+
|
|
98759
|
+
)
|
|
98760
|
+
|
|
98761
|
+
/* harmony default export */ var ryStaticLayers_src = (ryStaticLayers_src_component.exports);
|
|
98762
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayers/index.js
|
|
98763
|
+
|
|
98764
|
+
|
|
98765
|
+
ryStaticLayers_src.install = Vue => {
|
|
98766
|
+
Vue.install(ryStaticLayers_src.name, ryStaticLayers_src);
|
|
98767
|
+
};
|
|
98768
|
+
|
|
98769
|
+
/* harmony default export */ var ryStaticLayers = (ryStaticLayers_src);
|
|
98770
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"249cb997-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&
|
|
98771
|
+
var srcvue_type_template_id_7bec5e5c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
98772
|
+
var srcvue_type_template_id_7bec5e5c_staticRenderFns = []
|
|
98773
|
+
|
|
98774
|
+
|
|
98775
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue?vue&type=template&id=7bec5e5c&
|
|
98776
|
+
|
|
98777
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryStaticLayer/index.js
|
|
98778
|
+
|
|
98779
|
+
|
|
98780
|
+
class ryStaticLayer_RyKMLDto extends base_Base {
|
|
98781
|
+
constructor(...args) {
|
|
98782
|
+
super(...args);
|
|
98783
|
+
|
|
98784
|
+
_defineProperty(this, "model", {
|
|
98785
|
+
type: Object,
|
|
98786
|
+
default: () => null
|
|
98787
|
+
});
|
|
98788
|
+
|
|
98789
|
+
_defineProperty(this, "isShow", {
|
|
98790
|
+
type: Boolean,
|
|
98791
|
+
default: true
|
|
98792
|
+
});
|
|
98793
|
+
|
|
98794
|
+
_defineProperty(this, "clear", {
|
|
98795
|
+
type: Boolean,
|
|
98796
|
+
default: false
|
|
98797
|
+
});
|
|
98798
|
+
|
|
98799
|
+
_defineProperty(this, "isFit", {
|
|
98800
|
+
type: Boolean,
|
|
98801
|
+
default: true
|
|
98802
|
+
});
|
|
98803
|
+
}
|
|
98804
|
+
|
|
98805
|
+
}
|
|
98806
|
+
// 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&
|
|
98807
|
+
//
|
|
98808
|
+
//
|
|
98809
|
+
//
|
|
98810
|
+
|
|
98811
|
+
|
|
98812
|
+
/* harmony default export */ var ryStaticLayer_srcvue_type_script_lang_js_ = ({
|
|
98813
|
+
name: 'RyStaticLayers',
|
|
98814
|
+
props: { ...new ryStaticLayer_RyKMLDto()
|
|
98815
|
+
},
|
|
98816
|
+
|
|
98817
|
+
data() {
|
|
98818
|
+
return {
|
|
98819
|
+
bbox: [],
|
|
98820
|
+
bboxGCJ02: [],
|
|
98821
|
+
staticImg: null,
|
|
98822
|
+
lastType: -1
|
|
98823
|
+
};
|
|
98824
|
+
},
|
|
98825
|
+
|
|
98826
|
+
watch: {
|
|
98827
|
+
model(val) {
|
|
98828
|
+
this._remove();
|
|
98829
|
+
|
|
98830
|
+
if (!val.length) return;
|
|
98831
|
+
this.init(val);
|
|
98832
|
+
},
|
|
98833
|
+
|
|
98834
|
+
gpsType(val) {
|
|
98835
|
+
if (this.lastType == val) return;
|
|
98836
|
+
this.gpsType = val;
|
|
98837
|
+
this.lastType = val;
|
|
98838
|
+
this.selectGPSAll(this.gpsType);
|
|
98839
|
+
},
|
|
98840
|
+
|
|
98841
|
+
clear(val) {
|
|
98842
|
+
if (val) {
|
|
98843
|
+
this._remove();
|
|
98844
|
+
}
|
|
98845
|
+
},
|
|
98846
|
+
|
|
98847
|
+
isShow(val) {
|
|
98848
|
+
this._isShow(val);
|
|
98849
|
+
}
|
|
98850
|
+
|
|
98851
|
+
},
|
|
98852
|
+
|
|
98853
|
+
created() {
|
|
98854
|
+
this.lastType = this.gpsType;
|
|
98855
|
+
this.init(this.model);
|
|
98856
|
+
},
|
|
98857
|
+
|
|
98858
|
+
methods: {
|
|
98859
|
+
init(model) {
|
|
98860
|
+
// this._insert();
|
|
98861
|
+
if (!model) return;
|
|
98862
|
+
|
|
98863
|
+
this._insert(model);
|
|
98864
|
+
|
|
98865
|
+
if (this.isFit) {
|
|
98866
|
+
setTimeout(() => {
|
|
98867
|
+
this.setFit();
|
|
98868
|
+
}, 50);
|
|
98869
|
+
}
|
|
98870
|
+
|
|
98871
|
+
;
|
|
98872
|
+
},
|
|
98873
|
+
|
|
98874
|
+
_insert(dto) {
|
|
98875
|
+
const {
|
|
98876
|
+
id,
|
|
98877
|
+
url,
|
|
98878
|
+
bbox,
|
|
98879
|
+
zIndex
|
|
98880
|
+
} = dto;
|
|
98881
|
+
const img = new ry_map["staticImage"]({
|
|
98882
|
+
id,
|
|
98883
|
+
url,
|
|
98884
|
+
imageExtent: bbox,
|
|
98885
|
+
zIndex,
|
|
98886
|
+
type: this.gpsType
|
|
98887
|
+
}, this.map);
|
|
98888
|
+
this.staticImg = img;
|
|
98889
|
+
this.setBBOXArr(bbox);
|
|
98890
|
+
},
|
|
98891
|
+
|
|
98892
|
+
setBBOXArr(bbox) {
|
|
98893
|
+
this.bbox.push(bbox);
|
|
98894
|
+
|
|
98895
|
+
const _bboxGCJ02 = this.convertBBoxGCJ02(bbox);
|
|
98896
|
+
|
|
98897
|
+
this.bboxGCJ02.push(_bboxGCJ02);
|
|
98898
|
+
},
|
|
98899
|
+
|
|
98900
|
+
setFit() {
|
|
98901
|
+
if (!this.bbox.length || !this.map) return;
|
|
98902
|
+
|
|
98903
|
+
if (this.bbox.length > 1) {
|
|
98904
|
+
Object(ry_map["fitNew"])(this.map, this.gpsType == 1 ? this.bboxGCJ02 : this.bbox);
|
|
98905
|
+
return;
|
|
98906
|
+
}
|
|
98907
|
+
|
|
98908
|
+
this.setFitFist(this.gpsType == 1 ? this.bboxGCJ02[0] : this.bbox[0]);
|
|
98909
|
+
},
|
|
98910
|
+
|
|
98911
|
+
// bbox.length =1 执行此处
|
|
98912
|
+
setFitFist(bbox) {
|
|
98913
|
+
const bbox2 = [bbox[0], bbox[3], bbox[2], bbox[1]];
|
|
98914
|
+
const bbox3 = [bbox[2], bbox[1], bbox[0], bbox[3]];
|
|
98915
|
+
Object(ry_map["fitNew"])(this.map, [bbox2, bbox3]);
|
|
98916
|
+
},
|
|
98917
|
+
|
|
98918
|
+
convertBBoxGCJ02(bbox) {
|
|
98919
|
+
const pointArr = [];
|
|
98920
|
+
const {
|
|
98921
|
+
lat,
|
|
98922
|
+
lon
|
|
98923
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[0], bbox[1]);
|
|
98924
|
+
const {
|
|
98925
|
+
lon: lon2,
|
|
98926
|
+
lat: lat2
|
|
98927
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[2], bbox[3]);
|
|
98928
|
+
pointArr.push(lon);
|
|
98929
|
+
pointArr.push(lat);
|
|
98930
|
+
pointArr.push(lon2);
|
|
98931
|
+
pointArr.push(lat2);
|
|
98932
|
+
return pointArr;
|
|
98933
|
+
},
|
|
98934
|
+
|
|
98935
|
+
_remove() {
|
|
98936
|
+
if (this.staticImg) {
|
|
98937
|
+
this.staticImg.removeImageLayer();
|
|
98938
|
+
}
|
|
98939
|
+
|
|
98940
|
+
this.staticImg = null;
|
|
98941
|
+
this.bbox = [];
|
|
98942
|
+
this.bboxGCJ02 = [];
|
|
98943
|
+
},
|
|
98944
|
+
|
|
98945
|
+
selectGPSAll(type) {
|
|
98946
|
+
if (this.staticImg) {
|
|
98947
|
+
this.staticImg.selectGPS(type);
|
|
98948
|
+
}
|
|
98949
|
+
},
|
|
98950
|
+
|
|
98951
|
+
_isShow(val) {
|
|
98952
|
+
if (this.staticImg) {
|
|
98953
|
+
const img = this.staticImg;
|
|
98954
|
+
|
|
98955
|
+
if (val) {
|
|
98956
|
+
img.show();
|
|
98957
|
+
return;
|
|
98958
|
+
}
|
|
98959
|
+
|
|
98960
|
+
img.hide();
|
|
98961
|
+
}
|
|
98962
|
+
}
|
|
98963
|
+
|
|
98964
|
+
}
|
|
98965
|
+
});
|
|
98966
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue?vue&type=script&lang=js&
|
|
98967
|
+
/* harmony default export */ var maps_ryStaticLayer_srcvue_type_script_lang_js_ = (ryStaticLayer_srcvue_type_script_lang_js_);
|
|
98968
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/src/index.vue
|
|
98969
|
+
|
|
98970
|
+
|
|
98971
|
+
|
|
98972
|
+
|
|
98973
|
+
|
|
98974
|
+
/* normalize component */
|
|
98975
|
+
|
|
98976
|
+
var ryStaticLayer_src_component = normalizeComponent(
|
|
98977
|
+
maps_ryStaticLayer_srcvue_type_script_lang_js_,
|
|
98978
|
+
srcvue_type_template_id_7bec5e5c_render,
|
|
98979
|
+
srcvue_type_template_id_7bec5e5c_staticRenderFns,
|
|
98980
|
+
false,
|
|
98981
|
+
null,
|
|
98982
|
+
null,
|
|
98983
|
+
null
|
|
98984
|
+
|
|
98985
|
+
)
|
|
98986
|
+
|
|
98987
|
+
/* harmony default export */ var ryStaticLayer_src = (ryStaticLayer_src_component.exports);
|
|
98988
|
+
// CONCATENATED MODULE: ./src/components/maps/ryStaticLayer/index.js
|
|
98989
|
+
|
|
98990
|
+
|
|
98991
|
+
ryStaticLayer_src.install = Vue => {
|
|
98992
|
+
Vue.install(ryStaticLayer_src.name, ryStaticLayer_src);
|
|
98993
|
+
};
|
|
98994
|
+
|
|
98995
|
+
/* harmony default export */ var ryStaticLayer = (ryStaticLayer_src);
|
|
98012
98996
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
98013
98997
|
|
|
98014
98998
|
|
|
@@ -98023,10 +99007,12 @@ ryKML_src.install = Vue => {
|
|
|
98023
99007
|
|
|
98024
99008
|
|
|
98025
99009
|
|
|
99010
|
+
|
|
99011
|
+
|
|
98026
99012
|
// import "./fonts/iconfont.css";
|
|
98027
99013
|
// 组件列表
|
|
98028
99014
|
|
|
98029
|
-
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap, ryLines, ryStaticMap, ryOfflineMap, ryKMLs, ryKML]; // 定义install
|
|
99015
|
+
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo, ryClustersMarker, ryVectorMap, ryLines, ryStaticMap, ryOfflineMap, ryKMLs, ryKML, ryStaticLayers, ryStaticLayer]; // 定义install
|
|
98030
99016
|
|
|
98031
99017
|
const install = (Vue, options) => {
|
|
98032
99018
|
// 遍历注册全局组件
|