qy-vue-plugins 1.0.2-beta → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apply-element-plus-theme.cjs +1 -0
- package/dist/apply-element-plus-theme.mjs +22 -0
- package/dist/beijihua-map-icon/hiper-map-icon-1.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-10.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-11.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-12.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-13.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-14.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-15.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-16.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-17.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-18.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-19.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-2.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-20.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-21.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-22.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-23.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-24.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-25.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-26.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-27.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-28.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-29.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-3.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-30.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-31.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-32.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-33.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-34.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-35.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-36.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-37.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-38.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-39.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-4.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-40.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-41.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-42.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-43.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-44.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-45.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-46.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-47.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-48.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-49.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-5.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-50.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-51.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-52.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-53.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-54.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-55.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-56.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-57.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-58.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-59.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-6.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-60.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-61.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-62.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-63.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-64.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-65.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-7.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-8.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-9.png +0 -0
- package/dist/chunks/{EventKeys-1aL9cgT0.js → EventKeys-DZ_Hahro.js} +4 -4
- package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-C3__NQXN.js → MapTools.vue_vue_type_style_index_0_lang-C0C9opKY.js} +1 -1
- package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-BJi8BdV8.js → MapTools.vue_vue_type_style_index_0_lang-CZ_dEmHg.js} +2 -2
- package/dist/chunks/{ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-C8wD6gZS.js → ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CjJ3e53H.js} +12 -13
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-m9hkScAC.js +1 -0
- package/dist/chunks/apply-element-plus-theme-DdN9KOhk.js +1 -0
- package/dist/chunks/apply-element-plus-theme-UHVxP4VN.js +22 -0
- package/dist/chunks/aria-B5rZ0WFy.js +5 -0
- package/dist/chunks/aria-BEkkcjlH.js +115 -0
- package/dist/chunks/constant-Bq4ASE9Q.js +1 -0
- package/dist/chunks/{constant-BqK1UnfT.js → constant-E83OJqPQ.js} +17 -36
- package/dist/chunks/debounce-CHS-N31c.js +1 -0
- package/dist/chunks/debounce-DBq5TVsN.js +55 -0
- package/dist/chunks/{el-loading-CBXyo6la.js → directive-C-4KkhaM.js} +2 -2
- package/dist/chunks/directive-DRO4tFsQ.js +1 -0
- package/dist/chunks/index-03UF6hCZ.js +14 -0
- package/dist/chunks/index-B6SD5IcP.js +1 -0
- package/dist/chunks/{index-DHO_7w-5.js → index-BCQYbM-I.js} +22 -22
- package/dist/chunks/{el-input-DCpRXscw.js → index-BdloQTv1.js} +171 -175
- package/dist/chunks/{el-overlay-BJQjrf5W.js → index-BeskO4C8.js} +76 -75
- package/dist/chunks/index-BoFuR9-k.js +2 -0
- package/dist/chunks/index-Bs9zhLlD.js +1 -0
- package/dist/chunks/index-C-WIOEu8.js +1 -0
- package/dist/chunks/index-CD-vLVPt.js +1 -0
- package/dist/chunks/index-CD4bijv7.js +1 -0
- package/dist/chunks/index-CHRyd-8X.js +1 -0
- package/dist/chunks/{el-button-Dh7ROB0R.js → index-CgKiWbxR.js} +110 -117
- package/dist/chunks/{el-popper-zUql4Vp-.js → index-Cv_K9rbv.js} +47 -46
- package/dist/chunks/{el-select-Dil0JEvg.js → index-Cyrc4mj-.js} +467 -492
- package/dist/chunks/index-DLBjU25P.js +3 -0
- package/dist/chunks/index-DgwQEHlD.js +12 -0
- package/dist/chunks/index-LWCtnbZP.js +13 -0
- package/dist/chunks/index-OtE8c8y9.js +1 -0
- package/dist/chunks/index-Qzqd5jTh.js +1 -0
- package/dist/chunks/index-VbRYJz2E.js +1 -0
- package/dist/chunks/index-YiSmXvH8.js +975 -0
- package/dist/chunks/{index-Dq3Y5qiS.js → index-_At9ftZd.js} +35 -35
- package/dist/chunks/{index-Cw_w6CLf.js → index-ieQ_IULW.js} +11 -11
- package/dist/chunks/{el-form-item-CXLLocXw.js → index-mDs-Bipv.js} +151 -150
- package/dist/chunks/mapSetting-B1a88k-v.js +635 -0
- package/dist/chunks/mapSetting-Ba76lOJd.js +1 -0
- package/dist/chunks/{base-DfCoKyyG.js → style-COMeMpO8.js} +81 -80
- package/dist/chunks/{base-DK_JFP90.js → style-DiDWGUIe.js} +1 -1
- package/dist/chunks/toNumber-CCcOx5KD.js +1 -0
- package/dist/chunks/toNumber-CDwzVyqL.js +30 -0
- package/dist/chunks/use-form-common-props-BQtZKazE.js +66 -0
- package/dist/chunks/use-form-common-props-SdGVhyVk.js +1 -0
- package/dist/chunks/{use-global-config-DXAWJFeA.js → use-global-config-Ba3i7fKX.js} +18 -17
- package/dist/chunks/use-global-config-PaSl-b_9.js +1 -0
- package/dist/chunks/utils-BJ8Lu8TY.js +516 -0
- package/dist/chunks/utils-CrwGKkIz.js +1 -0
- package/dist/chunks/vnode-CvqQoLhR.js +1 -0
- package/dist/chunks/vnode-DpjFDm4v.js +70 -0
- package/dist/element-plus-style.cjs +1 -0
- package/dist/element-plus-style.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +13 -10
- package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
- package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
- package/dist/manageTable/index.cjs +1 -1
- package/dist/manageTable/index.mjs +10 -8
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +1 -1
- package/dist/mapbox/components/VideoDialog.cjs +1 -1
- package/dist/mapbox/components/VideoDialog.mjs +16 -17
- package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapbox/widgets/LayerAttributeDialog.mjs +30 -31
- package/dist/mapbox.cjs +1 -1
- package/dist/mapbox.mjs +22 -20
- package/dist/mapboxV2/MapView.cjs +1 -1
- package/dist/mapboxV2/MapView.mjs +3728 -1256
- package/dist/mapboxV2/components/MapLegend.cjs +1 -1
- package/dist/mapboxV2/components/MapLegend.mjs +51 -167
- package/dist/mapboxV2/components/MapTools.cjs +1 -1
- package/dist/mapboxV2/components/MapTools.mjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.cjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.mjs +12 -13
- package/dist/mapboxV2/components/mapSetting.cjs +1 -1
- package/dist/mapboxV2/components/mapSetting.mjs +1 -1
- package/dist/mapboxV2/components/mapTopic.cjs +1 -1
- package/dist/mapboxV2/components/mapTopic.mjs +349 -446
- package/dist/mapboxV2/constant.cjs +1 -1
- package/dist/mapboxV2/constant.mjs +13 -17
- package/dist/mapboxV2/useTif.cjs +1 -1
- package/dist/mapboxV2/useTif.mjs +86 -86
- package/dist/mapboxV2/utils.cjs +1 -1
- package/dist/mapboxV2/utils.mjs +362 -279
- package/dist/mapboxV2/widgets/CustomShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/CustomShapeDialog.mjs +87 -67
- package/dist/mapboxV2/widgets/IconPicker.cjs +1 -1
- package/dist/mapboxV2/widgets/IconPicker.mjs +59 -48
- package/dist/mapboxV2/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerAttributeDialog.mjs +17 -18
- package/dist/mapboxV2/widgets/LayerDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerDialog.mjs +94 -86
- package/dist/mapboxV2/widgets/LegendDialogLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogLine.mjs +95 -90
- package/dist/mapboxV2/widgets/LegendDialogPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogPoint.mjs +90 -85
- package/dist/mapboxV2/widgets/LegendLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendLine.mjs +28 -61
- package/dist/mapboxV2/widgets/LegendPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPoint.mjs +52 -66
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.mjs +16 -18
- package/dist/mapboxV2/widgets/LegendPopLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopLine.mjs +72 -73
- package/dist/mapboxV2/widgets/LegendPopPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopPoint.mjs +113 -112
- package/dist/mapboxV2/widgets/LegendShape.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendShape.mjs +17 -14
- package/dist/mapboxV2/widgets/LegendSymbol.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendSymbol.mjs +5 -5
- package/dist/mapboxV2/widgets/ShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/ShapeDialog.mjs +1663 -1422
- package/dist/mapboxV2/widgets/TopicItemPop.cjs +1 -1
- package/dist/mapboxV2/widgets/TopicItemPop.mjs +2 -2
- package/dist/mapboxV2/widgets/TopicPop.mjs +1 -1
- package/dist/mapboxV2.cjs +3 -3
- package/dist/mapboxV2.mjs +673 -824
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/apply-element-plus-theme.d.ts +1 -0
- package/dist/types/element-plus-style.d.ts +0 -0
- package/dist/types/manageTable/manageTable.vue.d.ts +2 -2
- package/dist/types/mapboxV2/MapView.vue.d.ts +130 -3
- package/dist/types/mapboxV2/components/mapTopic.vue.d.ts +10 -591
- package/dist/types/mapboxV2/types/map-layer.d.ts +185 -3
- package/dist/types/mapboxV2/useTif.d.ts +2 -2
- package/dist/types/mapboxV2/utils/geojsonRenderer.d.ts +123 -0
- package/dist/types/mapboxV2/utils.d.ts +5 -0
- package/dist/types/mapboxV2/widgets/IconPicker.vue.d.ts +8 -10
- package/dist/types/mapboxV2/widgets/index.d.ts +3 -0
- package/dist/types/mapboxV2/widgets/track/TrackImageDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackTextDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackVoiceDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/index.d.ts +3 -0
- package/dist/types/store/mapStore.d.ts +122 -0
- package/dist/types/types/map.d.ts +111 -7
- package/package/apply-element-plus-theme.ts +23 -0
- package/package/css/common.scss +33 -0
- package/package/css/element-plus-theme.scss +30 -0
- package/package/css/map.scss +42 -0
- package/package/element-plus-style.ts +48 -0
- package/package/manageTable/index.ts +5 -0
- package/package/mapbox/index.ts +5 -0
- package/package/mapboxV2/constant.ts +4 -12
- package/package/mapboxV2/index.ts +5 -0
- package/package/mapboxV2/useTif.ts +18 -13
- package/package/mapboxV2/utils.ts +303 -143
- package/package/mapboxV2/widgets/index.ts +5 -0
- package/package/types/map.ts +129 -32
- package/package.json +27 -3
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-DnYed7Kh.js +0 -1
- package/dist/chunks/aria-B-Cm8P6h.js +0 -5
- package/dist/chunks/aria-GiGFrmP1.js +0 -175
- package/dist/chunks/constant-mXEWtcQf.js +0 -1
- package/dist/chunks/el-button-w9UOZkmd.js +0 -3
- package/dist/chunks/el-color-picker-panel-BWjyXHBz.js +0 -1
- package/dist/chunks/el-color-picker-panel-BfOVWDkH.js +0 -1024
- package/dist/chunks/el-form-item-ECXS8pAs.js +0 -12
- package/dist/chunks/el-input-tAiZBp5N.js +0 -1
- package/dist/chunks/el-loading-BDhLUhme.js +0 -1
- package/dist/chunks/el-overlay-BEd31jh6.js +0 -1
- package/dist/chunks/el-popper-C6hJmTeX.js +0 -1
- package/dist/chunks/el-select-BXP0YqqB.js +0 -1
- package/dist/chunks/index-BIPr63lF.js +0 -1
- package/dist/chunks/index-BIaoqnN4.js +0 -1
- package/dist/chunks/index-D9eecDRK.js +0 -2
- package/dist/chunks/mapSetting-BRasGCqk.js +0 -597
- package/dist/chunks/mapSetting-CfE-5SCc.js +0 -1
- package/dist/chunks/use-global-config-y6gk28OO.js +0 -1
- package/dist/chunks/utils-CZxmwfl_.js +0 -1
- package/dist/chunks/utils-n1i0zWzc.js +0 -454
- package/dist/chunks/vnode-CyTnPoXJ.js +0 -47
- package/dist/chunks/vnode-eKMqbqaC.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-BRUTHTNe.js +0 -12
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-CksusXxb.js +0 -28
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-DchJeGnp.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-yXKDlNvO.js +0 -17
|
@@ -1,597 +0,0 @@
|
|
|
1
|
-
import { j as k, m as v, s as q, u as G, k as Q } from "./base-DfCoKyyG.js";
|
|
2
|
-
import { E as X } from "./el-button-Dh7ROB0R.js";
|
|
3
|
-
import { E as W, a as Y } from "./el-form-item-CXLLocXw.js";
|
|
4
|
-
import { E as ee } from "./el-input-DCpRXscw.js";
|
|
5
|
-
import { u as p, r as te, a as C, E as oe } from "./el-popper-zUql4Vp-.js";
|
|
6
|
-
import { defineComponent as U, computed as w, ref as h, unref as n, createBlock as x, openBlock as _, mergeProps as ae, withCtx as r, renderSlot as Z, createCommentVNode as $, createElementBlock as z, normalizeClass as K, toDisplayString as F, createTextVNode as g, inject as re, onMounted as le, onUnmounted as ie, Transition as ne, withDirectives as se, createElementVNode as o, createVNode as a, Fragment as pe, renderList as de, vShow as ue } from "vue";
|
|
7
|
-
import { i as fe, v as me, t as ce } from "./img_c-B-7oksYM.js";
|
|
8
|
-
import { QuestionFilled as E, Hide as ve, View as ge } from "@element-plus/icons-vue";
|
|
9
|
-
import { g as ye, c as be } from "./EventKeys-1aL9cgT0.js";
|
|
10
|
-
import { u as he } from "./mapStore-Eu13mnJg.js";
|
|
11
|
-
import { M as A } from "./map-CBmOzxBT.js";
|
|
12
|
-
import { E as V } from "./index-Cw_w6CLf.js";
|
|
13
|
-
import { a as _e, _ as Ce, w as we, h as Ee, E as Se } from "./aria-GiGFrmP1.js";
|
|
14
|
-
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const I = k({
|
|
16
|
-
trigger: {
|
|
17
|
-
...C.trigger,
|
|
18
|
-
type: v([
|
|
19
|
-
String,
|
|
20
|
-
Array
|
|
21
|
-
])
|
|
22
|
-
},
|
|
23
|
-
triggerKeys: {
|
|
24
|
-
type: v(Array),
|
|
25
|
-
default: () => [
|
|
26
|
-
V.enter,
|
|
27
|
-
V.numpadEnter,
|
|
28
|
-
V.space,
|
|
29
|
-
V.down
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
virtualTriggering: C.virtualTriggering,
|
|
33
|
-
virtualRef: C.virtualRef,
|
|
34
|
-
effect: {
|
|
35
|
-
...p.effect,
|
|
36
|
-
default: "light"
|
|
37
|
-
},
|
|
38
|
-
type: {
|
|
39
|
-
type: v(String)
|
|
40
|
-
},
|
|
41
|
-
placement: {
|
|
42
|
-
type: v(String),
|
|
43
|
-
default: "bottom"
|
|
44
|
-
},
|
|
45
|
-
popperOptions: {
|
|
46
|
-
type: v(Object),
|
|
47
|
-
default: () => ({})
|
|
48
|
-
},
|
|
49
|
-
id: String,
|
|
50
|
-
size: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: ""
|
|
53
|
-
},
|
|
54
|
-
splitButton: Boolean,
|
|
55
|
-
hideOnClick: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: !0
|
|
58
|
-
},
|
|
59
|
-
loop: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: !0
|
|
62
|
-
},
|
|
63
|
-
showArrow: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: !0
|
|
66
|
-
},
|
|
67
|
-
showTimeout: {
|
|
68
|
-
type: Number,
|
|
69
|
-
default: 150
|
|
70
|
-
},
|
|
71
|
-
hideTimeout: {
|
|
72
|
-
type: Number,
|
|
73
|
-
default: 150
|
|
74
|
-
},
|
|
75
|
-
tabindex: {
|
|
76
|
-
type: v([Number, String]),
|
|
77
|
-
default: 0
|
|
78
|
-
},
|
|
79
|
-
maxHeight: {
|
|
80
|
-
type: v([Number, String]),
|
|
81
|
-
default: ""
|
|
82
|
-
},
|
|
83
|
-
popperClass: p.popperClass,
|
|
84
|
-
popperStyle: p.popperStyle,
|
|
85
|
-
disabled: Boolean,
|
|
86
|
-
role: {
|
|
87
|
-
type: String,
|
|
88
|
-
values: te,
|
|
89
|
-
default: "menu"
|
|
90
|
-
},
|
|
91
|
-
buttonProps: {
|
|
92
|
-
type: v(Object)
|
|
93
|
-
},
|
|
94
|
-
teleported: p.teleported,
|
|
95
|
-
persistent: {
|
|
96
|
-
type: Boolean,
|
|
97
|
-
default: !0
|
|
98
|
-
}
|
|
99
|
-
}), yt = k({
|
|
100
|
-
command: {
|
|
101
|
-
type: [Object, String, Number],
|
|
102
|
-
default: () => ({})
|
|
103
|
-
},
|
|
104
|
-
disabled: Boolean,
|
|
105
|
-
divided: Boolean,
|
|
106
|
-
textValue: String,
|
|
107
|
-
icon: {
|
|
108
|
-
type: _e
|
|
109
|
-
}
|
|
110
|
-
}), bt = k({
|
|
111
|
-
onKeydown: { type: v(Function) }
|
|
112
|
-
}), Be = k({
|
|
113
|
-
trigger: C.trigger,
|
|
114
|
-
triggerKeys: C.triggerKeys,
|
|
115
|
-
placement: I.placement,
|
|
116
|
-
disabled: C.disabled,
|
|
117
|
-
visible: p.visible,
|
|
118
|
-
transition: p.transition,
|
|
119
|
-
popperOptions: I.popperOptions,
|
|
120
|
-
tabindex: I.tabindex,
|
|
121
|
-
content: p.content,
|
|
122
|
-
popperStyle: p.popperStyle,
|
|
123
|
-
popperClass: p.popperClass,
|
|
124
|
-
enterable: {
|
|
125
|
-
...p.enterable,
|
|
126
|
-
default: !0
|
|
127
|
-
},
|
|
128
|
-
effect: {
|
|
129
|
-
...p.effect,
|
|
130
|
-
default: "light"
|
|
131
|
-
},
|
|
132
|
-
teleported: p.teleported,
|
|
133
|
-
appendTo: p.appendTo,
|
|
134
|
-
title: String,
|
|
135
|
-
width: {
|
|
136
|
-
type: [String, Number],
|
|
137
|
-
default: 150
|
|
138
|
-
},
|
|
139
|
-
offset: {
|
|
140
|
-
type: Number,
|
|
141
|
-
default: void 0
|
|
142
|
-
},
|
|
143
|
-
showAfter: {
|
|
144
|
-
type: Number,
|
|
145
|
-
default: 0
|
|
146
|
-
},
|
|
147
|
-
hideAfter: {
|
|
148
|
-
type: Number,
|
|
149
|
-
default: 200
|
|
150
|
-
},
|
|
151
|
-
autoClose: {
|
|
152
|
-
type: Number,
|
|
153
|
-
default: 0
|
|
154
|
-
},
|
|
155
|
-
showArrow: {
|
|
156
|
-
type: Boolean,
|
|
157
|
-
default: !0
|
|
158
|
-
},
|
|
159
|
-
persistent: {
|
|
160
|
-
type: Boolean,
|
|
161
|
-
default: !0
|
|
162
|
-
},
|
|
163
|
-
"onUpdate:visible": {
|
|
164
|
-
type: Function
|
|
165
|
-
}
|
|
166
|
-
}), Pe = {
|
|
167
|
-
"update:visible": (f) => q(f),
|
|
168
|
-
"before-enter": () => !0,
|
|
169
|
-
"before-leave": () => !0,
|
|
170
|
-
"after-enter": () => !0,
|
|
171
|
-
"after-leave": () => !0
|
|
172
|
-
}, Ve = "onUpdate:visible", xe = U({
|
|
173
|
-
name: "ElPopover"
|
|
174
|
-
}), ke = /* @__PURE__ */ U({
|
|
175
|
-
...xe,
|
|
176
|
-
props: Be,
|
|
177
|
-
emits: Pe,
|
|
178
|
-
setup(f, { expose: m, emit: d }) {
|
|
179
|
-
const s = f, y = w(() => s[Ve]), c = G("popover"), l = h(), S = w(() => {
|
|
180
|
-
var t;
|
|
181
|
-
return (t = n(l)) == null ? void 0 : t.popperRef;
|
|
182
|
-
}), N = w(() => [
|
|
183
|
-
{
|
|
184
|
-
width: Q(s.width)
|
|
185
|
-
},
|
|
186
|
-
s.popperStyle
|
|
187
|
-
]), M = w(() => [c.b(), s.popperClass, { [c.m("plain")]: !!s.content }]), T = w(() => s.transition === `${c.namespace.value}-fade-in-linear`), O = () => {
|
|
188
|
-
var t;
|
|
189
|
-
(t = l.value) == null || t.hide();
|
|
190
|
-
}, L = () => {
|
|
191
|
-
d("before-enter");
|
|
192
|
-
}, R = () => {
|
|
193
|
-
d("before-leave");
|
|
194
|
-
}, u = () => {
|
|
195
|
-
d("after-enter");
|
|
196
|
-
}, e = () => {
|
|
197
|
-
d("update:visible", !1), d("after-leave");
|
|
198
|
-
};
|
|
199
|
-
return m({
|
|
200
|
-
popperRef: S,
|
|
201
|
-
hide: O
|
|
202
|
-
}), (t, b) => (_(), x(n(oe), ae({
|
|
203
|
-
ref_key: "tooltipRef",
|
|
204
|
-
ref: l
|
|
205
|
-
}, t.$attrs, {
|
|
206
|
-
trigger: t.trigger,
|
|
207
|
-
"trigger-keys": t.triggerKeys,
|
|
208
|
-
placement: t.placement,
|
|
209
|
-
disabled: t.disabled,
|
|
210
|
-
visible: t.visible,
|
|
211
|
-
transition: t.transition,
|
|
212
|
-
"popper-options": t.popperOptions,
|
|
213
|
-
tabindex: t.tabindex,
|
|
214
|
-
content: t.content,
|
|
215
|
-
offset: t.offset,
|
|
216
|
-
"show-after": t.showAfter,
|
|
217
|
-
"hide-after": t.hideAfter,
|
|
218
|
-
"auto-close": t.autoClose,
|
|
219
|
-
"show-arrow": t.showArrow,
|
|
220
|
-
"aria-label": t.title,
|
|
221
|
-
effect: t.effect,
|
|
222
|
-
enterable: t.enterable,
|
|
223
|
-
"popper-class": n(M),
|
|
224
|
-
"popper-style": n(N),
|
|
225
|
-
teleported: t.teleported,
|
|
226
|
-
"append-to": t.appendTo,
|
|
227
|
-
persistent: t.persistent,
|
|
228
|
-
"gpu-acceleration": n(T),
|
|
229
|
-
"onUpdate:visible": n(y),
|
|
230
|
-
onBeforeShow: L,
|
|
231
|
-
onBeforeHide: R,
|
|
232
|
-
onShow: u,
|
|
233
|
-
onHide: e
|
|
234
|
-
}), {
|
|
235
|
-
content: r(() => [
|
|
236
|
-
t.title ? (_(), z("div", {
|
|
237
|
-
key: 0,
|
|
238
|
-
class: K(n(c).e("title")),
|
|
239
|
-
role: "title"
|
|
240
|
-
}, F(t.title), 3)) : $("v-if", !0),
|
|
241
|
-
Z(t.$slots, "default", {}, () => [
|
|
242
|
-
g(F(t.content), 1)
|
|
243
|
-
])
|
|
244
|
-
]),
|
|
245
|
-
default: r(() => [
|
|
246
|
-
t.$slots.reference ? Z(t.$slots, "reference", { key: 0 }) : $("v-if", !0)
|
|
247
|
-
]),
|
|
248
|
-
_: 3
|
|
249
|
-
}, 16, ["trigger", "trigger-keys", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "append-to", "persistent", "gpu-acceleration", "onUpdate:visible"]));
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
var Ne = /* @__PURE__ */ Ce(ke, [["__file", "popover.vue"]]);
|
|
253
|
-
const D = (f, m) => {
|
|
254
|
-
const d = m.arg || m.value, s = d?.popperRef;
|
|
255
|
-
s && (s.triggerRef = f);
|
|
256
|
-
};
|
|
257
|
-
var Me = {
|
|
258
|
-
mounted(f, m) {
|
|
259
|
-
D(f, m);
|
|
260
|
-
},
|
|
261
|
-
updated(f, m) {
|
|
262
|
-
D(f, m);
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
const Oe = "popover", Le = Ee(Me, Oe), Re = we(Ne, {
|
|
266
|
-
directive: Le
|
|
267
|
-
}), Ae = { class: "setting-map qy-flex-col" }, Ie = { class: "header" }, Fe = { class: "topic-list-content" }, Ue = { class: "form-item" }, Ze = { style: { display: "flex", "align-items": "baseline", gap: "5px" } }, $e = { class: "form-item" }, De = { style: { display: "flex", "align-items": "baseline", gap: "5px" } }, ze = { class: "form-item" }, Ke = { style: { display: "flex", "align-items": "baseline", gap: "5px" } }, je = { class: "form-item" }, He = { style: { display: "flex", "align-items": "baseline", gap: "5px" } }, Je = { class: "base-map" }, qe = { class: "map-layer-content" }, Ge = ["onClick"], Qe = { class: "layer-item-icon" }, Xe = ["src"], We = { class: "layer-item-name" }, Ye = { class: "factor-map" }, et = { class: "factor-map-content" }, tt = { class: "footer" }, ot = /* @__PURE__ */ U({
|
|
268
|
-
__name: "mapSetting",
|
|
269
|
-
setup(f, { expose: m }) {
|
|
270
|
-
const d = re("mapRootId"), s = he(), y = h(!1), c = h(), l = h({
|
|
271
|
-
defaultCenter: void 0,
|
|
272
|
-
// 地图中心 [lng, lat]
|
|
273
|
-
defaultZoom: 3,
|
|
274
|
-
// 缩放等级
|
|
275
|
-
bearing: void 0,
|
|
276
|
-
// 旋转角度
|
|
277
|
-
pitch: void 0,
|
|
278
|
-
// 俯仰角
|
|
279
|
-
baseMap: "vector",
|
|
280
|
-
// 底图类型
|
|
281
|
-
displayFeatures: {
|
|
282
|
-
label: !0
|
|
283
|
-
// 标注
|
|
284
|
-
}
|
|
285
|
-
}), S = h(s.mapInstances[d]?.activeMapLayer), N = [
|
|
286
|
-
{
|
|
287
|
-
id: A.SATELLITE,
|
|
288
|
-
name: "卫星地图",
|
|
289
|
-
icon: fe
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
id: A.VECTOR,
|
|
293
|
-
name: "矢量地图",
|
|
294
|
-
icon: me
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
id: A.TOPOGRAPHIC,
|
|
298
|
-
name: "地形地图",
|
|
299
|
-
icon: ce
|
|
300
|
-
}
|
|
301
|
-
], M = (u) => {
|
|
302
|
-
s.changeMapLayer(d, u), S.value = u;
|
|
303
|
-
}, T = h({
|
|
304
|
-
labels: !0
|
|
305
|
-
// 标注标签默认显示
|
|
306
|
-
}), O = (u) => {
|
|
307
|
-
}, L = () => {
|
|
308
|
-
if (!c.value)
|
|
309
|
-
return;
|
|
310
|
-
const u = s.mapInstances[d]?.activeMapLayer || "unknown", e = {
|
|
311
|
-
// 默认地图中心
|
|
312
|
-
defaultCenter: l.value.defaultCenter,
|
|
313
|
-
// 默认缩放等级
|
|
314
|
-
defaultZoom: l.value.defaultZoom,
|
|
315
|
-
// 旋转角度
|
|
316
|
-
bearing: l.value.bearing,
|
|
317
|
-
// 俯仰角
|
|
318
|
-
pitch: l.value.pitch,
|
|
319
|
-
// 底图类型
|
|
320
|
-
baseMap: u,
|
|
321
|
-
// 全部标注是否显示
|
|
322
|
-
displayFeatures: {
|
|
323
|
-
label: T.value.labels
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
console.log("========== 地图配置 =========="), console.log(e), console.log("====================", c.value), c.value.layerPaintConfig = JSON.stringify(e), be.emit(c.value);
|
|
327
|
-
}, R = (u) => {
|
|
328
|
-
c.value = u;
|
|
329
|
-
const e = JSON.parse(
|
|
330
|
-
u.layerPaintConfig || "{}"
|
|
331
|
-
);
|
|
332
|
-
l.value = {
|
|
333
|
-
defaultCenter: e.defaultCenter,
|
|
334
|
-
defaultZoom: e.defaultZoom || 3,
|
|
335
|
-
bearing: e.bearing || void 0,
|
|
336
|
-
pitch: e.pitch || void 0,
|
|
337
|
-
baseMap: e.baseMap || "vector",
|
|
338
|
-
displayFeatures: {
|
|
339
|
-
label: e.displayFeatures?.label || !0
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
return le(() => {
|
|
344
|
-
ye.on(() => {
|
|
345
|
-
y.value = !y.value;
|
|
346
|
-
});
|
|
347
|
-
}), ie(() => {
|
|
348
|
-
}), m({
|
|
349
|
-
setMapConfig: R
|
|
350
|
-
}), (u, e) => {
|
|
351
|
-
const t = Se, b = Re, B = Y, P = ee, j = W, H = X;
|
|
352
|
-
return _(), x(ne, {
|
|
353
|
-
name: "fade",
|
|
354
|
-
mode: "out-in"
|
|
355
|
-
}, {
|
|
356
|
-
default: r(() => [
|
|
357
|
-
se(o("div", Ae, [
|
|
358
|
-
o("div", Ie, [
|
|
359
|
-
o("div", null, [
|
|
360
|
-
e[7] || (e[7] = g(" 地图设置 ", -1)),
|
|
361
|
-
a(b, {
|
|
362
|
-
placement: "right-start",
|
|
363
|
-
title: "温馨提示",
|
|
364
|
-
trigger: "hover"
|
|
365
|
-
}, {
|
|
366
|
-
reference: r(() => [
|
|
367
|
-
a(t, null, {
|
|
368
|
-
default: r(() => [
|
|
369
|
-
a(n(E))
|
|
370
|
-
]),
|
|
371
|
-
_: 1
|
|
372
|
-
})
|
|
373
|
-
]),
|
|
374
|
-
default: r(() => [...e[6] || (e[6] = [
|
|
375
|
-
g(" xxxxx ", -1)
|
|
376
|
-
])]),
|
|
377
|
-
_: 1
|
|
378
|
-
})
|
|
379
|
-
]),
|
|
380
|
-
o("div", {
|
|
381
|
-
class: "close-btn",
|
|
382
|
-
onClick: e[0] || (e[0] = (i) => y.value = !1)
|
|
383
|
-
}, "X")
|
|
384
|
-
]),
|
|
385
|
-
o("div", Fe, [
|
|
386
|
-
a(j, { ref: "topicForm" }, {
|
|
387
|
-
default: r(() => [
|
|
388
|
-
o("div", Ue, [
|
|
389
|
-
o("div", Ze, [
|
|
390
|
-
a(B, {
|
|
391
|
-
for: "mapCenter",
|
|
392
|
-
prop: "mapCenter",
|
|
393
|
-
label: "默认地图中心",
|
|
394
|
-
"label-position": "top"
|
|
395
|
-
}),
|
|
396
|
-
a(b, {
|
|
397
|
-
placement: "right-start",
|
|
398
|
-
title: "温馨提示",
|
|
399
|
-
trigger: "hover"
|
|
400
|
-
}, {
|
|
401
|
-
reference: r(() => [
|
|
402
|
-
a(t, { size: "13" }, {
|
|
403
|
-
default: r(() => [
|
|
404
|
-
a(n(E))
|
|
405
|
-
]),
|
|
406
|
-
_: 1
|
|
407
|
-
})
|
|
408
|
-
]),
|
|
409
|
-
default: r(() => [...e[8] || (e[8] = [
|
|
410
|
-
g(" xxxxx ", -1)
|
|
411
|
-
])]),
|
|
412
|
-
_: 1
|
|
413
|
-
})
|
|
414
|
-
]),
|
|
415
|
-
a(P, {
|
|
416
|
-
id: "mapCenter",
|
|
417
|
-
modelValue: l.value.defaultCenter,
|
|
418
|
-
"onUpdate:modelValue": e[1] || (e[1] = (i) => l.value.defaultCenter = i),
|
|
419
|
-
placeholder: "经度, 纬度",
|
|
420
|
-
readonly: ""
|
|
421
|
-
}, null, 8, ["modelValue"])
|
|
422
|
-
]),
|
|
423
|
-
o("div", $e, [
|
|
424
|
-
o("div", De, [
|
|
425
|
-
a(B, {
|
|
426
|
-
for: "mapZoom",
|
|
427
|
-
prop: "mapZoom",
|
|
428
|
-
label: "默认缩放等级",
|
|
429
|
-
"label-position": "top"
|
|
430
|
-
}),
|
|
431
|
-
a(b, {
|
|
432
|
-
placement: "right-start",
|
|
433
|
-
title: "温馨提示",
|
|
434
|
-
trigger: "hover"
|
|
435
|
-
}, {
|
|
436
|
-
reference: r(() => [
|
|
437
|
-
a(t, { size: "13" }, {
|
|
438
|
-
default: r(() => [
|
|
439
|
-
a(n(E))
|
|
440
|
-
]),
|
|
441
|
-
_: 1
|
|
442
|
-
})
|
|
443
|
-
]),
|
|
444
|
-
default: r(() => [...e[9] || (e[9] = [
|
|
445
|
-
g(" xxxxx ", -1)
|
|
446
|
-
])]),
|
|
447
|
-
_: 1
|
|
448
|
-
})
|
|
449
|
-
]),
|
|
450
|
-
a(P, {
|
|
451
|
-
id: "mapZoom",
|
|
452
|
-
modelValue: l.value.defaultZoom,
|
|
453
|
-
"onUpdate:modelValue": e[2] || (e[2] = (i) => l.value.defaultZoom = i),
|
|
454
|
-
placeholder: "缩放等级",
|
|
455
|
-
readonly: ""
|
|
456
|
-
}, null, 8, ["modelValue"])
|
|
457
|
-
]),
|
|
458
|
-
o("div", ze, [
|
|
459
|
-
o("div", Ke, [
|
|
460
|
-
a(B, {
|
|
461
|
-
for: "mapBearing",
|
|
462
|
-
prop: "mapBearing",
|
|
463
|
-
label: "旋转角度",
|
|
464
|
-
"label-position": "top"
|
|
465
|
-
}),
|
|
466
|
-
a(b, {
|
|
467
|
-
placement: "right-start",
|
|
468
|
-
title: "温馨提示",
|
|
469
|
-
trigger: "hover"
|
|
470
|
-
}, {
|
|
471
|
-
reference: r(() => [
|
|
472
|
-
a(t, { size: "13" }, {
|
|
473
|
-
default: r(() => [
|
|
474
|
-
a(n(E))
|
|
475
|
-
]),
|
|
476
|
-
_: 1
|
|
477
|
-
})
|
|
478
|
-
]),
|
|
479
|
-
default: r(() => [...e[10] || (e[10] = [
|
|
480
|
-
g(" xxxxx ", -1)
|
|
481
|
-
])]),
|
|
482
|
-
_: 1
|
|
483
|
-
})
|
|
484
|
-
]),
|
|
485
|
-
a(P, {
|
|
486
|
-
id: "mapBearing",
|
|
487
|
-
modelValue: l.value.bearing,
|
|
488
|
-
"onUpdate:modelValue": e[3] || (e[3] = (i) => l.value.bearing = i),
|
|
489
|
-
placeholder: "旋转角度 (度)",
|
|
490
|
-
readonly: ""
|
|
491
|
-
}, null, 8, ["modelValue"])
|
|
492
|
-
]),
|
|
493
|
-
o("div", je, [
|
|
494
|
-
o("div", He, [
|
|
495
|
-
a(B, {
|
|
496
|
-
for: "mapPitch",
|
|
497
|
-
prop: "mapPitch",
|
|
498
|
-
label: "俯仰角",
|
|
499
|
-
"label-position": "top"
|
|
500
|
-
}),
|
|
501
|
-
a(b, {
|
|
502
|
-
placement: "right-start",
|
|
503
|
-
title: "温馨提示",
|
|
504
|
-
trigger: "hover"
|
|
505
|
-
}, {
|
|
506
|
-
reference: r(() => [
|
|
507
|
-
a(t, { size: "13" }, {
|
|
508
|
-
default: r(() => [
|
|
509
|
-
a(n(E))
|
|
510
|
-
]),
|
|
511
|
-
_: 1
|
|
512
|
-
})
|
|
513
|
-
]),
|
|
514
|
-
default: r(() => [...e[11] || (e[11] = [
|
|
515
|
-
g(" xxxxx ", -1)
|
|
516
|
-
])]),
|
|
517
|
-
_: 1
|
|
518
|
-
})
|
|
519
|
-
]),
|
|
520
|
-
a(P, {
|
|
521
|
-
id: "mapPitch",
|
|
522
|
-
modelValue: l.value.pitch,
|
|
523
|
-
"onUpdate:modelValue": e[4] || (e[4] = (i) => l.value.pitch = i),
|
|
524
|
-
placeholder: "俯仰角 (度)",
|
|
525
|
-
readonly: ""
|
|
526
|
-
}, null, 8, ["modelValue"])
|
|
527
|
-
]),
|
|
528
|
-
e[12] || (e[12] = o("div", { class: "tip-text" }, " 提示:通过挪动和缩放地图设置地图中心和缩放等级 ", -1))
|
|
529
|
-
]),
|
|
530
|
-
_: 1
|
|
531
|
-
}, 512),
|
|
532
|
-
o("div", Je, [
|
|
533
|
-
e[13] || (e[13] = o("label", { for: "" }, "底图选择", -1)),
|
|
534
|
-
o("div", qe, [
|
|
535
|
-
(_(), z(pe, null, de(N, (i, J) => o("div", {
|
|
536
|
-
onClick: () => M(i.id),
|
|
537
|
-
key: J,
|
|
538
|
-
class: K([
|
|
539
|
-
"map-layer-item",
|
|
540
|
-
S.value == i.id ? "active" : null
|
|
541
|
-
])
|
|
542
|
-
}, [
|
|
543
|
-
o("div", Qe, [
|
|
544
|
-
o("img", {
|
|
545
|
-
src: i.icon,
|
|
546
|
-
style: { width: "100%", height: "100%" }
|
|
547
|
-
}, null, 8, Xe)
|
|
548
|
-
]),
|
|
549
|
-
o("div", We, F(i.name), 1)
|
|
550
|
-
], 10, Ge)), 64))
|
|
551
|
-
])
|
|
552
|
-
]),
|
|
553
|
-
o("div", Ye, [
|
|
554
|
-
e[15] || (e[15] = o("label", { for: "" }, "底图显示要素", -1)),
|
|
555
|
-
o("div", et, [
|
|
556
|
-
o("div", {
|
|
557
|
-
onClick: e[5] || (e[5] = (i) => O())
|
|
558
|
-
}, [
|
|
559
|
-
e[14] || (e[14] = o("p", null, "全部标注", -1)),
|
|
560
|
-
a(t, null, {
|
|
561
|
-
default: r(() => [
|
|
562
|
-
T.value.labels ? (_(), x(n(ve), { key: 0 })) : (_(), x(n(ge), { key: 1 }))
|
|
563
|
-
]),
|
|
564
|
-
_: 1
|
|
565
|
-
})
|
|
566
|
-
])
|
|
567
|
-
])
|
|
568
|
-
])
|
|
569
|
-
]),
|
|
570
|
-
o("div", tt, [
|
|
571
|
-
a(H, {
|
|
572
|
-
plain: "",
|
|
573
|
-
type: "primary",
|
|
574
|
-
onClick: L
|
|
575
|
-
}, {
|
|
576
|
-
default: r(() => [...e[16] || (e[16] = [
|
|
577
|
-
g("应用当前配置", -1)
|
|
578
|
-
])]),
|
|
579
|
-
_: 1
|
|
580
|
-
})
|
|
581
|
-
])
|
|
582
|
-
], 512), [
|
|
583
|
-
[ue, y.value]
|
|
584
|
-
])
|
|
585
|
-
]),
|
|
586
|
-
_: 1
|
|
587
|
-
});
|
|
588
|
-
};
|
|
589
|
-
}
|
|
590
|
-
}), ht = /* @__PURE__ */ Te(ot, [["__scopeId", "data-v-eb30a903"]]);
|
|
591
|
-
export {
|
|
592
|
-
Re as E,
|
|
593
|
-
ht as M,
|
|
594
|
-
yt as a,
|
|
595
|
-
bt as b,
|
|
596
|
-
I as d
|
|
597
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./base-DK_JFP90.js"),L=require("./el-button-w9UOZkmd.js"),S=require("./el-form-item-ECXS8pAs.js"),R=require("./el-input-tAiZBp5N.js"),r=require("./el-popper-C6hJmTeX.js"),e=require("vue"),_=require("./img_c-DUz-J5Tj.js"),f=require("@element-plus/icons-vue"),k=require("./EventKeys-BvyQ87Zy.js"),A=require("./mapStore-dFPYwvXT.js"),B=require("./map-CAu4wyVU.js"),C=require("./index-BIaoqnN4.js"),g=require("./aria-B-Cm8P6h.js"),D=require("./_plugin-vue_export-helper-BHFhmbuH.js"),h=l.buildProps({trigger:{...r.useTooltipTriggerProps.trigger,type:l.definePropType([String,Array])},triggerKeys:{type:l.definePropType(Array),default:()=>[C.EVENT_CODE.enter,C.EVENT_CODE.numpadEnter,C.EVENT_CODE.space,C.EVENT_CODE.down]},virtualTriggering:r.useTooltipTriggerProps.virtualTriggering,virtualRef:r.useTooltipTriggerProps.virtualRef,effect:{...r.useTooltipContentProps.effect,default:"light"},type:{type:l.definePropType(String)},placement:{type:l.definePropType(String),default:"bottom"},popperOptions:{type:l.definePropType(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:l.definePropType([Number,String]),default:0},maxHeight:{type:l.definePropType([Number,String]),default:""},popperClass:r.useTooltipContentProps.popperClass,popperStyle:r.useTooltipContentProps.popperStyle,disabled:Boolean,role:{type:String,values:r.roleTypes,default:"menu"},buttonProps:{type:l.definePropType(Object)},teleported:r.useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0}}),U=l.buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:g.iconPropType}}),Z=l.buildProps({onKeydown:{type:l.definePropType(Function)}}),$=l.buildProps({trigger:r.useTooltipTriggerProps.trigger,triggerKeys:r.useTooltipTriggerProps.triggerKeys,placement:h.placement,disabled:r.useTooltipTriggerProps.disabled,visible:r.useTooltipContentProps.visible,transition:r.useTooltipContentProps.transition,popperOptions:h.popperOptions,tabindex:h.tabindex,content:r.useTooltipContentProps.content,popperStyle:r.useTooltipContentProps.popperStyle,popperClass:r.useTooltipContentProps.popperClass,enterable:{...r.useTooltipContentProps.enterable,default:!0},effect:{...r.useTooltipContentProps.effect,default:"light"},teleported:r.useTooltipContentProps.teleported,appendTo:r.useTooltipContentProps.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),z={"update:visible":d=>l.isBoolean(d),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},K="onUpdate:visible",H=e.defineComponent({name:"ElPopover"}),Q=e.defineComponent({...H,props:$,emits:z,setup(d,{expose:u,emit:p}){const i=d,m=e.computed(()=>i[K]),c=l.useNamespace("popover"),n=e.ref(),y=e.computed(()=>{var o;return(o=e.unref(n))==null?void 0:o.popperRef}),T=e.computed(()=>[{width:l.addUnit(i.width)},i.popperStyle]),E=e.computed(()=>[c.b(),i.popperClass,{[c.m("plain")]:!!i.content}]),b=e.computed(()=>i.transition===`${c.namespace.value}-fade-in-linear`),w=()=>{var o;(o=n.value)==null||o.hide()},P=()=>{p("before-enter")},x=()=>{p("before-leave")},s=()=>{p("after-enter")},t=()=>{p("update:visible",!1),p("after-leave")};return u({popperRef:y,hide:w}),(o,v)=>(e.openBlock(),e.createBlock(e.unref(r.ElTooltip),e.mergeProps({ref_key:"tooltipRef",ref:n},o.$attrs,{trigger:o.trigger,"trigger-keys":o.triggerKeys,placement:o.placement,disabled:o.disabled,visible:o.visible,transition:o.transition,"popper-options":o.popperOptions,tabindex:o.tabindex,content:o.content,offset:o.offset,"show-after":o.showAfter,"hide-after":o.hideAfter,"auto-close":o.autoClose,"show-arrow":o.showArrow,"aria-label":o.title,effect:o.effect,enterable:o.enterable,"popper-class":e.unref(E),"popper-style":e.unref(T),teleported:o.teleported,"append-to":o.appendTo,persistent:o.persistent,"gpu-acceleration":e.unref(b),"onUpdate:visible":e.unref(m),onBeforeShow:P,onBeforeHide:x,onShow:s,onHide:t}),{content:e.withCtx(()=>[o.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c).e("title")),role:"title"},e.toDisplayString(o.title),3)):e.createCommentVNode("v-if",!0),e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),default:e.withCtx(()=>[o.$slots.reference?e.renderSlot(o.$slots,"reference",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var j=g._export_sfc(Q,[["__file","popover.vue"]]);const M=(d,u)=>{const p=u.arg||u.value,i=p?.popperRef;i&&(i.triggerRef=d)};var J={mounted(d,u){M(d,u)},updated(d,u){M(d,u)}};const G="popover",X=g.withInstallDirective(J,G),O=g.withInstall(j,{directive:X}),W={class:"setting-map qy-flex-col"},Y={class:"header"},ee={class:"topic-list-content"},te={class:"form-item"},oe={style:{display:"flex","align-items":"baseline",gap:"5px"}},re={class:"form-item"},ne={style:{display:"flex","align-items":"baseline",gap:"5px"}},le={class:"form-item"},ae={style:{display:"flex","align-items":"baseline",gap:"5px"}},ie={class:"form-item"},pe={style:{display:"flex","align-items":"baseline",gap:"5px"}},se={class:"base-map"},de={class:"map-layer-content"},ue=["onClick"],ce={class:"layer-item-icon"},fe=["src"],me={class:"layer-item-name"},ve={class:"factor-map"},ge={class:"factor-map-content"},ye={class:"footer"},be=e.defineComponent({__name:"mapSetting",setup(d,{expose:u}){const p=e.inject("mapRootId"),i=A.useMapStore(),m=e.ref(!1),c=e.ref(),n=e.ref({defaultCenter:void 0,defaultZoom:3,bearing:void 0,pitch:void 0,baseMap:"vector",displayFeatures:{label:!0}}),y=e.ref(i.mapInstances[p]?.activeMapLayer),T=[{id:B.MapLayerType.SATELLITE,name:"卫星地图",icon:_.imgC},{id:B.MapLayerType.VECTOR,name:"矢量地图",icon:_.vecC},{id:B.MapLayerType.TOPOGRAPHIC,name:"地形地图",icon:_.terC}],E=s=>{i.changeMapLayer(p,s),y.value=s},b=e.ref({labels:!0}),w=s=>{},P=()=>{if(!c.value)return;const s=i.mapInstances[p]?.activeMapLayer||"unknown",t={defaultCenter:n.value.defaultCenter,defaultZoom:n.value.defaultZoom,bearing:n.value.bearing,pitch:n.value.pitch,baseMap:s,displayFeatures:{label:b.value.labels}};console.log("========== 地图配置 =========="),console.log(t),console.log("====================",c.value),c.value.layerPaintConfig=JSON.stringify(t),k.createTopicBus.emit(c.value)},x=s=>{c.value=s;const t=JSON.parse(s.layerPaintConfig||"{}");n.value={defaultCenter:t.defaultCenter,defaultZoom:t.defaultZoom||3,bearing:t.bearing||void 0,pitch:t.pitch||void 0,baseMap:t.baseMap||"vector",displayFeatures:{label:t.displayFeatures?.label||!0}}};return e.onMounted(()=>{k.showMapSettingsBus.on(()=>{m.value=!m.value})}),e.onUnmounted(()=>{}),u({setMapConfig:x}),(s,t)=>{const o=g.ElIcon,v=O,V=S.ElFormItem,N=R.ElInput,F=S.ElForm,q=L.ElButton;return e.openBlock(),e.createBlock(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",W,[e.createElementVNode("div",Y,[e.createElementVNode("div",null,[t[7]||(t[7]=e.createTextVNode(" 地图设置 ",-1)),e.createVNode(v,{placement:"right-start",title:"温馨提示",trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>[e.createVNode(e.unref(f.QuestionFilled))]),_:1})]),default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode(" xxxxx ",-1)])]),_:1})]),e.createElementVNode("div",{class:"close-btn",onClick:t[0]||(t[0]=a=>m.value=!1)},"X")]),e.createElementVNode("div",ee,[e.createVNode(F,{ref:"topicForm"},{default:e.withCtx(()=>[e.createElementVNode("div",te,[e.createElementVNode("div",oe,[e.createVNode(V,{for:"mapCenter",prop:"mapCenter",label:"默认地图中心","label-position":"top"}),e.createVNode(v,{placement:"right-start",title:"温馨提示",trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(o,{size:"13"},{default:e.withCtx(()=>[e.createVNode(e.unref(f.QuestionFilled))]),_:1})]),default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode(" xxxxx ",-1)])]),_:1})]),e.createVNode(N,{id:"mapCenter",modelValue:n.value.defaultCenter,"onUpdate:modelValue":t[1]||(t[1]=a=>n.value.defaultCenter=a),placeholder:"经度, 纬度",readonly:""},null,8,["modelValue"])]),e.createElementVNode("div",re,[e.createElementVNode("div",ne,[e.createVNode(V,{for:"mapZoom",prop:"mapZoom",label:"默认缩放等级","label-position":"top"}),e.createVNode(v,{placement:"right-start",title:"温馨提示",trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(o,{size:"13"},{default:e.withCtx(()=>[e.createVNode(e.unref(f.QuestionFilled))]),_:1})]),default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode(" xxxxx ",-1)])]),_:1})]),e.createVNode(N,{id:"mapZoom",modelValue:n.value.defaultZoom,"onUpdate:modelValue":t[2]||(t[2]=a=>n.value.defaultZoom=a),placeholder:"缩放等级",readonly:""},null,8,["modelValue"])]),e.createElementVNode("div",le,[e.createElementVNode("div",ae,[e.createVNode(V,{for:"mapBearing",prop:"mapBearing",label:"旋转角度","label-position":"top"}),e.createVNode(v,{placement:"right-start",title:"温馨提示",trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(o,{size:"13"},{default:e.withCtx(()=>[e.createVNode(e.unref(f.QuestionFilled))]),_:1})]),default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode(" xxxxx ",-1)])]),_:1})]),e.createVNode(N,{id:"mapBearing",modelValue:n.value.bearing,"onUpdate:modelValue":t[3]||(t[3]=a=>n.value.bearing=a),placeholder:"旋转角度 (度)",readonly:""},null,8,["modelValue"])]),e.createElementVNode("div",ie,[e.createElementVNode("div",pe,[e.createVNode(V,{for:"mapPitch",prop:"mapPitch",label:"俯仰角","label-position":"top"}),e.createVNode(v,{placement:"right-start",title:"温馨提示",trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(o,{size:"13"},{default:e.withCtx(()=>[e.createVNode(e.unref(f.QuestionFilled))]),_:1})]),default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode(" xxxxx ",-1)])]),_:1})]),e.createVNode(N,{id:"mapPitch",modelValue:n.value.pitch,"onUpdate:modelValue":t[4]||(t[4]=a=>n.value.pitch=a),placeholder:"俯仰角 (度)",readonly:""},null,8,["modelValue"])]),t[12]||(t[12]=e.createElementVNode("div",{class:"tip-text"}," 提示:通过挪动和缩放地图设置地图中心和缩放等级 ",-1))]),_:1},512),e.createElementVNode("div",se,[t[13]||(t[13]=e.createElementVNode("label",{for:""},"底图选择",-1)),e.createElementVNode("div",de,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(T,(a,I)=>e.createElementVNode("div",{onClick:()=>E(a.id),key:I,class:e.normalizeClass(["map-layer-item",y.value==a.id?"active":null])},[e.createElementVNode("div",ce,[e.createElementVNode("img",{src:a.icon,style:{width:"100%",height:"100%"}},null,8,fe)]),e.createElementVNode("div",me,e.toDisplayString(a.name),1)],10,ue)),64))])]),e.createElementVNode("div",ve,[t[15]||(t[15]=e.createElementVNode("label",{for:""},"底图显示要素",-1)),e.createElementVNode("div",ge,[e.createElementVNode("div",{onClick:t[5]||(t[5]=a=>w())},[t[14]||(t[14]=e.createElementVNode("p",null,"全部标注",-1)),e.createVNode(o,null,{default:e.withCtx(()=>[b.value.labels?(e.openBlock(),e.createBlock(e.unref(f.Hide),{key:0})):(e.openBlock(),e.createBlock(e.unref(f.View),{key:1}))]),_:1})])])])]),e.createElementVNode("div",ye,[e.createVNode(q,{plain:"",type:"primary",onClick:P},{default:e.withCtx(()=>[...t[16]||(t[16]=[e.createTextVNode("应用当前配置",-1)])]),_:1})])],512),[[e.vShow,m.value]])]),_:1})}}}),Ve=D._export_sfc(be,[["__scopeId","data-v-eb30a903"]]);exports.ElPopover=O;exports.MapSetting=Ve;exports.dropdownItemProps=U;exports.dropdownMenuProps=Z;exports.dropdownProps=h;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),c=require("./base-DK_JFP90.js"),s=require("./index-D9eecDRK.js"),m=Symbol();function g(t,u,o){return t==null?t:c.baseSet(t,u,o)}const f=t=>Object.keys(t),C=(t,u,o)=>({get value(){return s.get(t,u,o)},set value(l){g(t,u,l)}}),v=n.ref();function d(t,u=void 0){const o=n.getCurrentInstance()?n.inject(m,v):v;return t?n.computed(()=>{var l,a;return(a=(l=o.value)==null?void 0:l[t])!=null?a:u}):o}function x(t,u){const o=d(),l=c.useNamespace(t,n.computed(()=>{var e;return((e=o.value)==null?void 0:e.namespace)||c.defaultNamespace})),a=s.useLocale(n.computed(()=>{var e;return(e=o.value)==null?void 0:e.locale})),i=s.useZIndex(n.computed(()=>{var e;return((e=o.value)==null?void 0:e.zIndex)||s.defaultInitialZIndex})),r=n.computed(()=>{var e;return n.unref(u)||((e=o.value)==null?void 0:e.size)||""});return y(n.computed(()=>n.unref(o)||{})),{ns:l,locale:a,zIndex:i,size:r}}const y=(t,u,o=!1)=>{var l;const a=!!n.getCurrentInstance(),i=a?d():void 0,r=(l=void 0)!=null?l:a?n.provide:void 0;if(!r){c.debugWarn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const e=n.computed(()=>{const p=n.unref(t);return i?.value?I(i.value,p):p});return r(m,e),r(s.localeContextKey,n.computed(()=>e.value.locale)),r(c.namespaceContextKey,n.computed(()=>e.value.namespace)),r(s.zIndexContextKey,n.computed(()=>e.value.zIndex)),r(c.SIZE_INJECTION_KEY,{size:n.computed(()=>e.value.size||"")}),r(s.emptyValuesContextKey,n.computed(()=>({emptyValues:e.value.emptyValues,valueOnClear:e.value.valueOnClear}))),(o||!v.value)&&(v.value=e.value),e},I=(t,u)=>{const o=[...new Set([...f(t),...f(u)])],l={};for(const a of o)l[a]=u[a]!==void 0?u[a]:t[a];return l};exports.getProp=C;exports.useGlobalComponentSettings=x;exports.useGlobalConfig=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const S=require("vue"),g=require("./constant-mXEWtcQf.js");function v(r,e){let i={marginTop:"-2px"};switch(r){case"solid":case"solid-line":i.borderBottom=`4px solid ${e}`;break;case"dash":case"dotted":case"simple-dash":i.borderBottom=`4px dashed ${e}`;break;case"dot-dash":i.backgroundImage=`linear-gradient(to right, ${e} 25%, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0) 50%, ${e} 50%, ${e} 75%, rgba(255, 255, 255, 0) 75%)`;break;case"long-dash":i.backgroundImage=`linear-gradient(to right, ${e} 50%, rgba(255, 255, 255, 0) 50%)`;break;case"dot-line":i.backgroundImage=`linear-gradient(to right, ${e} 25%, rgba(255, 255, 255, 0) 10%)`;break;case"complex-pattern":i.backgroundImage=`linear-gradient(to right, ${e} 20%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 40%, ${e} 40%, ${e} 60%, rgba(255, 255, 255, 0) 60%)`;break;default:i.borderBottom=`4px solid ${e}`;break}return i}function O(r,e){if(r&&typeof r!="string")return r;switch(e){case"symbol":case"geojson":case"species-group":case"sample-group":case"track":case"interest-point":return r?JSON.parse(r||"{}"):g.defaultPointLayerPaintConfig;case"point":return JSON.parse(r||"{}");case"line":return JSON.parse(r||"{}");case"shape":case"shp":return r?JSON.parse(r||"{}"):g.defaultStyleConfig;default:throw new Error(`Unsupported layer type: ${e}`)}}function x(r){try{return`layer-id-${r.id}`}catch(e){return console.error("Error getting layer ID:",e),`layer-id-${S.useId()}`}}function N(r){try{return`source-id-${r.id}`}catch(e){return console.error("Error getting source ID:",e),`source-id-${S.useId()}`}}function k(r){try{return r.layerPaintConfig?JSON.parse(r.layerPaintConfig):g.defaultStyleConfig}catch{return g.defaultStyleConfig}}function b(r){let e="fill";switch(r.layerType){case"shp":if(r.layerShapes){const i=r.layerShapes.split(",");i.length===1?i[0]==="point"?e="circle":i[0]==="line"?e="line":e="fill":e="fill"}else e="fill";break;case"line":e="line";break;case"symbol":if(e="circle",r.layerPaintConfig){const i=JSON.parse(r.layerPaintConfig);i.circleConfigList&&i.circleConfigList?.length>0&&i.circleConfigList[0].circleType=="symbol"&&(e="symbol")}break;default:e="fill"}return e}function $(r){return r?r.filter(e=>typeof e.key=="string"&&e.value):[]}function L(r){try{let e=[...$(JSON.parse(JSON.stringify(r.fillColorList)))],i={};const s=JSON.parse(JSON.stringify(r.fillColorList)),t=s[s.length-1];i["fill-color"]=[t.color],i["fill-opacity"]=t.opacity,i["fill-outline-color"]=t.color;let c=[];return r.fillOpacityConfig&&r.fillOpacityConfig.value!=null&&(i["fill-opacity"]=r.fillOpacityConfig.value),e.forEach(n=>{if(n.type=="custom"){let l=-1;c.forEach((o,a)=>{o.key==n.key&&(l=a)}),l>-1?c[l].list.push(n):c.push({key:n.key,list:[n]})}}),c.length&&c.forEach(n=>{n.list.forEach(l=>{i["fill-color"].unshift(l.color),i["fill-color"].unshift(l.value)}),i["fill-color"].unshift(["get",n.key]),i["fill-color"].unshift("match")}),i["fill-color"].length==1&&(i["fill-color"]=i["fill-color"][0]),console.log("生成fillStyle成功---->",i),i}catch(e){console.log("生成fillStyle失败",e)}}function T(r){if(!r||!r.showLabel)return null;const e={"text-field":["get",r.labelField||"FID"],"text-size":r.fontSize||14,"text-color":r.fontColor||"#000000","text-font":["Open Sans Regular"],"text-anchor":"center","text-offset":[0,0],"text-allow-overlap":!1,"text-avoid-edges":!0};return console.log("生成labelStyle成功---->",e),e}function w(r){try{let{outlineConfigList:e}=r;if(!e||e.length===0)return console.warn("outlineConfigList 为空"),{};const i=JSON.parse(JSON.stringify(e)),s=i.find(n=>n.type==="default")||i[i.length-1];let t={"line-color":s.outlineColor||"rgba(103, 194, 58, 1)","line-opacity":s.outlineOpacity??1,"line-width":s.outlineWidth??1};s.lineStyle==="dash"?t["line-dasharray"]=[2,2]:t["line-dasharray"]=["literal",[]];let c=[];if(e.forEach(n=>{if(n.type==="custom"&&n.key){let l=-1;c.forEach((o,a)=>{o.key===n.key&&(l=a)}),l>-1?c[l].list.push(n):c.push({key:n.key,list:[n]})}}),c.length>0&&(["line-color","line-opacity","line-width"].forEach(l=>{const o=l==="line-color"?"outlineColor":l==="line-opacity"?"outlineOpacity":"outlineWidth";if(c.some(f=>f.list.some(y=>y[o]!==void 0))){const f=["match",["get",c[0].key]];c.forEach(y=>{y.list.forEach(h=>{h.value!==void 0&&h[o]!==void 0&&(f.push(h.value),f.push(h[o]))})}),f.push(s[o]??t[l]),t[l]=f}}),c.some(l=>l.list.some(o=>o.lineStyle!==void 0)))){const l=["match",["get",c[0].key]];c.forEach(o=>{o.list.forEach(a=>{a.value!==void 0&&a.lineStyle&&(l.push(a.value),l.push(a.lineStyle==="dash"?[2,2]:["literal",[]]))})}),l.push(s.lineStyle==="dash"?[2,2]:["literal",[]]),t["line-dasharray"]=l}return console.log("outlineStyle--->",t),t}catch(e){return console.log("生成outlineStyle失败",e),{}}}function I(r){let{circleConfigList:e}=r;const i=e[e.length-1];if(i&&(i.renderMode==="color"||i.renderMode==="icon")){const l={_useNewFormat:!0,_circleConfigList:e};l["icon-image"]=[],l["icon-size"]=[];const o=e.filter(a=>a.type==="custom"&&a.value!==""&&a.value!=null);if(o.length>0){const a=o[0].key;let f="string";for(const u of o)if(typeof u.value=="number"){f="number";break}const y=u=>f==="number"?typeof u=="number"?u:Number(u):String(u),h=["match",["get",a]];o.forEach(u=>{let m;if(u.renderMode==="color"){const E=(u.pointTintColor||"#67c23a").replace(/[^a-zA-Z0-9]/g,"");m=`custom-icon-${u.key}-${(u.pointStyle||"地图点.svg").replace(".svg","")}-${E}`}else m=u.iconImageName||"hiper-map-icon-1.png";h.push(y(u.value)),h.push(m)});let p;if(i.renderMode==="color"){const u=(i.pointTintColor||"#67c23a").replace(/[^a-zA-Z0-9]/g,"");p=`custom-icon-default-${(i.pointStyle||"地图点.svg").replace(".svg","")}-${u}`}else p=i.iconImageName||"hiper-map-icon-1.png";h.push(p),l["icon-image"]=h;const d=["match",["get",a]];o.forEach(u=>{d.push(y(u.value)),d.push((u.pointSize||10)/20)}),d.push((i.pointSize||10)/20),l["icon-size"]=d}else{let a;if(i.renderMode==="color"){const f=(i.pointTintColor||"#67c23a").replace(/[^a-zA-Z0-9]/g,"");a=`custom-icon-default-${(i.pointStyle||"地图点.svg").replace(".svg","")}-${f}`}else a=i.iconImageName||"hiper-map-icon-1.png";l["icon-image"]=a,l["icon-size"]=(i.pointSize||10)/20}return l}const t={"circle-radius":[],"circle-stroke-width":[],"circle-color":[],"circle-stroke-color":[],"circle-opacity":[],"circle-stroke-opacity":[],"icon-image":[]};e=[...e];const c=e[e.length-1];e.splice(e.length-1,1),t["circle-radius"]=[c.circleRadius],t["circle-stroke-width"]=[c.circleStrokeWidth],t["circle-color"]=[c.circleColor],t["circle-stroke-color"]=[c.circleStrokeColor],t["circle-opacity"]=[c.circleOpacity],t["circle-stroke-opacity"]=[c.circleStrokeOpacity],t["icon-image"]=[c.iconImageUrl||"hiper-map-icon-1.png"];let n=[];return e.forEach(l=>{if(l.type=="custom"){let o=-1;n.forEach((a,f)=>{a.key==l.key&&(o=f)}),o>-1?n[o].list.push(l):n.push({key:l.key,list:[l]})}}),n.forEach(l=>{c.circleType!="symbol"&&(l.list.forEach(o=>{t["circle-radius"].unshift(o.circleRadius),t["circle-radius"].unshift(o.value)}),t["circle-radius"].unshift(["get",l.key]),t["circle-radius"].unshift("match"),l.list.forEach(o=>{t["circle-stroke-width"].unshift(o.circleStrokeWidth),t["circle-stroke-width"].unshift(o.value)}),t["circle-stroke-width"].unshift(["get",l.key]),t["circle-stroke-width"].unshift("match"),l.list.forEach(o=>{t["circle-color"].unshift(o.circleColor),t["circle-color"].unshift(o.value)}),t["circle-color"].unshift(["get",l.key]),t["circle-color"].unshift("match"),l.list.forEach(o=>{t["circle-stroke-color"].unshift(o.circleStrokeColor),t["circle-stroke-color"].unshift(o.value)}),t["circle-stroke-color"].unshift(["get",l.key]),t["circle-stroke-color"].unshift("match"),l.list.forEach(o=>{t["circle-opacity"].unshift(o.circleOpacity),t["circle-opacity"].unshift(o.value)}),t["circle-opacity"].unshift(["get",l.key]),t["circle-opacity"].unshift("match"),l.list.forEach(o=>{t["circle-stroke-opacity"].unshift(o.circleStrokeOpacity),t["circle-stroke-opacity"].unshift(o.value)}),t["circle-stroke-opacity"].unshift(["get",l.key]),t["circle-stroke-opacity"].unshift("match")),c.circleType=="symbol"&&(l.list.forEach(o=>{t["icon-image"].unshift(o.iconImageUrl||"hiper-map-icon-1.png"),t["icon-image"].unshift(o.value)}),t["icon-image"].unshift(["get",l.key]),t["icon-image"].unshift("match"))}),e.length==0&&(t["circle-radius"]=t["circle-radius"][0],t["circle-stroke-width"]=t["circle-stroke-width"][0],t["circle-color"]=t["circle-color"][0],t["circle-stroke-color"]=t["circle-stroke-color"][0],t["circle-opacity"]=t["circle-opacity"][0],t["circle-stroke-opacity"]=t["circle-stroke-opacity"][0],t["icon-image"]=t["icon-image"][0]),t}function z(r){let{circleConfigList:e}=r;const i={"icon-image":[]},s=e[e.length-1];e.splice(e.length-1,1),i["icon-image"]=[s.iconImageUrl||"hiper-map-icon-1.png"];let t=[];return e.forEach(c=>{if(c.type=="custom"){let n=-1;t.forEach((l,o)=>{l.key==c.key&&(n=o)}),n>-1?t[n].list.push(c):t.push({key:c.key,list:[c]})}}),t.forEach(c=>{s.circleType=="symbol"&&(c.list.forEach(n=>{i["icon-image"].unshift(n.iconImageUrl||"hiper-map-icon-1.png"),i["icon-image"].unshift(n.value)}),i["icon-image"].unshift(["get",c.key]),i["icon-image"].unshift("match"))}),e.length==0&&(i["icon-image"]=i["icon-image"][0]),i}function A(r){const e=k(r),i=b(r),s={"fill-color":"rgba(103, 194, 58, 0.6)","fill-opacity":1,"fill-outline-color":"rgba(103, 194, 58, 1)"},t={"line-width":1,"line-color":"rgba(103, 194, 58, 0.6)"},c={"circle-radius":["interpolate",["linear"],["zoom"],1,6,10,8,22,12],"circle-stroke-width":["interpolate",["linear"],["zoom"],1,2,10,5,22,10],"circle-stroke-color":["interpolate",["linear"],["zoom"],0,"rgba(103, 194, 58, 0.6)",22,"rgba(103, 194, 58, 0.6)"],"circle-stroke-opacity":["interpolate",["linear"],["zoom"],0,1,22,1],"circle-color":"rgba(103, 194, 58, 0.6)"};if(!e)switch(console.warn("当前图层样式配置不存在,使用默认样式,还有执行到这里的情况?"),i){case"fill":return s;case"line":return t;case"circle":return c}switch(i){case"fill":const n=L(e);return n||s;case"line":const l=w(e);return l||t;case"circle":const o=I(e);return o||c;case"symbol":const a=z(e);return a||{"icon-image":"hiper-map-icon-1.png"}}}function M(r){return new Promise((e,i)=>{const s=new FileReader;s.onload=()=>{s.result instanceof ArrayBuffer?e(s.result):i(new Error("Failed to read file as ArrayBuffer"))},s.onerror=i,s.readAsArrayBuffer(r)})}function C(r){const e=r.fileDirectory||{},i=e.ModelTiepoint||[],s=e.ModelPixelScale||[];if(i.length>=6&&s.length>=3){console.log("情况1:使用ModelTiepoint和ModelPixelScale计算边界",i,s);const t=i[3],c=i[4],n=s[0],l=s[1],o=r.getWidth(),a=r.getHeight(),f=t,y=c,h=t+o*n,p=c-a*Math.abs(l);return[f,p,h,y]}else if(e.ModelTransformation){console.log("情况2:使用ModelTransformation矩阵计算边界");const t=e.ModelTransformation;if(t&&t.length>=16){const c=r.getWidth(),n=r.getHeight(),l=t[3],o=t[7],a=l+c*t[0],f=o+n*t[5];return[l,o,a,f]}}else if(e.GeographicTypeGeoKey)return console.warn("Limited geographic information. Using approximated bounds."),[-180,-90,180,90];return console.warn("No geographic reference found. Using default bounds."),[-180,-90,180,90]}function F(r){r=r.replace(/^#/,"");let e=0,i=0,s=0;return r.length===3?(e=parseInt(r.charAt(0)+r.charAt(0),16),i=parseInt(r.charAt(1)+r.charAt(1),16),s=parseInt(r.charAt(2)+r.charAt(2),16)):r.length===6&&(e=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),s=parseInt(r.substring(4,6),16)),[e,i,s]}function J(r,e,i){return Math.max(e,Math.min(i,r))}exports.calculateBounds=C;exports.clamp=J;exports.getCircleStyle=I;exports.getFillStyle=L;exports.getLabelStyle=T;exports.getLayerId=x;exports.getLayerStyle=A;exports.getLayerType=b;exports.getLineLegendStyle=v;exports.getOutLineStyle=w;exports.getSourceId=N;exports.hexToRgb=F;exports.parseLayerPaintConfig=O;exports.parseStyleConfig=k;exports.readFileAsArrayBuffer=M;
|