ry-vue-map 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +1 -1
- package/lib/ryui.common.js +347 -81
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.umd.js +347 -81
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +2 -2
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/components/index.js +3 -1
- package/src/components/maps/models/ryMap/map.js +5 -0
- package/src/components/maps/models/ryPolygonGeo/ryPolygonGeo.js +23 -0
- package/src/components/maps/models/switchMap/switchMap.js +6 -1
- package/src/components/maps/ryMap/src/index.vue +309 -305
- package/src/components/maps/ryPolygonGeo/index.js +7 -0
- package/src/components/maps/ryPolygonGeo/src/index.vue +186 -0
- package/src/components/maps/switchMap/src/newIndex.vue +4 -2
- package/src/views/map/index.vue +31 -15
package/README.MD
CHANGED
package/lib/ryui.common.js
CHANGED
|
@@ -6700,17 +6700,6 @@ const projection = Object(ol_proj__WEBPACK_IMPORTED_MODULE_3__[/* get */ "h"])('
|
|
|
6700
6700
|
});
|
|
6701
6701
|
|
|
6702
6702
|
|
|
6703
|
-
/***/ }),
|
|
6704
|
-
|
|
6705
|
-
/***/ "262f":
|
|
6706
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6707
|
-
|
|
6708
|
-
"use strict";
|
|
6709
|
-
/* 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_0bb284b6_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8f375");
|
|
6710
|
-
/* 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_0bb284b6_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_0bb284b6_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
6711
|
-
/* unused harmony reexport * */
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
6703
|
/***/ }),
|
|
6715
6704
|
|
|
6716
6705
|
/***/ "29d2":
|
|
@@ -11624,6 +11613,13 @@ class Circular extends _lOverlay__WEBPACK_IMPORTED_MODULE_0__["LOverlay"] {
|
|
|
11624
11613
|
}
|
|
11625
11614
|
|
|
11626
11615
|
|
|
11616
|
+
/***/ }),
|
|
11617
|
+
|
|
11618
|
+
/***/ "3de1":
|
|
11619
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
11620
|
+
|
|
11621
|
+
// extracted by mini-css-extract-plugin
|
|
11622
|
+
|
|
11627
11623
|
/***/ }),
|
|
11628
11624
|
|
|
11629
11625
|
/***/ "3e6b":
|
|
@@ -33998,13 +33994,6 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
33998
33994
|
|
|
33999
33995
|
/***/ }),
|
|
34000
33996
|
|
|
34001
|
-
/***/ "8f375":
|
|
34002
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
34003
|
-
|
|
34004
|
-
// extracted by mini-css-extract-plugin
|
|
34005
|
-
|
|
34006
|
-
/***/ }),
|
|
34007
|
-
|
|
34008
33997
|
/***/ "91b1":
|
|
34009
33998
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
34010
33999
|
|
|
@@ -37096,17 +37085,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37096
37085
|
});
|
|
37097
37086
|
|
|
37098
37087
|
|
|
37099
|
-
/***/ }),
|
|
37100
|
-
|
|
37101
|
-
/***/ "9c6e":
|
|
37102
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
37103
|
-
|
|
37104
|
-
"use strict";
|
|
37105
|
-
/* 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_a81fc2e8_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ee9a");
|
|
37106
|
-
/* 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_a81fc2e8_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_a81fc2e8_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
37107
|
-
/* unused harmony reexport * */
|
|
37108
|
-
|
|
37109
|
-
|
|
37110
37088
|
/***/ }),
|
|
37111
37089
|
|
|
37112
37090
|
/***/ "9cff":
|
|
@@ -41327,6 +41305,17 @@ function toString(mat) {
|
|
|
41327
41305
|
}
|
|
41328
41306
|
//# sourceMappingURL=transform.js.map
|
|
41329
41307
|
|
|
41308
|
+
/***/ }),
|
|
41309
|
+
|
|
41310
|
+
/***/ "aad4":
|
|
41311
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
41312
|
+
|
|
41313
|
+
"use strict";
|
|
41314
|
+
/* 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_192f9732_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bcdb");
|
|
41315
|
+
/* 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_192f9732_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_192f9732_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
41316
|
+
/* unused harmony reexport * */
|
|
41317
|
+
|
|
41318
|
+
|
|
41330
41319
|
/***/ }),
|
|
41331
41320
|
|
|
41332
41321
|
/***/ "ab35":
|
|
@@ -48138,6 +48127,13 @@ function inflateMultiCoordinatesArray(flatCoordinates, offset, endss, stride, op
|
|
|
48138
48127
|
|
|
48139
48128
|
/***/ }),
|
|
48140
48129
|
|
|
48130
|
+
/***/ "bcdb":
|
|
48131
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
48132
|
+
|
|
48133
|
+
// extracted by mini-css-extract-plugin
|
|
48134
|
+
|
|
48135
|
+
/***/ }),
|
|
48136
|
+
|
|
48141
48137
|
/***/ "beb7":
|
|
48142
48138
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
48143
48139
|
|
|
@@ -48438,6 +48434,17 @@ var MapLayersEnum;
|
|
|
48438
48434
|
});
|
|
48439
48435
|
|
|
48440
48436
|
|
|
48437
|
+
/***/ }),
|
|
48438
|
+
|
|
48439
|
+
/***/ "c4c9":
|
|
48440
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
48441
|
+
|
|
48442
|
+
"use strict";
|
|
48443
|
+
/* 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_2e8065b9_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3de1");
|
|
48444
|
+
/* 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_2e8065b9_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_2e8065b9_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
48445
|
+
/* unused harmony reexport * */
|
|
48446
|
+
|
|
48447
|
+
|
|
48441
48448
|
/***/ }),
|
|
48442
48449
|
|
|
48443
48450
|
/***/ "c560":
|
|
@@ -53795,13 +53802,6 @@ function asColorLike(color) {
|
|
|
53795
53802
|
|
|
53796
53803
|
/***/ }),
|
|
53797
53804
|
|
|
53798
|
-
/***/ "ee9a":
|
|
53799
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
53800
|
-
|
|
53801
|
-
// extracted by mini-css-extract-plugin
|
|
53802
|
-
|
|
53803
|
-
/***/ }),
|
|
53804
|
-
|
|
53805
53805
|
/***/ "f403":
|
|
53806
53806
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
53807
53807
|
|
|
@@ -53957,19 +53957,19 @@ if (typeof window !== 'undefined') {
|
|
|
53957
53957
|
// Indicate to webpack that this file can be concatenated
|
|
53958
53958
|
/* harmony default export */ var setPublicPath = (null);
|
|
53959
53959
|
|
|
53960
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
53960
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5463af76-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=2e8065b9&scoped=true&
|
|
53961
53961
|
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:{
|
|
53962
53962
|
'left':!_vm.isRight,
|
|
53963
53963
|
'right':_vm.isRight
|
|
53964
53964
|
},attrs:{"lMap":_vm.lMap,"isShowRangingTool":_vm.isShowRangingTool,"initModifyPolygon":_vm.initModifyPolygon,"isShowDrawTool":_vm.isShowDrawTool,"isRight":_vm.isRight,"isCrossHair":_vm.isCrossHair,"hideAdd":_vm.hideAdd,"hidePoint":_vm.hidePoint,"hideCancel":_vm.hideCancel,"hideDelete":_vm.hideDelete,"hideSave":_vm.hideSave,"hideLine":_vm.hideLine,"hideArea":_vm.hideArea,"isSwitchMap":_vm.isSwitchMap,"isSwitchMapRight":_vm.isSwitchMapRight,"gpsType":_vm.lastMapType},on:{"crossHairClick":function($event){return _vm.crossHairClick($event)},"loadDrawPolygonEvent":function($event){return _vm.loadDrawPolygonEvent($event)},"success":function($event){return _vm.drawSuccess($event)},"error":function($event){return _vm.drawError($event)}}},[[_vm._t("maptool")]],2):_vm._e(),(_vm.map)?[_vm._t("polygon",null,{"mapDto":{map: _vm.map,lMap: _vm.lMap}})]:_vm._e(),(_vm.isSwitchMapTool && _vm.isShowSwitchMap)?_c('SwitchMap',{staticClass:"move-box",style:({
|
|
53965
|
-
|
|
53966
|
-
|
|
53967
|
-
|
|
53968
|
-
|
|
53965
|
+
top:_vm.switchMapPosTop + 'px',
|
|
53966
|
+
right:_vm.isSwitchMapRight?_vm.switchMapPosLeftOrRight + 'px':'none',
|
|
53967
|
+
left:!_vm.isSwitchMapRight?_vm.switchMapPosLeftOrRight + 'px':'none'
|
|
53968
|
+
}),attrs:{"height":_vm.switchMapHeight,"switchMapDefaultTypeOrLayer":_vm.switchMapDefaultTypeOrLayer,"mapTypeAndLayer":_vm.mapTypeAndLayer,"bottom-right":_vm.isSwitchMapRight,"isDisabled":_vm.isDisabledSwitchMapTabEvent},on:{"changeSwitchMap":_vm.changeSwitchMap}}):_vm._e()],2)}
|
|
53969
53969
|
var staticRenderFns = []
|
|
53970
53970
|
|
|
53971
53971
|
|
|
53972
|
-
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=template&id=
|
|
53972
|
+
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=template&id=2e8065b9&scoped=true&
|
|
53973
53973
|
|
|
53974
53974
|
// EXTERNAL MODULE: ./node_modules/ol/ol.css
|
|
53975
53975
|
var ol = __webpack_require__("5bc0");
|
|
@@ -54854,6 +54854,10 @@ class map_MapDto {
|
|
|
54854
54854
|
this.bindMapMoveend = {
|
|
54855
54855
|
type: Boolean,
|
|
54856
54856
|
default: false
|
|
54857
|
+
};
|
|
54858
|
+
this.isDisabledSwitchMapTabEvent = {
|
|
54859
|
+
type: Boolean,
|
|
54860
|
+
default: false
|
|
54857
54861
|
}; // 初始化编辑多边形
|
|
54858
54862
|
|
|
54859
54863
|
this.initModifyPolygon = {
|
|
@@ -55068,14 +55072,14 @@ class mapTool_MapToolDto {
|
|
|
55068
55072
|
}
|
|
55069
55073
|
|
|
55070
55074
|
}
|
|
55071
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
55075
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5463af76-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=0eda959b&scoped=true&
|
|
55072
55076
|
var srcvue_type_template_id_0eda959b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"draw-tool-box"},[(!_vm.isRight)?[(_vm.isShowDrawTool)?_c('aside',{staticClass:"map-button-box"},[(!_vm.hideAdd)?_c('el-button',{staticClass:"ele-text-primary el-icon--add",on:{"click":function($event){$event.stopPropagation();return _vm.onCreatePolygon()}}}):_vm._e(),(!_vm.hidePoint)?_c('el-button',{staticClass:"ele-text-primary el-icon--dadian",on:{"click":function($event){$event.stopPropagation();return _vm.onPointEvent()}}}):_vm._e(),(!_vm.hideCancel)?_c('el-button',{staticClass:"ele-text-primary el-icon--back",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCancel()}}}):_vm._e(),(!_vm.hideDelete)?_c('el-button',{staticClass:"ele-text-primary el-icon--ashbin",on:{"click":function($event){$event.stopPropagation();return _vm.onDelete()}}}):_vm._e(),(!_vm.hideSave)?_c('el-button',{staticClass:"ele-text-primary el-icon--duihao",on:{"click":function($event){$event.stopPropagation();return _vm.onSave()}}}):_vm._e(),_vm._t("default")],2):_vm._e(),(_vm.isShowRangingTool)?_c('aside',{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[(!_vm.hideLine)?_c('el-button',{staticClass:"ele-text-primary el-icon--changdu",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateLine()}}}):_vm._e(),(!_vm.hideArea)?_c('el-button',{staticClass:"ele-text-primary el-icon--mianji",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateArea()}}}):_vm._e()],1):_vm._e()]:[(_vm.isShowRangingTool)?_c('aside',{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[(!_vm.hideLine)?_c('el-button',{staticClass:"ele-text-primary el-icon--changdu",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateLine()}}}):_vm._e(),(!_vm.hideArea)?_c('el-button',{staticClass:"ele-text-primary el-icon--mianji",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateArea()}}}):_vm._e()],1):_vm._e(),(_vm.isShowDrawTool)?_c('aside',{staticClass:"map-button-box"},[(!_vm.hideAdd)?_c('el-button',{staticClass:"ele-text-primary el-icon--add",on:{"click":function($event){$event.stopPropagation();return _vm.onCreatePolygon()}}}):_vm._e(),(!_vm.hidePoint)?_c('el-button',{staticClass:"ele-text-primary el-icon--dadian",on:{"click":function($event){$event.stopPropagation();return _vm.onPointEvent()}}}):_vm._e(),(!_vm.hideCancel)?_c('el-button',{staticClass:"ele-text-primary el-icon--back",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCancel()}}}):_vm._e(),(!_vm.hideDelete)?_c('el-button',{staticClass:"ele-text-primary el-icon--ashbin",on:{"click":function($event){$event.stopPropagation();return _vm.onDelete()}}}):_vm._e(),(!_vm.hideSave)?_c('el-button',{staticClass:"ele-text-primary el-icon--duihao",on:{"click":function($event){$event.stopPropagation();return _vm.onSave()}}}):_vm._e(),_vm._t("default")],2):_vm._e()],(_vm.lMap)?_c('ry-cross-hair',{attrs:{"isHide":_vm.isCrossHair,"map":_vm.lMap.map},on:{"click":function($event){return _vm.onClick($event)}}}):_vm._e()],2)}
|
|
55073
55077
|
var srcvue_type_template_id_0eda959b_scoped_true_staticRenderFns = []
|
|
55074
55078
|
|
|
55075
55079
|
|
|
55076
55080
|
// CONCATENATED MODULE: ./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=0eda959b&scoped=true&
|
|
55077
55081
|
|
|
55078
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
55082
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5463af76-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&
|
|
55079
55083
|
var srcvue_type_template_id_735d1508_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
55080
55084
|
var srcvue_type_template_id_735d1508_staticRenderFns = []
|
|
55081
55085
|
|
|
@@ -55620,12 +55624,12 @@ var src_component = normalizeComponent(
|
|
|
55620
55624
|
)
|
|
55621
55625
|
|
|
55622
55626
|
/* harmony default export */ var ryMapTool_src = (src_component.exports);
|
|
55623
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
55624
|
-
var
|
|
55625
|
-
var
|
|
55627
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5463af76-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=192f9732&scoped=true&
|
|
55628
|
+
var newIndexvue_type_template_id_192f9732_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'})},[_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('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)]),_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()}
|
|
55629
|
+
var newIndexvue_type_template_id_192f9732_scoped_true_staticRenderFns = []
|
|
55626
55630
|
|
|
55627
55631
|
|
|
55628
|
-
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=
|
|
55632
|
+
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=192f9732&scoped=true&
|
|
55629
55633
|
|
|
55630
55634
|
// CONCATENATED MODULE: ./src/components/maps/models/switchMap/switchMap.js
|
|
55631
55635
|
|
|
@@ -55651,6 +55655,11 @@ class switchMap_MapToolDto {
|
|
|
55651
55655
|
default: true
|
|
55652
55656
|
});
|
|
55653
55657
|
|
|
55658
|
+
_defineProperty(this, "isDisabled", {
|
|
55659
|
+
type: Boolean,
|
|
55660
|
+
default: false
|
|
55661
|
+
});
|
|
55662
|
+
|
|
55654
55663
|
_defineProperty(this, "mapTypeAndLayer", {
|
|
55655
55664
|
type: Array,
|
|
55656
55665
|
default: () => null
|
|
@@ -55836,6 +55845,7 @@ class switchMap_MapToolDto {
|
|
|
55836
55845
|
},
|
|
55837
55846
|
|
|
55838
55847
|
changeExpand() {
|
|
55848
|
+
if (this.isDisabled) return;
|
|
55839
55849
|
this.isExpand = !this.isExpand;
|
|
55840
55850
|
|
|
55841
55851
|
if (this.isExpand) {
|
|
@@ -55881,7 +55891,8 @@ class switchMap_MapToolDto {
|
|
|
55881
55891
|
|
|
55882
55892
|
this.$emit('changeSwitchMap', {
|
|
55883
55893
|
mapType: this.mapTypeActive,
|
|
55884
|
-
layerType: this.mapStyleActive
|
|
55894
|
+
layerType: this.mapStyleActive,
|
|
55895
|
+
isDisabled: false
|
|
55885
55896
|
});
|
|
55886
55897
|
},
|
|
55887
55898
|
|
|
@@ -55900,8 +55911,8 @@ class switchMap_MapToolDto {
|
|
|
55900
55911
|
});
|
|
55901
55912
|
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=script&lang=js&
|
|
55902
55913
|
/* harmony default export */ var src_newIndexvue_type_script_lang_js_ = (newIndexvue_type_script_lang_js_);
|
|
55903
|
-
// EXTERNAL MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=style&index=0&id=
|
|
55904
|
-
var
|
|
55914
|
+
// EXTERNAL MODULE: ./src/components/maps/switchMap/src/newIndex.vue?vue&type=style&index=0&id=192f9732&prod&scoped=true&lang=scss&
|
|
55915
|
+
var newIndexvue_type_style_index_0_id_192f9732_prod_scoped_true_lang_scss_ = __webpack_require__("aad4");
|
|
55905
55916
|
|
|
55906
55917
|
// CONCATENATED MODULE: ./src/components/maps/switchMap/src/newIndex.vue
|
|
55907
55918
|
|
|
@@ -55914,11 +55925,11 @@ var newIndexvue_type_style_index_0_id_0bb284b6_prod_scoped_true_lang_scss_ = __w
|
|
|
55914
55925
|
|
|
55915
55926
|
var newIndex_component = normalizeComponent(
|
|
55916
55927
|
src_newIndexvue_type_script_lang_js_,
|
|
55917
|
-
|
|
55918
|
-
|
|
55928
|
+
newIndexvue_type_template_id_192f9732_scoped_true_render,
|
|
55929
|
+
newIndexvue_type_template_id_192f9732_scoped_true_staticRenderFns,
|
|
55919
55930
|
false,
|
|
55920
55931
|
null,
|
|
55921
|
-
"
|
|
55932
|
+
"192f9732",
|
|
55922
55933
|
null
|
|
55923
55934
|
|
|
55924
55935
|
)
|
|
@@ -55970,22 +55981,6 @@ var newIndex_component = normalizeComponent(
|
|
|
55970
55981
|
//
|
|
55971
55982
|
//
|
|
55972
55983
|
//
|
|
55973
|
-
//
|
|
55974
|
-
//
|
|
55975
|
-
//
|
|
55976
|
-
//
|
|
55977
|
-
//
|
|
55978
|
-
//
|
|
55979
|
-
//
|
|
55980
|
-
//
|
|
55981
|
-
//
|
|
55982
|
-
//
|
|
55983
|
-
//
|
|
55984
|
-
//
|
|
55985
|
-
//
|
|
55986
|
-
//
|
|
55987
|
-
//
|
|
55988
|
-
//
|
|
55989
55984
|
|
|
55990
55985
|
|
|
55991
55986
|
|
|
@@ -56068,10 +56063,13 @@ var newIndex_component = normalizeComponent(
|
|
|
56068
56063
|
mapType,
|
|
56069
56064
|
layerType
|
|
56070
56065
|
}) {
|
|
56071
|
-
this.lMap.selectMapLayer(mapType, layerType);
|
|
56066
|
+
this.lMap.selectMapLayer(mapType, layerType);
|
|
56067
|
+
|
|
56068
|
+
this._setMaxZoom(mapType, layerType);
|
|
56072
56069
|
|
|
56073
56070
|
if (this.lastMapType == mapType) return;
|
|
56074
|
-
this.lastMapType = mapType > 1 ? 0 : mapType;
|
|
56071
|
+
this.lastMapType = mapType > 1 ? 0 : mapType; // alert(2);
|
|
56072
|
+
|
|
56075
56073
|
let _mapType = mapType;
|
|
56076
56074
|
|
|
56077
56075
|
if (mapType > 1) {
|
|
@@ -56098,11 +56096,18 @@ var newIndex_component = normalizeComponent(
|
|
|
56098
56096
|
|
|
56099
56097
|
this.$emit('changeSwitchMap', {
|
|
56100
56098
|
mapType: _mapType,
|
|
56101
|
-
layerType
|
|
56102
|
-
type: mapType
|
|
56099
|
+
layerType
|
|
56103
56100
|
});
|
|
56104
56101
|
},
|
|
56105
56102
|
|
|
56103
|
+
_setMaxZoom(type, layerType) {
|
|
56104
|
+
if (type == 2 || layerType == 0) {
|
|
56105
|
+
this.setMaxZoom(28); // return;
|
|
56106
|
+
} else {
|
|
56107
|
+
this.setMaxZoom(18);
|
|
56108
|
+
}
|
|
56109
|
+
},
|
|
56110
|
+
|
|
56106
56111
|
loadMap(el) {
|
|
56107
56112
|
// const dto =
|
|
56108
56113
|
this.lMap.init({
|
|
@@ -56276,8 +56281,8 @@ var newIndex_component = normalizeComponent(
|
|
|
56276
56281
|
});
|
|
56277
56282
|
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=script&lang=js&
|
|
56278
56283
|
/* harmony default export */ var maps_ryMap_srcvue_type_script_lang_js_ = (ryMap_srcvue_type_script_lang_js_);
|
|
56279
|
-
// EXTERNAL MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=style&index=0&id=
|
|
56280
|
-
var
|
|
56284
|
+
// EXTERNAL MODULE: ./src/components/maps/ryMap/src/index.vue?vue&type=style&index=0&id=2e8065b9&prod&lang=scss&scoped=true&
|
|
56285
|
+
var srcvue_type_style_index_0_id_2e8065b9_prod_lang_scss_scoped_true_ = __webpack_require__("c4c9");
|
|
56281
56286
|
|
|
56282
56287
|
// CONCATENATED MODULE: ./src/components/maps/ryMap/src/index.vue
|
|
56283
56288
|
|
|
@@ -56294,7 +56299,7 @@ var ryMap_src_component = normalizeComponent(
|
|
|
56294
56299
|
staticRenderFns,
|
|
56295
56300
|
false,
|
|
56296
56301
|
null,
|
|
56297
|
-
"
|
|
56302
|
+
"2e8065b9",
|
|
56298
56303
|
null
|
|
56299
56304
|
|
|
56300
56305
|
)
|
|
@@ -56324,7 +56329,7 @@ ryMapTool_src.install = Vue => {
|
|
|
56324
56329
|
};
|
|
56325
56330
|
|
|
56326
56331
|
/* harmony default export */ var ryMapTool = (ryMapTool_src);
|
|
56327
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
56332
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5463af76-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&
|
|
56328
56333
|
var srcvue_type_template_id_3e8f1c13_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
56329
56334
|
var srcvue_type_template_id_3e8f1c13_staticRenderFns = []
|
|
56330
56335
|
|
|
@@ -56698,7 +56703,7 @@ ryPolygon_src.install = Vue => {
|
|
|
56698
56703
|
};
|
|
56699
56704
|
|
|
56700
56705
|
/* harmony default export */ var ryPolygon = (ryPolygon_src);
|
|
56701
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
56706
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5463af76-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryPolygons/src/index.vue?vue&type=template&id=669909a7&
|
|
56702
56707
|
var srcvue_type_template_id_669909a7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
56703
56708
|
var srcvue_type_template_id_669909a7_staticRenderFns = []
|
|
56704
56709
|
|
|
@@ -57437,7 +57442,7 @@ ryPolygons_src.install = Vue => {
|
|
|
57437
57442
|
};
|
|
57438
57443
|
|
|
57439
57444
|
/* harmony default export */ var ryPolygons = (ryPolygons_src);
|
|
57440
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
57445
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5463af76-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=40183d93&scoped=true&
|
|
57441
57446
|
var srcvue_type_template_id_40183d93_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
|
|
57442
57447
|
var srcvue_type_template_id_40183d93_scoped_true_staticRenderFns = []
|
|
57443
57448
|
|
|
@@ -57725,16 +57730,277 @@ ryClusters_src.install = Vue => {
|
|
|
57725
57730
|
};
|
|
57726
57731
|
|
|
57727
57732
|
/* harmony default export */ var ryClusters = (ryClusters_src);
|
|
57733
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5463af76-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=7a178bed&
|
|
57734
|
+
var srcvue_type_template_id_7a178bed_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
57735
|
+
var srcvue_type_template_id_7a178bed_staticRenderFns = []
|
|
57736
|
+
|
|
57737
|
+
|
|
57738
|
+
// CONCATENATED MODULE: ./src/components/maps/ryPolygonGeo/src/index.vue?vue&type=template&id=7a178bed&
|
|
57739
|
+
|
|
57740
|
+
// CONCATENATED MODULE: ./src/components/maps/models/ryPolygonGeo/ryPolygonGeo.js
|
|
57741
|
+
|
|
57742
|
+
|
|
57743
|
+
class ryPolygonGeo_PolygonDto extends base_Base {
|
|
57744
|
+
constructor(...args) {
|
|
57745
|
+
super(...args);
|
|
57746
|
+
|
|
57747
|
+
_defineProperty(this, "model", {
|
|
57748
|
+
type: Object,
|
|
57749
|
+
default: () => null
|
|
57750
|
+
});
|
|
57751
|
+
|
|
57752
|
+
_defineProperty(this, "isShow", {
|
|
57753
|
+
type: Boolean,
|
|
57754
|
+
default: true
|
|
57755
|
+
});
|
|
57756
|
+
|
|
57757
|
+
_defineProperty(this, "clear", {
|
|
57758
|
+
type: Boolean,
|
|
57759
|
+
default: false
|
|
57760
|
+
});
|
|
57761
|
+
|
|
57762
|
+
_defineProperty(this, "isFit", {
|
|
57763
|
+
type: Boolean,
|
|
57764
|
+
default: true
|
|
57765
|
+
});
|
|
57766
|
+
}
|
|
57767
|
+
|
|
57768
|
+
}
|
|
57769
|
+
// 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/ryPolygonGeo/src/index.vue?vue&type=script&lang=js&
|
|
57770
|
+
//
|
|
57771
|
+
//
|
|
57772
|
+
//
|
|
57773
|
+
|
|
57774
|
+
|
|
57775
|
+
/* harmony default export */ var ryPolygonGeo_srcvue_type_script_lang_js_ = ({
|
|
57776
|
+
name: 'RyPolygonGeo',
|
|
57777
|
+
props: { ...new ryPolygonGeo_PolygonDto()
|
|
57778
|
+
},
|
|
57779
|
+
|
|
57780
|
+
data() {
|
|
57781
|
+
return {
|
|
57782
|
+
polygon: null,
|
|
57783
|
+
bbox: [],
|
|
57784
|
+
bboxGCJ02: [],
|
|
57785
|
+
lastType: -1
|
|
57786
|
+
};
|
|
57787
|
+
},
|
|
57788
|
+
|
|
57789
|
+
watch: {
|
|
57790
|
+
isShow(val) {
|
|
57791
|
+
if (!this.polygon) return;
|
|
57792
|
+
|
|
57793
|
+
if (val) {
|
|
57794
|
+
this.show();
|
|
57795
|
+
return;
|
|
57796
|
+
}
|
|
57797
|
+
|
|
57798
|
+
this.hide();
|
|
57799
|
+
},
|
|
57800
|
+
|
|
57801
|
+
clear(val) {
|
|
57802
|
+
if (val) {
|
|
57803
|
+
this.remove();
|
|
57804
|
+
}
|
|
57805
|
+
},
|
|
57806
|
+
|
|
57807
|
+
model(val) {
|
|
57808
|
+
this.remove();
|
|
57809
|
+
this.model = val;
|
|
57810
|
+
this.init();
|
|
57811
|
+
},
|
|
57812
|
+
|
|
57813
|
+
isFit(val) {
|
|
57814
|
+
this.isFit = val;
|
|
57815
|
+
|
|
57816
|
+
if (val) {
|
|
57817
|
+
this.setFit();
|
|
57818
|
+
}
|
|
57819
|
+
},
|
|
57820
|
+
|
|
57821
|
+
gpsType(val) {
|
|
57822
|
+
if (this.lastType == val) return;
|
|
57823
|
+
this.gpsType = val;
|
|
57824
|
+
this.lastType = val;
|
|
57825
|
+
this.selectGPSAll(this.gpsType);
|
|
57826
|
+
}
|
|
57827
|
+
|
|
57828
|
+
},
|
|
57829
|
+
|
|
57830
|
+
created() {
|
|
57831
|
+
this.init();
|
|
57832
|
+
},
|
|
57833
|
+
|
|
57834
|
+
methods: {
|
|
57835
|
+
init() {
|
|
57836
|
+
this.lastType = this.gpsType;
|
|
57837
|
+
if (!this.model || !this.model.geo) return;
|
|
57838
|
+
let centerArr = [];
|
|
57839
|
+
|
|
57840
|
+
if (this.model.geo) {
|
|
57841
|
+
const {
|
|
57842
|
+
coordinates,
|
|
57843
|
+
center,
|
|
57844
|
+
bbox
|
|
57845
|
+
} = this._serializeGeoJson();
|
|
57846
|
+
|
|
57847
|
+
this.bbox = bbox;
|
|
57848
|
+
this.bboxGCJ02 = this.convertBBoxGCJ02(bbox);
|
|
57849
|
+
centerArr = center;
|
|
57850
|
+
} else {
|
|
57851
|
+
this.bbox = Object(ry_map["getLngAndLatMaxMin"])(this.model.coordinates);
|
|
57852
|
+
this.bboxGCJ02 = this.convertBBoxGCJ02(this.bbox);
|
|
57853
|
+
}
|
|
57854
|
+
|
|
57855
|
+
this.polygon = Object(ry_map["createPolygonBoundary"])(this.model.geo, this.model);
|
|
57856
|
+
this.map.addLayer(this.polygon);
|
|
57857
|
+
|
|
57858
|
+
if (this.isFit) {
|
|
57859
|
+
this.setFit(this.gpsType == 1 ? this.bboxGCJ02 : this.bbox);
|
|
57860
|
+
}
|
|
57861
|
+
|
|
57862
|
+
this.polygon.isShowPolygon = true;
|
|
57863
|
+
|
|
57864
|
+
if (this.isShow) {
|
|
57865
|
+
this.show();
|
|
57866
|
+
} else {
|
|
57867
|
+
this.hide();
|
|
57868
|
+
}
|
|
57869
|
+
|
|
57870
|
+
if (this.clear) {
|
|
57871
|
+
this.remove();
|
|
57872
|
+
}
|
|
57873
|
+
|
|
57874
|
+
this.$emit('onLoad', {
|
|
57875
|
+
polygon: this.polygon
|
|
57876
|
+
});
|
|
57877
|
+
},
|
|
57878
|
+
|
|
57879
|
+
setFit(bbox) {
|
|
57880
|
+
if (!bbox.length || !this.map) return;
|
|
57881
|
+
const bbox2 = [bbox[0], bbox[3], bbox[2], bbox[1]];
|
|
57882
|
+
const bbox3 = [bbox[2], bbox[1], bbox[0], bbox[3]];
|
|
57883
|
+
Object(ry_map["fitNew"])(this.map, [bbox2, bbox3]);
|
|
57884
|
+
},
|
|
57885
|
+
|
|
57886
|
+
_serializeGeoJson() {
|
|
57887
|
+
let geo = null;
|
|
57888
|
+
|
|
57889
|
+
if (this.model.geo instanceof Object) {
|
|
57890
|
+
geo = this.model.geo;
|
|
57891
|
+
} else if (typeof this.model.geo === 'string') {
|
|
57892
|
+
geo = JSON.parse(this.model.geo);
|
|
57893
|
+
} else {
|
|
57894
|
+
return geo;
|
|
57895
|
+
}
|
|
57896
|
+
|
|
57897
|
+
const {
|
|
57898
|
+
bbox,
|
|
57899
|
+
geometry,
|
|
57900
|
+
properties
|
|
57901
|
+
} = geo;
|
|
57902
|
+
let center = [];
|
|
57903
|
+
|
|
57904
|
+
if (properties && properties.center) {
|
|
57905
|
+
center = properties.center;
|
|
57906
|
+
}
|
|
57907
|
+
|
|
57908
|
+
return {
|
|
57909
|
+
bbox,
|
|
57910
|
+
coordinates: geometry.coordinates,
|
|
57911
|
+
center: center.length ? center : Object(ry_map["getCenterPoint"])(geometry.coordinates)
|
|
57912
|
+
};
|
|
57913
|
+
},
|
|
57914
|
+
|
|
57915
|
+
convertBBoxGCJ02(bbox) {
|
|
57916
|
+
const pointArr = [];
|
|
57917
|
+
const {
|
|
57918
|
+
lat,
|
|
57919
|
+
lon
|
|
57920
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[0], bbox[1]);
|
|
57921
|
+
const {
|
|
57922
|
+
lon: lon2,
|
|
57923
|
+
lat: lat2
|
|
57924
|
+
} = ry_map["GPS"].gcj_encrypt(bbox[2], bbox[3]);
|
|
57925
|
+
pointArr.push(lon);
|
|
57926
|
+
pointArr.push(lat);
|
|
57927
|
+
pointArr.push(lon2);
|
|
57928
|
+
pointArr.push(lat2);
|
|
57929
|
+
return pointArr;
|
|
57930
|
+
},
|
|
57931
|
+
|
|
57932
|
+
getBBOX() {
|
|
57933
|
+
if (this.model.geo) return;
|
|
57934
|
+
return Object(ry_map["getLngAndLatMaxMin"])(this.model.coordinates);
|
|
57935
|
+
},
|
|
57936
|
+
|
|
57937
|
+
show() {// if(this.polygon){
|
|
57938
|
+
// this.map.addLayer(this.polygon);
|
|
57939
|
+
// }
|
|
57940
|
+
},
|
|
57941
|
+
|
|
57942
|
+
hide() {// this.polygon.hide();
|
|
57943
|
+
// if(this.polygon){
|
|
57944
|
+
// this.map.removeLayer(this.polygon);
|
|
57945
|
+
// }
|
|
57946
|
+
},
|
|
57947
|
+
|
|
57948
|
+
selectGPSAll(type) {},
|
|
57949
|
+
|
|
57950
|
+
remove() {
|
|
57951
|
+
if (this.map && this.polygon) {
|
|
57952
|
+
this.map.removeLayer(this.polygon);
|
|
57953
|
+
this.polygon = null;
|
|
57954
|
+
}
|
|
57955
|
+
},
|
|
57956
|
+
|
|
57957
|
+
getId() {
|
|
57958
|
+
return this.id;
|
|
57959
|
+
}
|
|
57960
|
+
|
|
57961
|
+
}
|
|
57962
|
+
});
|
|
57963
|
+
// CONCATENATED MODULE: ./src/components/maps/ryPolygonGeo/src/index.vue?vue&type=script&lang=js&
|
|
57964
|
+
/* harmony default export */ var maps_ryPolygonGeo_srcvue_type_script_lang_js_ = (ryPolygonGeo_srcvue_type_script_lang_js_);
|
|
57965
|
+
// CONCATENATED MODULE: ./src/components/maps/ryPolygonGeo/src/index.vue
|
|
57966
|
+
|
|
57967
|
+
|
|
57968
|
+
|
|
57969
|
+
|
|
57970
|
+
|
|
57971
|
+
/* normalize component */
|
|
57972
|
+
|
|
57973
|
+
var ryPolygonGeo_src_component = normalizeComponent(
|
|
57974
|
+
maps_ryPolygonGeo_srcvue_type_script_lang_js_,
|
|
57975
|
+
srcvue_type_template_id_7a178bed_render,
|
|
57976
|
+
srcvue_type_template_id_7a178bed_staticRenderFns,
|
|
57977
|
+
false,
|
|
57978
|
+
null,
|
|
57979
|
+
null,
|
|
57980
|
+
null
|
|
57981
|
+
|
|
57982
|
+
)
|
|
57983
|
+
|
|
57984
|
+
/* harmony default export */ var ryPolygonGeo_src = (ryPolygonGeo_src_component.exports);
|
|
57985
|
+
// CONCATENATED MODULE: ./src/components/maps/ryPolygonGeo/index.js
|
|
57986
|
+
|
|
57987
|
+
|
|
57988
|
+
ryPolygonGeo_src.install = Vue => {
|
|
57989
|
+
Vue.install(ryPolygonGeo_src.name, ryPolygonGeo_src);
|
|
57990
|
+
};
|
|
57991
|
+
|
|
57992
|
+
/* harmony default export */ var ryPolygonGeo = (ryPolygonGeo_src);
|
|
57728
57993
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
57729
57994
|
|
|
57730
57995
|
|
|
57731
57996
|
|
|
57732
57997
|
|
|
57733
57998
|
|
|
57999
|
+
|
|
57734
58000
|
// import "./fonts/iconfont.css";
|
|
57735
58001
|
// 组件列表
|
|
57736
58002
|
|
|
57737
|
-
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters]; // 定义install
|
|
58003
|
+
const components = [ryMap, ryCrossHair, ryMapTool, ryPolygon, ryPolygons, ryClusters, ryPolygonGeo]; // 定义install
|
|
57738
58004
|
|
|
57739
58005
|
const install = (Vue, options) => {
|
|
57740
58006
|
// 遍历注册全局组件
|
package/lib/ryui.common.js.gz
CHANGED
|
Binary file
|