qy-vue-plugins 1.0.1-beta → 1.0.1
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/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-B_9_2nJv.js → EventKeys-DZ_Hahro.js} +5 -5
- 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-Uqo22w8a.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-CGEO9pCb.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/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-DRowB3cv.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-SxijbmK2.js → index-BCQYbM-I.js} +26 -25
- package/dist/chunks/{el-input-tz6E7jFn.js → index-BdloQTv1.js} +171 -175
- package/dist/chunks/{el-overlay-x5xtZ-_z.js → index-BeskO4C8.js} +44 -42
- 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-B-tQ713F.js → index-CgKiWbxR.js} +110 -117
- package/dist/chunks/{el-popper-DmgxBZXK.js → index-Cv_K9rbv.js} +122 -120
- package/dist/chunks/{el-select-C9XY7xx3.js → index-Cyrc4mj-.js} +384 -409
- 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-BvekrQO7.js → index-_At9ftZd.js} +58 -57
- package/dist/chunks/{index-CvAguhTB.js → index-ieQ_IULW.js} +25 -24
- package/dist/chunks/index-mDs-Bipv.js +1332 -0
- package/dist/chunks/mapSetting-B1a88k-v.js +635 -0
- package/dist/chunks/mapSetting-Ba76lOJd.js +1 -0
- package/dist/chunks/{base-DURufVZI.js → style-COMeMpO8.js} +108 -101
- package/dist/chunks/style-DiDWGUIe.js +1 -0
- 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-Cmftt4Lm.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/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
- package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
- 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/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 +3 -594
- 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 +13 -1
- package/dist/mapboxV2.mjs +1329 -21
- package/dist/qy-vue-plugins.css +1 -1
- 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/index.d.ts +1 -1
- package/dist/types/mapboxV2/pages/MapLayer.vue.d.ts +31 -0
- 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/mapboxV2/constant.ts +4 -12
- package/package/mapboxV2/index.ts +1 -1
- 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 +1 -1
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-DAsI-u5q.js +0 -1
- package/dist/chunks/aria-0gp4FR49.js +0 -179
- package/dist/chunks/aria-CT6v0_-A.js +0 -5
- package/dist/chunks/base-BmqR00dz.js +0 -1
- package/dist/chunks/constant-mXEWtcQf.js +0 -1
- package/dist/chunks/el-button-BSavYzWl.js +0 -3
- package/dist/chunks/el-color-picker-panel-B1g-z3qR.js +0 -1024
- package/dist/chunks/el-color-picker-panel-Bj3ljc45.js +0 -1
- package/dist/chunks/el-form-item-CImWRYaB.js +0 -1315
- package/dist/chunks/el-form-item-NWLcqRzN.js +0 -12
- package/dist/chunks/el-input-CfPEOfbB.js +0 -1
- package/dist/chunks/el-loading-DY87olfi.js +0 -1
- package/dist/chunks/el-overlay-CY_IGTGt.js +0 -1
- package/dist/chunks/el-popper-DwuuKN7V.js +0 -1
- package/dist/chunks/el-select-fkI3RG0q.js +0 -1
- package/dist/chunks/index--HsUv0g3.js +0 -2
- package/dist/chunks/index-B0xOKkLK.js +0 -1
- package/dist/chunks/index-zGltaNDv.js +0 -1
- package/dist/chunks/use-global-config-AtD9LB9U.js +0 -1
- package/dist/chunks/utils-CZxmwfl_.js +0 -1
- package/dist/chunks/utils-n1i0zWzc.js +0 -454
- package/dist/chunks/vnode-CYGNY0Il.js +0 -47
- package/dist/chunks/vnode-aXDL2Mh-.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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -3,15 +3,15 @@ const o = Symbol("delete-topic"), h = e(o), a = Symbol("create-topic"), K = e(a)
|
|
|
3
3
|
e(s);
|
|
4
4
|
const t = Symbol("topic-panel-click"), S = e(t), c = Symbol("render-geographic-data"), u = e(c), y = Symbol("toggle-geographic-layer"), b = e(y), l = Symbol("show-layer-edit"), B = e(l), n = Symbol("locate-to-layer-center"), L = e(n), r = Symbol("show-layer-dialog"), w = e(r), p = Symbol("map-loaded"), T = e(p), i = Symbol("map-style-changed"), C = e(i), g = Symbol("show-map-settings"), D = e(g), d = Symbol("search-layer"), G = e(d);
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
w as a,
|
|
7
|
+
G as b,
|
|
8
8
|
K as c,
|
|
9
9
|
h as d,
|
|
10
10
|
b as e,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
D as f,
|
|
12
|
+
C as g,
|
|
13
13
|
L as l,
|
|
14
|
-
|
|
14
|
+
T as m,
|
|
15
15
|
u as r,
|
|
16
16
|
B as s,
|
|
17
17
|
S as t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),h=require("./mapbox-gl-draw-Dg_Inye3.js"),P=require("./ProvideKeys-91lTuLnq.js"),N=require("./EventKeys-BvyQ87Zy.js"),q=require("./constant-
|
|
1
|
+
"use strict";const a=require("vue"),h=require("./mapbox-gl-draw-Dg_Inye3.js"),P=require("./ProvideKeys-91lTuLnq.js"),N=require("./EventKeys-BvyQ87Zy.js"),q=require("./constant-Bq4ASE9Q.js"),B=require("@turf/turf"),I=require("@element-plus/icons-vue"),j=require("element-plus");function $(i){const m=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const n in i)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(m,n,r.get?r:{enumerable:!0,get:()=>i[n]})}}return m.default=i,Object.freeze(m)}const p=$(B),O={key:0,class:"measure-info-panel"},A={class:"measure-info-content"},R={class:"measure-label"},z={class:"measure-value"},K={class:"qy-flex-row hiper-map-tools-bar"},J=a.defineComponent({__name:"MapTools",props:{tools:{default:()=>["point","line","polygon","measure_distance","measure_area","clear_all"]}},setup(i){const m=a.inject("mapRootId"),n=a.ref(),r=a.ref([]),L=a.ref(null),M=a.ref(null),v=a.ref(!1),c=a.ref("distance"),y=t=>{switch(v.value&&t!=="measure_distance"&&t!=="clear_all"&&D(),n.value=t,t){case"point":s.changeMode("draw_point");break;case"line":s.changeMode("draw_line_string");break;case"polygon":s.changeMode("draw_polygon");break;case"measure_distance":s.changeMode("simple_select"),c.value="distance",x();break;case"measure_area":s.changeMode("simple_select"),c.value="area",x();break;case"clear_all":s.deleteAll(),D();break}},e=a.inject(P.mapInstanceKey),s=new h.MapboxDraw({userProperties:!0,displayControlsDefault:!1,modes:{...h.MapboxDraw.modes,draw_rectangle:h.DrawRectangle,static:h.StaticMode}});let _=null;_=N.mapLoadedBus.on(({mapRootId:t})=>{m!==t||!e?.value||(console.log("hiper-map-tools-bar mounted",e),e.value.addControl(s,"top-left"),e.value.on("draw.create",w))});function w(t){const l=s.getAll();if(!l.features.length)return;l.features=[l.features[0]];const o={point:{layerType:"symbol",config:{textColor:"rgba(0,0,0,1)",iconName:q.DefaultIcon}},line:{layerType:"line",config:{lineWidth:1,lineColor:"rgba(255, 0, 0, 1)",lineStyle:"solid"}},polygon:{layerType:"shape",config:{fillColor:"rgba(241, 131, 127, 1)",lineWidth:1}}}[n.value];o&&N.showLayerEditKeyBus.emit({mapRootId:m,e:new MouseEvent("click"),layer:{layerType:o.layerType,customLayerConfig:JSON.stringify(o.config),geoJSON:JSON.stringify(l),...n.value==="polygon"?{pid:""}:{}}}),s.deleteAll()}function x(){e?.value&&(v.value=!0,r.value=[],e.value.getCanvas().style.cursor="crosshair",e.value.on("click",b),e.value.on("dblclick",g))}function g(t){if(v.value){if(t.preventDefault(),c.value==="distance")r.value.length>=2&&C();else if(r.value.length>=3){const l=r.value[0],u=r.value[r.value.length-1];(l[0]!==u[0]||l[1]!==u[1])&&r.value.push(l),C()}e?.value?.off("click",b),e?.value?.off("dblclick",g),e?.value&&(e.value.getCanvas().style.cursor=""),v.value=!1}}function b(t){if(!v.value||!e?.value)return;t.originalEvent.stopPropagation();const l=[t.lngLat.lng,t.lngLat.lat];r.value.push(l),r.value.length===1?(c.value==="distance"?d.value=0:f.value=0,e.value.getSource("measure-point-source")?e.value.getSource("measure-point-source").setData({type:"Feature",properties:{},geometry:{type:"Point",coordinates:l}}):(e.value.addSource("measure-point-source",{type:"geojson",data:{type:"Feature",properties:{},geometry:{type:"Point",coordinates:l}}}),e.value.addLayer({id:"measure-point-layer",type:"circle",source:"measure-point-source",paint:{"circle-radius":5,"circle-color":"#16aaff"}}))):(e.value.getSource("measure-point-source")&&e.value.getSource("measure-point-source").setData({type:"FeatureCollection",features:r.value.map(u=>({type:"Feature",properties:{},geometry:{type:"Point",coordinates:u}}))}),C(),c.value==="area"&&r.value.length>=3&&(e.value.getCanvas().style.cursor="pointer"))}function C(){if(!e?.value||r.value.length<2)return;const t=p.lineString(r.value);if(c.value==="distance"){const l=p.length(t,{units:"kilometers"});d.value=l,l<1?`${(l*1e3).toFixed(2)}`:`${l.toFixed(3)}`;const u=Math.floor(r.value.length/2)-1;u<0?r.value[0]:r.value[u],S(t)}else if(r.value.length>=3){const l=[...r.value];l[0]!==l[l.length-1]&&l.push(l[0]);const u=p.polygon([l]),o=p.area(u)/1e6;f.value=o,o<1?`${(o*1e6).toFixed(2)}`:`${o.toFixed(3)}`;const k=p.centroid(u);S(t,k.geometry.coordinates)}else S(t,t.geometry.coordinates[0])}function S(t,l,u){if(e?.value){if(e.value.getSource("measure-line-source")?e.value.getSource("measure-line-source").setData(t):(e.value.addSource("measure-line-source",{type:"geojson",data:t}),e.value.addLayer({id:"measure-line-layer",type:"line",source:"measure-line-source",layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":"#16aaff","line-width":2,"line-dasharray":[2,1]}}),L.value="measure-line-layer"),c.value==="area"&&r.value.length>=3){const o=[...r.value];o[0]!==o[o.length-1]&&o.push(o[0]);const k=p.polygon([o]);e.value.getSource("measure-fill-source")?e.value.getSource("measure-fill-source").setData(k):(e.value.addSource("measure-fill-source",{type:"geojson",data:k}),e.value.addLayer({id:"measure-fill-layer",type:"fill",source:"measure-fill-source",paint:{"fill-color":"#16aaff","fill-opacity":.2,"fill-outline-color":"#16aaff"}},"measure-line-layer"))}e.value.getSource("measure-label-source")&&e.value.getLayer("measure-label-layer")&&(e.value.removeLayer("measure-label-layer"),e.value.removeSource("measure-label-source"),M.value=null)}}function D(){e?.value&&(e.value?.off("click",b),e.value?.off("dblclick",g),e.value.getCanvas().style.cursor="",e.value.getLayer("measure-point-layer")&&(e.value.removeLayer("measure-point-layer"),e.value.removeSource("measure-point-source")),e.value.getLayer("measure-line-layer")&&(e.value.removeLayer("measure-line-layer"),e.value.removeSource("measure-line-source")),e.value.getLayer("measure-fill-layer")&&(e.value.removeLayer("measure-fill-layer"),e.value.removeSource("measure-fill-source")),e.value.getLayer("measure-label-layer")&&(e.value.removeLayer("measure-label-layer"),e.value.removeSource("measure-label-source")),r.value=[],L.value=null,M.value=null,v.value=!1,d.value=0,f.value=0,e.value.getLayer("measure-label-layer")&&e.value.removeLayer("measure-label-layer"),e.value.getSource("measure-label-source")&&e.value.removeSource("measure-label-source"))}a.onUnmounted(()=>{D(),_&&_(),e?.value&&(e.value?.removeControl(s),e.value?.off("draw.create",w),e.value?.off("click",b),e.value?.off("dblclick",g))});const d=a.ref(0),E=a.computed(()=>d.value<1?`${(d.value*1e3).toFixed(2)} 米`:`${d.value.toFixed(3)} 公里`),f=a.ref(0),T=a.computed(()=>f.value<1?`${(f.value*1e6).toFixed(2)} 平方米`:`${f.value.toFixed(3)} 平方公里`),V=a.computed(()=>c.value==="distance"?E.value:T.value),F=a.computed(()=>c.value==="distance"?"总长度: ":"总面积: ");return(t,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[v.value||r.value.length>0&&(n.value=="measure_distance"||n.value=="measure_area")?(a.openBlock(),a.createElementBlock("div",O,[a.createElementVNode("div",A,[a.createElementVNode("span",R,a.toDisplayString(F.value),1),a.createElementVNode("span",z,a.toDisplayString(V.value),1),a.createVNode(a.unref(j.ElIcon),{style:{display:"block","margin-left":"10px",cursor:"pointer"},onClick:l[0]||(l[0]=u=>y("clear_all")),size:"20px"},{default:a.withCtx(()=>[a.createVNode(a.unref(I.Close))]),_:1})])])):a.createCommentVNode("",!0),a.createElementVNode("div",K,[l[7]||(l[7]=a.createElementVNode("div",{class:"tools-label"},"测绘工具",-1)),i.tools.includes("measure_distance")?(a.openBlock(),a.createElementBlock("div",{key:0,title:"测距",class:a.normalizeClass(["hiper-map-tools-btn",n.value=="measure_distance"?"active":null]),onClick:l[1]||(l[1]=()=>y("measure_distance"))},[...l[4]||(l[4]=[a.createElementVNode("span",{class:"qyuan icon-ruler"},null,-1)])],2)):a.createCommentVNode("",!0),i.tools.includes("measure_area")?(a.openBlock(),a.createElementBlock("div",{key:1,title:"测面",class:a.normalizeClass(["hiper-map-tools-btn",n.value=="measure_area"?"active":null]),onClick:l[2]||(l[2]=()=>y("measure_area"))},[...l[5]||(l[5]=[a.createElementVNode("span",{class:"qyuan icon-multi-triangular"},null,-1)])],2)):a.createCommentVNode("",!0),i.tools.includes("clear_all")?(a.openBlock(),a.createElementBlock("div",{key:2,title:"清除所有临时绘制图形",class:"hiper-map-tools-btn",style:{border:"none"},onClick:l[3]||(l[3]=()=>y("clear_all"))},[...l[6]||(l[6]=[a.createElementVNode("span",{class:"qyuan icon-clear"},null,-1)])])):a.createCommentVNode("",!0)])],64))}});exports._sfc_main=J;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as V, inject as $, ref as n, onUnmounted as z, computed as S, createElementBlock as f, openBlock as y, Fragment as K, createCommentVNode as _, createElementVNode as i, createVNode as N, toDisplayString as E, unref as j, withCtx as U, normalizeClass as A } from "vue";
|
|
2
2
|
import { M as R, S as W, D as H } from "./mapbox-gl-draw-CKTcXDzM.js";
|
|
3
3
|
import { m as G } from "./ProvideKeys-CBXsWszp.js";
|
|
4
|
-
import {
|
|
5
|
-
import { D as Y } from "./constant-
|
|
4
|
+
import { m as Q, s as X } from "./EventKeys-DZ_Hahro.js";
|
|
5
|
+
import { D as Y } from "./constant-E83OJqPQ.js";
|
|
6
6
|
import * as d from "@turf/turf";
|
|
7
7
|
import { Close as Z } from "@element-plus/icons-vue";
|
|
8
8
|
import { ElIcon as ee } from "element-plus";
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const q = /* @__PURE__ */ y({
|
|
1
|
+
import { defineComponent as _, inject as y, ref as m, reactive as b, createBlock as x, openBlock as k, unref as t, withCtx as l, createVNode as s, createTextVNode as c, toDisplayString as C, createElementVNode as j } from "vue";
|
|
2
|
+
import { ElDialog as B, ElForm as O, ElFormItem as f, ElButton as v, ElMessage as p } from "element-plus";
|
|
3
|
+
import { a as S } from "./ProvideKeys-jhgDnhL_.js";
|
|
4
|
+
import { E as F } from "./index-BdloQTv1.js";
|
|
5
|
+
const T = /* @__PURE__ */ _({
|
|
7
6
|
__name: "ReplaceSpeciesNameDialog",
|
|
8
7
|
emits: ["closed"],
|
|
9
8
|
setup(I, { expose: g, emit: N }) {
|
|
10
|
-
const d =
|
|
9
|
+
const d = y(S), i = m(!1), a = b({
|
|
11
10
|
speciesName: ""
|
|
12
11
|
}), u = m(!1), w = m(""), n = m([]), D = N, V = async () => {
|
|
13
12
|
if (a.speciesName == "") {
|
|
@@ -34,8 +33,8 @@ const q = /* @__PURE__ */ y({
|
|
|
34
33
|
w.value = r, i.value = !0, n.value = e;
|
|
35
34
|
}
|
|
36
35
|
}), (r, e) => {
|
|
37
|
-
const E =
|
|
38
|
-
return
|
|
36
|
+
const E = F;
|
|
37
|
+
return k(), x(t(B), {
|
|
39
38
|
center: "",
|
|
40
39
|
title: "物种名称替换",
|
|
41
40
|
modelValue: i.value,
|
|
@@ -44,7 +43,7 @@ const q = /* @__PURE__ */ y({
|
|
|
44
43
|
"append-to-body": ""
|
|
45
44
|
}, {
|
|
46
45
|
footer: l(() => [
|
|
47
|
-
|
|
46
|
+
j("span", null, [
|
|
48
47
|
s(t(v), {
|
|
49
48
|
onClick: e[1] || (e[1] = (o) => i.value = !1)
|
|
50
49
|
}, {
|
|
@@ -67,7 +66,7 @@ const q = /* @__PURE__ */ y({
|
|
|
67
66
|
])
|
|
68
67
|
]),
|
|
69
68
|
default: l(() => [
|
|
70
|
-
s(t(
|
|
69
|
+
s(t(O), {
|
|
71
70
|
model: a,
|
|
72
71
|
"label-width": "150px",
|
|
73
72
|
inline: !1
|
|
@@ -75,7 +74,7 @@ const q = /* @__PURE__ */ y({
|
|
|
75
74
|
default: l(() => [
|
|
76
75
|
s(t(f), { label: "原物种名称:" }, {
|
|
77
76
|
default: l(() => [
|
|
78
|
-
c(
|
|
77
|
+
c(C(n.value.map((o) => o.speciesName).join(",")), 1)
|
|
79
78
|
]),
|
|
80
79
|
_: 1
|
|
81
80
|
}),
|
|
@@ -98,5 +97,5 @@ const q = /* @__PURE__ */ y({
|
|
|
98
97
|
}
|
|
99
98
|
});
|
|
100
99
|
export {
|
|
101
|
-
|
|
100
|
+
T as _
|
|
102
101
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("element-plus"),v=require("./ProvideKeys-BPenLFlD.js"),g=require("./index-CHRyd-8X.js"),w=e.defineComponent({__name:"ReplaceSpeciesNameDialog",emits:["closed"],setup(V,{expose:c,emit:d}){const u=e.inject(v.apiRowDataOptionsKey),s=e.ref(!1),l=e.reactive({speciesName:""}),r=e.ref(!1),m=e.ref(""),n=e.ref([]),p=d,f=async()=>{if(l.speciesName==""){a.ElMessage.error("请输入新的物种名称");return}if(r.value=!0,u){for(let t=0;t<n.value.length;t++)if(n.value[t].speciesName!=l.speciesName){var i=Object.assign({},n.value[t],{speciesName:l.speciesName});await u([i])}a.ElMessage.success("替换成功"),p("closed")}else a.ElMessage.warning("该调查不支持替换");r.value=!1,s.value=!1,l.speciesName=""};return c({showDialog:(i,t)=>{if(t[0].speciesName==null){a.ElMessage.warning("该调查不支持替换");return}m.value=i,s.value=!0,n.value=t}}),(i,t)=>{const N=g.ElInput;return e.openBlock(),e.createBlock(e.unref(a.ElDialog),{center:"",title:"物种名称替换",modelValue:s.value,"onUpdate:modelValue":t[2]||(t[2]=o=>s.value=o),width:"30%","append-to-body":""},{footer:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(e.unref(a.ElButton),{onClick:t[1]||(t[1]=o=>s.value=!1)},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(a.ElButton),{loading:r.value,type:"primary",onClick:f,plain:""},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("确定",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(e.unref(a.ElForm),{model:l,"label-width":"150px",inline:!1},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElFormItem),{label:"原物种名称:"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.map(o=>o.speciesName).join(",")),1)]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"新的物名称:"},{default:e.withCtx(()=>[e.createVNode(N,{modelValue:l.speciesName,"onUpdate:modelValue":t[0]||(t[0]=o=>l.speciesName=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});exports._sfc_main=w;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const o=require("vue"),s=require("./style-DiDWGUIe.js"),c=require("@element-plus/icons-vue"),u=require("@vueuse/core"),_="update:modelValue",C="change",N="input";var p=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const I=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},T=(e,t)=>(e.install=n=>{n.directive(t,e)},e),g=e=>(e.install=s.NOOP,e),m=s.buildProps({size:{type:s.definePropType([Number,String])},color:{type:String}}),h=o.defineComponent({name:"ElIcon",inheritAttrs:!1}),v=o.defineComponent({...h,props:m,setup(e){const t=e,n=s.useNamespace("icon"),r=o.computed(()=>{const{size:i,color:a}=t,d=s.addUnit(i);return!d&&!a?{}:{fontSize:d,"--color":a}});return(i,a)=>(o.openBlock(),o.createElementBlock("i",o.mergeProps({class:o.unref(n).b(),style:o.unref(r)},i.$attrs),[o.renderSlot(i.$slots,"default")],16))}});var y=p(v,[["__file","icon.vue"]]);const A=I(y),P=s.definePropType([String,Object,Function]),w={Close:c.Close},x={validating:c.Loading,success:c.CircleCheck,error:c.CircleClose},O=()=>u.isClient&&/firefox/i.test(window.navigator.userAgent),j=()=>u.isClient&&/android/i.test(window.navigator.userAgent),l={prefix:Math.floor(Math.random()*1e4),current:0},V=Symbol("elIdInjection"),E=()=>o.getCurrentInstance()?o.inject(V,l):l,D=e=>{const t=E();!u.isClient&&t===l&&s.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
3
|
+
prefix: number,
|
|
4
|
+
current: number,
|
|
5
|
+
})`);const n=s.useGetDerivedNamespace();return u.computedEager(()=>o.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},f=e=>typeof Element>"u"?!1:e instanceof Element,b=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},k=(e,t)=>{if(!e||!e.focus)return;let n=!1;f(e)&&!b(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),f(e)&&n&&e.removeAttribute("tabindex")};exports.CHANGE_EVENT=C;exports.CloseComponents=w;exports.ElIcon=A;exports.INPUT_EVENT=N;exports.UPDATE_MODEL_EVENT=_;exports.ValidateComponentsMap=x;exports._export_sfc=p;exports.focusElement=k;exports.iconPropType=P;exports.isAndroid=j;exports.isFirefox=O;exports.isFocusable=b;exports.useId=D;exports.useIdInjection=E;exports.withInstall=I;exports.withInstallDirective=T;exports.withNoopInstall=g;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { defineComponent as f, computed as p, createElementBlock as I, openBlock as b, mergeProps as E, unref as i, renderSlot as g, inject as m, getCurrentInstance as _ } from "vue";
|
|
2
|
+
import { N, q as h, s as l, u as v, w as y, d as C, y as T } from "./style-COMeMpO8.js";
|
|
3
|
+
import { CircleClose as A, CircleCheck as w, Loading as x, Close as O } from "@element-plus/icons-vue";
|
|
4
|
+
import { isClient as c, computedEager as j } from "@vueuse/core";
|
|
5
|
+
const G = "update:modelValue", H = "change", J = "input";
|
|
6
|
+
var P = (t, e) => {
|
|
7
|
+
const s = t.__vccOpts || t;
|
|
8
|
+
for (const [n, o] of e)
|
|
9
|
+
s[n] = o;
|
|
10
|
+
return s;
|
|
11
|
+
};
|
|
12
|
+
const k = (t, e) => {
|
|
13
|
+
if (t.install = (s) => {
|
|
14
|
+
for (const n of [t, ...Object.values(e ?? {})])
|
|
15
|
+
s.component(n.name, n);
|
|
16
|
+
}, e)
|
|
17
|
+
for (const [s, n] of Object.entries(e))
|
|
18
|
+
t[s] = n;
|
|
19
|
+
return t;
|
|
20
|
+
}, K = (t, e) => (t.install = (s) => {
|
|
21
|
+
s.directive(e, t);
|
|
22
|
+
}, t), Y = (t) => (t.install = N, t), S = h({
|
|
23
|
+
size: {
|
|
24
|
+
type: l([Number, String])
|
|
25
|
+
},
|
|
26
|
+
color: {
|
|
27
|
+
type: String
|
|
28
|
+
}
|
|
29
|
+
}), D = f({
|
|
30
|
+
name: "ElIcon",
|
|
31
|
+
inheritAttrs: !1
|
|
32
|
+
}), U = /* @__PURE__ */ f({
|
|
33
|
+
...D,
|
|
34
|
+
props: S,
|
|
35
|
+
setup(t) {
|
|
36
|
+
const e = t, s = v("icon"), n = p(() => {
|
|
37
|
+
const { size: o, color: r } = e, u = y(o);
|
|
38
|
+
return !u && !r ? {} : {
|
|
39
|
+
fontSize: u,
|
|
40
|
+
"--color": r
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
return (o, r) => (b(), I("i", E({
|
|
44
|
+
class: i(s).b(),
|
|
45
|
+
style: i(n)
|
|
46
|
+
}, o.$attrs), [
|
|
47
|
+
g(o.$slots, "default")
|
|
48
|
+
], 16));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
var V = /* @__PURE__ */ P(U, [["__file", "icon.vue"]]);
|
|
52
|
+
const q = k(V), W = l([
|
|
53
|
+
String,
|
|
54
|
+
Object,
|
|
55
|
+
Function
|
|
56
|
+
]), X = {
|
|
57
|
+
Close: O
|
|
58
|
+
}, Q = {
|
|
59
|
+
validating: x,
|
|
60
|
+
success: w,
|
|
61
|
+
error: A
|
|
62
|
+
}, Z = () => c && /firefox/i.test(window.navigator.userAgent), tt = () => c && /android/i.test(window.navigator.userAgent), a = {
|
|
63
|
+
prefix: Math.floor(Math.random() * 1e4),
|
|
64
|
+
current: 0
|
|
65
|
+
}, L = Symbol("elIdInjection"), M = () => _() ? m(L, a) : a, et = (t) => {
|
|
66
|
+
const e = M();
|
|
67
|
+
!c && e === a && C("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
68
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
69
|
+
prefix: number,
|
|
70
|
+
current: number,
|
|
71
|
+
})`);
|
|
72
|
+
const s = T();
|
|
73
|
+
return j(() => i(t) || `${s.value}-id-${e.prefix}-${e.current++}`);
|
|
74
|
+
}, d = (t) => typeof Element > "u" ? !1 : t instanceof Element, $ = (t) => {
|
|
75
|
+
if (t.tabIndex > 0 || t.tabIndex === 0 && t.getAttribute("tabIndex") !== null)
|
|
76
|
+
return !0;
|
|
77
|
+
if (t.tabIndex < 0 || t.hasAttribute("disabled") || t.getAttribute("aria-disabled") === "true")
|
|
78
|
+
return !1;
|
|
79
|
+
switch (t.nodeName) {
|
|
80
|
+
case "A":
|
|
81
|
+
return !!t.href && t.rel !== "ignore";
|
|
82
|
+
case "INPUT":
|
|
83
|
+
return !(t.type === "hidden" || t.type === "file");
|
|
84
|
+
case "BUTTON":
|
|
85
|
+
case "SELECT":
|
|
86
|
+
case "TEXTAREA":
|
|
87
|
+
return !0;
|
|
88
|
+
default:
|
|
89
|
+
return !1;
|
|
90
|
+
}
|
|
91
|
+
}, st = (t, e) => {
|
|
92
|
+
if (!t || !t.focus)
|
|
93
|
+
return;
|
|
94
|
+
let s = !1;
|
|
95
|
+
d(t) && !$(t) && !t.getAttribute("tabindex") && (t.setAttribute("tabindex", "-1"), s = !0), t.focus(e), d(t) && s && t.removeAttribute("tabindex");
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
H as C,
|
|
99
|
+
q as E,
|
|
100
|
+
J as I,
|
|
101
|
+
G as U,
|
|
102
|
+
Q as V,
|
|
103
|
+
P as _,
|
|
104
|
+
W as a,
|
|
105
|
+
K as b,
|
|
106
|
+
tt as c,
|
|
107
|
+
X as d,
|
|
108
|
+
Y as e,
|
|
109
|
+
st as f,
|
|
110
|
+
$ as g,
|
|
111
|
+
M as h,
|
|
112
|
+
Z as i,
|
|
113
|
+
et as u,
|
|
114
|
+
k as w
|
|
115
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e="rgba(103, 194, 58, 0.6)",p="hiper-map-icon-1.png",i=[{type:"default",key:"",value:"",color:e}],a=[{type:"default",outlineColor:"rgba(103, 194, 58, 1)",outlineWidth:2,zoom:0,lineStyle:"solid"}],n=[{key:"",value:"",circleType:"circle",circleStrokeColor:"rgba(0,0,0,1)",circleColor:e,iconImageUrl:"hiper-map-icon-1.png",type:"default",zoom:0,circleRadius:2,circleStrokeWidth:0}],m={circleType:"icon",circleStrokeColor:"rgba(0,0,0,1)",circleColor:e,iconImageUrl:""},o={pointTintColor:"rgba(103, 194, 58, 0.6)",pointRenderType:"color"},l={fillColorList:i,fillOpacityConfig:{value:1},outlineConfigList:a,symbolConfigList:[],circleBaseConfig:m,circleConfigList:n,antiAliasingConfig:{value:!0}},r="https://shpfile-data-1314977817.cos.ap-guangzhou.myqcloud.com/geojson/beijihua-map-icon/",c=[{fileName:"hiper-map-icon-1.png",name:"标记"},{fileName:"hiper-map-icon-2.png",name:""},{fileName:"hiper-map-icon-3.png",name:""},{fileName:"hiper-map-icon-4.png",name:""},{fileName:"hiper-map-icon-5.png",name:""},{fileName:"hiper-map-icon-6.png",name:""},{fileName:"hiper-map-icon-7.png",name:""},{fileName:"hiper-map-icon-8.png",name:""},{fileName:"hiper-map-icon-9.png",name:""},{fileName:"hiper-map-icon-10.png",name:""},{fileName:"hiper-map-icon-11.png",name:""},{fileName:"hiper-map-icon-12.png",name:""},{fileName:"hiper-map-icon-13.png",name:""},{fileName:"hiper-map-icon-14.png",name:""},{fileName:"hiper-map-icon-15.png",name:""},{fileName:"hiper-map-icon-16.png",name:""},{fileName:"hiper-map-icon-17.png",name:""},{fileName:"hiper-map-icon-18.png",name:""},{fileName:"hiper-map-icon-19.png",name:""},{fileName:"hiper-map-icon-20.png",name:""},{fileName:"hiper-map-icon-21.png",name:""},{fileName:"hiper-map-icon-22.png",name:""},{fileName:"hiper-map-icon-23.png",name:""},{fileName:"hiper-map-icon-24.png",name:""},{fileName:"hiper-map-icon-25.png",name:""},{fileName:"hiper-map-icon-26.png",name:""},{fileName:"hiper-map-icon-27.png",name:""},{fileName:"hiper-map-icon-28.png",name:""},{fileName:"hiper-map-icon-29.png",name:""},{fileName:"hiper-map-icon-30.png",name:""},{fileName:"hiper-map-icon-31.png",name:""},{fileName:"hiper-map-icon-32.png",name:""},{fileName:"hiper-map-icon-33.png",name:""},{fileName:"hiper-map-icon-34.png",name:""},{fileName:"hiper-map-icon-35.png",name:""},{fileName:"hiper-map-icon-36.png",name:""},{fileName:"hiper-map-icon-37.png",name:""},{fileName:"hiper-map-icon-38.png",name:""},{fileName:"hiper-map-icon-39.png",name:""},{fileName:"hiper-map-icon-40.png",name:""},{fileName:"hiper-map-icon-41.png",name:""},{fileName:"hiper-map-icon-42.png",name:""},{fileName:"hiper-map-icon-43.png",name:""},{fileName:"hiper-map-icon-45.png",name:""},{fileName:"hiper-map-icon-46.png",name:""},{fileName:"hiper-map-icon-47.png",name:""},{fileName:"hiper-map-icon-48.png",name:""},{fileName:"hiper-map-icon-49.png",name:""},{fileName:"hiper-map-icon-50.png",name:""},{fileName:"hiper-map-icon-51.png",name:""},{fileName:"hiper-map-icon-52.png",name:""},{fileName:"hiper-map-icon-53.png",name:""},{fileName:"hiper-map-icon-54.png",name:""},{fileName:"hiper-map-icon-55.png",name:""},{fileName:"hiper-map-icon-56.png",name:""},{fileName:"hiper-map-icon-57.png",name:""},{fileName:"hiper-map-icon-58.png",name:""},{fileName:"hiper-map-icon-59.png",name:""},{fileName:"hiper-map-icon-60.png",name:""},{fileName:"hiper-map-icon-61.png",name:""},{fileName:"hiper-map-icon-62.png",name:""},{fileName:"hiper-map-icon-63.png",name:""},{fileName:"hiper-map-icon-64.png",name:""},{fileName:"hiper-map-icon-65.png",name:""}],g=["rgba(255, 69, 0, 1)","rgba(255, 140, 0, 1)","rgba(255, 215, 0, 1)","rgba(144, 238, 144, 1)","rgba(0, 206, 209, 1)","rgba(30, 144, 255, 1)","rgba(199, 21, 133, 1)","rgba(199, 21, 133, 0.46)","rgba(87, 178, 55, 1)","rgba(2, 210, 224, 1)","rgba(38, 24, 171, 1)","rgba(106, 226, 191, 1)","rgba(145, 125, 238, 1)","rgba(236, 97, 93, 1)","rgba(203, 99, 39, 1)","rgba(244, 182, 63, 1)"];exports.DefaultColor=e;exports.DefaultIcon=p;exports.circleConfigList=n;exports.defaultPointLayerPaintConfig=o;exports.defaultStyleConfig=l;exports.fillColorList=i;exports.mapIconBaseUrl=r;exports.mapIconNameList=c;exports.mapPointsColors=g;exports.outlineConfigList=a;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
const e = "rgba(103, 194, 58, 0.6)",
|
|
1
|
+
const e = "rgba(103, 194, 58, 0.6)", m = "hiper-map-icon-1.png", a = [
|
|
2
2
|
{
|
|
3
3
|
type: "default",
|
|
4
4
|
key: "",
|
|
5
5
|
value: "",
|
|
6
|
-
color: e
|
|
7
|
-
rgb: "rgba(103, 194, 58)",
|
|
8
|
-
opacity: 0.6
|
|
6
|
+
color: e
|
|
9
7
|
}
|
|
10
8
|
], i = [
|
|
11
9
|
{
|
|
12
10
|
type: "default",
|
|
13
11
|
outlineColor: "rgba(103, 194, 58, 1)",
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
outlineWidth: 2,
|
|
13
|
+
// 改为 2,与 LayerStyleEditDialog 保持一致
|
|
16
14
|
zoom: 0,
|
|
17
15
|
lineStyle: "solid"
|
|
18
16
|
//dash
|
|
@@ -29,31 +27,29 @@ const e = "rgba(103, 194, 58, 0.6)", p = "hiper-map-icon-1.png", a = [
|
|
|
29
27
|
zoom: 0,
|
|
30
28
|
//缩放级别
|
|
31
29
|
circleRadius: 2,
|
|
32
|
-
circleStrokeWidth: 0
|
|
33
|
-
circleStrokeOpacity: 1,
|
|
34
|
-
circleOpacity: 1
|
|
30
|
+
circleStrokeWidth: 0
|
|
35
31
|
}
|
|
36
|
-
],
|
|
32
|
+
], p = {
|
|
37
33
|
circleType: "icon",
|
|
38
34
|
circleStrokeColor: "rgba(0,0,0,1)",
|
|
39
35
|
circleColor: e,
|
|
40
36
|
iconImageUrl: ""
|
|
41
37
|
}, o = {
|
|
42
|
-
pointTintColor: "
|
|
38
|
+
pointTintColor: "rgba(103, 194, 58, 0.6)",
|
|
43
39
|
pointRenderType: "color"
|
|
44
|
-
},
|
|
40
|
+
}, r = {
|
|
45
41
|
fillColorList: a,
|
|
46
42
|
fillOpacityConfig: {
|
|
47
43
|
value: 1
|
|
48
44
|
},
|
|
49
45
|
outlineConfigList: i,
|
|
50
46
|
symbolConfigList: [],
|
|
51
|
-
circleBaseConfig:
|
|
47
|
+
circleBaseConfig: p,
|
|
52
48
|
circleConfigList: n,
|
|
53
49
|
antiAliasingConfig: {
|
|
54
50
|
value: !0
|
|
55
51
|
}
|
|
56
|
-
},
|
|
52
|
+
}, l = "https://shpfile-data-1314977817.cos.ap-guangzhou.myqcloud.com/geojson/beijihua-map-icon/", c = [
|
|
57
53
|
{
|
|
58
54
|
fileName: "hiper-map-icon-1.png",
|
|
59
55
|
name: "标记"
|
|
@@ -328,31 +324,16 @@ const e = "rgba(103, 194, 58, 0.6)", p = "hiper-map-icon-1.png", a = [
|
|
|
328
324
|
"rgba(236, 97, 93, 1)",
|
|
329
325
|
"rgba(203, 99, 39, 1)",
|
|
330
326
|
"rgba(244, 182, 63, 1)"
|
|
331
|
-
], f = [
|
|
332
|
-
{ fileName: "实五角星.svg", name: "五角星" },
|
|
333
|
-
{ fileName: "正三角形.svg", name: "三角形" },
|
|
334
|
-
{ fileName: "地图点.svg", name: "地图点" },
|
|
335
|
-
{ fileName: "标记地图点位.svg", name: "标记点位" },
|
|
336
|
-
{ fileName: "24gf-square.svg", name: "方形" },
|
|
337
|
-
{ fileName: "地图点 (1).svg", name: "地图点1" },
|
|
338
|
-
{ fileName: "地图点-红.svg", name: "红地图点" },
|
|
339
|
-
{ fileName: "地图点位.svg", name: "点位" },
|
|
340
|
-
{ fileName: "地图点 (2).svg", name: "地图点2" },
|
|
341
|
-
{ fileName: "地图点 (3).svg", name: "地图点3" },
|
|
342
|
-
{ fileName: "地图点位 (1).svg", name: "点位1" },
|
|
343
|
-
{ fileName: "地图点 (4).svg", name: "地图点4" },
|
|
344
|
-
{ fileName: "hexagon-fill.svg", name: "六边形" },
|
|
345
|
-
{ fileName: "人-地图点位2x.svg", name: "人地图点位" }
|
|
346
327
|
];
|
|
347
328
|
export {
|
|
348
|
-
|
|
329
|
+
m as D,
|
|
349
330
|
o as a,
|
|
350
331
|
e as b,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
332
|
+
n as c,
|
|
333
|
+
r as d,
|
|
334
|
+
l as e,
|
|
335
|
+
a as f,
|
|
336
|
+
c as g,
|
|
337
|
+
g as m,
|
|
357
338
|
i as o
|
|
358
339
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const y=require("./style-DiDWGUIe.js"),W=require("./toNumber-CCcOx5KD.js");var h=function(){return y.root.Date.now()},S="Expected a function",R=Math.max,q=Math.min;function A(x,i,u){var a,c,s,f,n,r,d=0,b=!1,o=!1,g=!0;if(typeof x!="function")throw new TypeError(S);i=W.toNumber(i)||0,y.isObject(u)&&(b=!!u.leading,o="maxWait"in u,s=o?R(W.toNumber(u.maxWait)||0,i):s,g="trailing"in u?!!u.trailing:g);function v(e){var t=a,l=c;return a=c=void 0,d=e,f=x.apply(l,t),f}function C(e){return d=e,n=setTimeout(m,i),b?v(e):f}function L(e){var t=e-r,l=e-d,I=i-t;return o?q(I,s-l):I}function E(e){var t=e-r,l=e-d;return r===void 0||t>=i||t<0||o&&l>=s}function m(){var e=h();if(E(e))return k(e);n=setTimeout(m,L(e))}function k(e){return n=void 0,g&&a?v(e):(a=c=void 0,f)}function M(){n!==void 0&&clearTimeout(n),d=0,a=r=c=n=void 0}function N(){return n===void 0?f:k(h())}function T(){var e=h(),t=E(e);if(a=arguments,c=this,r=e,t){if(n===void 0)return C(r);if(o)return clearTimeout(n),n=setTimeout(m,i),v(r)}return n===void 0&&(n=setTimeout(m,i)),f}return T.cancel=M,T.flush=N,T}exports.debounce=A;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { r as S, a as y } from "./style-COMeMpO8.js";
|
|
2
|
+
import { t as b } from "./toNumber-CDwzVyqL.js";
|
|
3
|
+
var h = function() {
|
|
4
|
+
return S.Date.now();
|
|
5
|
+
}, R = "Expected a function", A = Math.max, F = Math.min;
|
|
6
|
+
function _(x, i, a) {
|
|
7
|
+
var u, d, m, f, n, r, o = 0, E = !1, l = !1, g = !0;
|
|
8
|
+
if (typeof x != "function")
|
|
9
|
+
throw new TypeError(R);
|
|
10
|
+
i = b(i) || 0, y(a) && (E = !!a.leading, l = "maxWait" in a, m = l ? A(b(a.maxWait) || 0, i) : m, g = "trailing" in a ? !!a.trailing : g);
|
|
11
|
+
function v(e) {
|
|
12
|
+
var t = u, c = d;
|
|
13
|
+
return u = d = void 0, o = e, f = x.apply(c, t), f;
|
|
14
|
+
}
|
|
15
|
+
function p(e) {
|
|
16
|
+
return o = e, n = setTimeout(s, i), E ? v(e) : f;
|
|
17
|
+
}
|
|
18
|
+
function C(e) {
|
|
19
|
+
var t = e - r, c = e - o, W = i - t;
|
|
20
|
+
return l ? F(W, m - c) : W;
|
|
21
|
+
}
|
|
22
|
+
function k(e) {
|
|
23
|
+
var t = e - r, c = e - o;
|
|
24
|
+
return r === void 0 || t >= i || t < 0 || l && c >= m;
|
|
25
|
+
}
|
|
26
|
+
function s() {
|
|
27
|
+
var e = h();
|
|
28
|
+
if (k(e))
|
|
29
|
+
return I(e);
|
|
30
|
+
n = setTimeout(s, C(e));
|
|
31
|
+
}
|
|
32
|
+
function I(e) {
|
|
33
|
+
return n = void 0, g && u ? v(e) : (u = d = void 0, f);
|
|
34
|
+
}
|
|
35
|
+
function L() {
|
|
36
|
+
n !== void 0 && clearTimeout(n), o = 0, u = r = d = n = void 0;
|
|
37
|
+
}
|
|
38
|
+
function M() {
|
|
39
|
+
return n === void 0 ? f : I(h());
|
|
40
|
+
}
|
|
41
|
+
function T() {
|
|
42
|
+
var e = h(), t = k(e);
|
|
43
|
+
if (u = arguments, d = this, r = e, t) {
|
|
44
|
+
if (n === void 0)
|
|
45
|
+
return p(r);
|
|
46
|
+
if (l)
|
|
47
|
+
return clearTimeout(n), n = setTimeout(s, i), v(r);
|
|
48
|
+
}
|
|
49
|
+
return n === void 0 && (n = setTimeout(s, i)), f;
|
|
50
|
+
}
|
|
51
|
+
return T.cancel = L, T.flush = M, T;
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
_ as d
|
|
55
|
+
};
|