@gis_victory/gismap 1.0.3 → 1.0.4
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/gismap.es.min.js +194 -68
- package/dist/gismap.min.js +5 -5
- package/dist/gismap.umd.min.js +5 -5
- package/package.json +1 -1
- package/dist/assets/data/mask.json +0 -14325
- package/dist/assets/icons/arrow.png +0 -1
- package/dist/assets/icons/bg.png +0 -0
- package/dist/assets/icons/fh_bz.png +0 -0
- package/dist/assets/icons/fh_df.png +0 -0
- package/dist/assets/icons/fh_ht.png +0 -0
- package/dist/assets/icons/fh_sk.png +0 -0
- package/dist/assets/icons/fh_st.png +0 -0
- package/dist/assets/icons/fh_sz.png +0 -0
- package/dist/assets/icons/fh_yq.png +0 -0
- package/dist/assets/icons/fy_bfg.png +0 -0
- package/dist/assets/icons/fy_dwyld.png +0 -0
- package/dist/assets/icons/fy_dxkj.png +0 -0
- package/dist/assets/icons/fy_dzzhyhd_czd.png +0 -0
- package/dist/assets/icons/fy_dzzhyhd_yb.png +0 -0
- package/dist/assets/icons/fy_dzzhyhd_zd.png +0 -0
- package/dist/assets/icons/fy_jzgd.png +0 -0
- package/dist/assets/icons/fy_lyjq.png +0 -0
- package/dist/assets/icons/fy_shzhyfq_dw.png +0 -0
- package/dist/assets/icons/fy_shzhyfq_gw.png +0 -0
- package/dist/assets/icons/fy_shzhyfq_jd.png +0 -0
- package/dist/assets/icons/fy_whqy.png +0 -0
- package/dist/assets/icons/fy_wjf_c.png +0 -0
- package/dist/assets/icons/fy_wjf_d.png +0 -0
- package/dist/assets/icons/fy_xcsljq.png +0 -0
- package/dist/assets/icons/fy_xx.png +0 -0
- package/dist/assets/icons/fy_yly.png +0 -0
- package/dist/assets/icons/fy_yy.png +0 -0
- package/dist/assets/icons/fy_zrc.png +0 -0
- package/dist/assets/icons/jc_dzzhjcsb.png +0 -0
- package/dist/assets/icons/jc_jsjcsb.png +0 -0
- package/dist/assets/icons/jc_qxz.png +0 -0
- package/dist/assets/icons/jc_spjk.png +0 -0
- package/dist/assets/icons/jc_swcz.png +0 -0
- package/dist/assets/icons/jc_xdyjsb.png +0 -0
- package/dist/assets/icons/point.png +0 -0
- package/dist/assets/icons/xzq.png +0 -0
- package/dist/assets/icons/xzq_cwh_bzd.png +0 -0
- package/dist/assets/icons/xzq_cwh_bzd_wzck.png +0 -0
- package/dist/assets/icons/xzq_cwh_wzck.png +0 -0
- package/dist/assets/icons/xzq_cwh_yfxc.png +0 -0
- package/dist/assets/icons/xzq_sf.png +0 -0
- package/dist/assets/icons/xzq_shengzf.png +0 -0
- package/dist/assets/icons/xzq_szf.png +0 -0
- package/dist/assets/icons/xzq_xzf.png +0 -0
- package/dist/assets/icons/xzq_xzqh.png +0 -0
- package/dist/assets/icons/xzq_zrc.png +0 -0
- package/dist/assets/icons/xzqh.png +0 -0
- package/dist/assets/icons/yj_bzazcs.png +0 -0
- package/dist/assets/icons/yj_hkjyd.png +0 -0
- package/dist/assets/icons/yj_shjydw.png +0 -0
- package/dist/assets/icons/yj_yjjydw.png +0 -0
- package/dist/assets/icons/yj_yjwzck.png +0 -0
- package/dist/assets/legend/xzq_zrc.png +0 -0
- package/dist/assets/template/data.json +0 -2661
- package/dist/vite.svg +0 -1
package/dist/gismap.es.min.js
CHANGED
|
@@ -81899,6 +81899,35 @@ class Tile3DLayer2 {
|
|
|
81899
81899
|
}
|
|
81900
81900
|
}
|
|
81901
81901
|
}
|
|
81902
|
+
class MarkerLayer {
|
|
81903
|
+
map;
|
|
81904
|
+
markers = /* @__PURE__ */ new Map();
|
|
81905
|
+
constructor(map2) {
|
|
81906
|
+
this.map = map2;
|
|
81907
|
+
}
|
|
81908
|
+
add(options) {
|
|
81909
|
+
const config2 = {
|
|
81910
|
+
...options
|
|
81911
|
+
};
|
|
81912
|
+
const marker2 = new mapboxGlExports.Marker(config2);
|
|
81913
|
+
marker2.setLngLat(options.lngLat);
|
|
81914
|
+
marker2.addTo(this.map);
|
|
81915
|
+
this.markers.set(options.id, marker2);
|
|
81916
|
+
}
|
|
81917
|
+
remove(id) {
|
|
81918
|
+
const marker2 = this.markers.get(id);
|
|
81919
|
+
if (marker2) {
|
|
81920
|
+
marker2.remove();
|
|
81921
|
+
}
|
|
81922
|
+
this.markers.delete(id);
|
|
81923
|
+
}
|
|
81924
|
+
clear() {
|
|
81925
|
+
this.markers.forEach((marker2) => {
|
|
81926
|
+
marker2.remove();
|
|
81927
|
+
});
|
|
81928
|
+
this.markers.clear();
|
|
81929
|
+
}
|
|
81930
|
+
}
|
|
81902
81931
|
class PlaceholderManager {
|
|
81903
81932
|
map;
|
|
81904
81933
|
sourceId = `gismap_placeholder_source_${Math.random().toString(10)}`;
|
|
@@ -82764,7 +82793,7 @@ class MapInit {
|
|
|
82764
82793
|
this.fogManager = new FogManager(this.map);
|
|
82765
82794
|
}
|
|
82766
82795
|
}
|
|
82767
|
-
const _hoisted_1$
|
|
82796
|
+
const _hoisted_1$4 = {
|
|
82768
82797
|
key: 0,
|
|
82769
82798
|
class: "gismap-control"
|
|
82770
82799
|
};
|
|
@@ -82772,11 +82801,11 @@ const _hoisted_2$3 = { class: "widget top-left" };
|
|
|
82772
82801
|
const _hoisted_3$3 = { class: "widget top-right" };
|
|
82773
82802
|
const _hoisted_4$3 = { class: "widget bottom-left" };
|
|
82774
82803
|
const _hoisted_5$3 = { class: "widget bottom-right" };
|
|
82775
|
-
const __default__$
|
|
82804
|
+
const __default__$d = {
|
|
82776
82805
|
name: "MapView"
|
|
82777
82806
|
};
|
|
82778
|
-
const _sfc_main$
|
|
82779
|
-
...__default__$
|
|
82807
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
82808
|
+
...__default__$d,
|
|
82780
82809
|
props: {
|
|
82781
82810
|
accessToken: {
|
|
82782
82811
|
type: String,
|
|
@@ -82839,7 +82868,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
82839
82868
|
ref: mapContainer,
|
|
82840
82869
|
class: "gismap-container"
|
|
82841
82870
|
}, null, 512),
|
|
82842
|
-
isLoad.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
82871
|
+
isLoad.value ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
82843
82872
|
createElementVNode("div", _hoisted_2$3, [
|
|
82844
82873
|
renderSlot(_ctx.$slots, "top-left")
|
|
82845
82874
|
]),
|
|
@@ -84474,12 +84503,12 @@ const iconProps = buildProps({
|
|
|
84474
84503
|
type: String
|
|
84475
84504
|
}
|
|
84476
84505
|
});
|
|
84477
|
-
const __default__$
|
|
84506
|
+
const __default__$c = defineComponent({
|
|
84478
84507
|
name: "ElIcon",
|
|
84479
84508
|
inheritAttrs: false
|
|
84480
84509
|
});
|
|
84481
|
-
const _sfc_main$
|
|
84482
|
-
...__default__$
|
|
84510
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
84511
|
+
...__default__$c,
|
|
84483
84512
|
props: iconProps,
|
|
84484
84513
|
setup(__props) {
|
|
84485
84514
|
const props = __props;
|
|
@@ -84503,7 +84532,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
84503
84532
|
};
|
|
84504
84533
|
}
|
|
84505
84534
|
});
|
|
84506
|
-
var Icon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
84535
|
+
var Icon = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "icon.vue"]]);
|
|
84507
84536
|
const ElIcon = withInstall(Icon);
|
|
84508
84537
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
84509
84538
|
var _sfc_main12 = /* @__PURE__ */ defineComponent({
|
|
@@ -85114,12 +85143,12 @@ function useCursor(input) {
|
|
|
85114
85143
|
return [recordCursor, setCursor];
|
|
85115
85144
|
}
|
|
85116
85145
|
const COMPONENT_NAME = "ElInput";
|
|
85117
|
-
const __default__$
|
|
85146
|
+
const __default__$b = defineComponent({
|
|
85118
85147
|
name: COMPONENT_NAME,
|
|
85119
85148
|
inheritAttrs: false
|
|
85120
85149
|
});
|
|
85121
|
-
const _sfc_main$
|
|
85122
|
-
...__default__$
|
|
85150
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
85151
|
+
...__default__$b,
|
|
85123
85152
|
props: inputProps,
|
|
85124
85153
|
emits: inputEmits,
|
|
85125
85154
|
setup(__props, { expose, emit }) {
|
|
@@ -85528,7 +85557,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
85528
85557
|
};
|
|
85529
85558
|
}
|
|
85530
85559
|
});
|
|
85531
|
-
var Input3 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
85560
|
+
var Input3 = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "input.vue"]]);
|
|
85532
85561
|
const ElInput = withInstall(Input3);
|
|
85533
85562
|
const EVENT_CODE = {
|
|
85534
85563
|
enter: "Enter",
|
|
@@ -85810,11 +85839,11 @@ const useCheckbox = (props, slots) => {
|
|
|
85810
85839
|
onClickRoot
|
|
85811
85840
|
};
|
|
85812
85841
|
};
|
|
85813
|
-
const __default__$
|
|
85842
|
+
const __default__$a = defineComponent({
|
|
85814
85843
|
name: "ElCheckbox"
|
|
85815
85844
|
});
|
|
85816
|
-
const _sfc_main$
|
|
85817
|
-
...__default__$
|
|
85845
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
85846
|
+
...__default__$a,
|
|
85818
85847
|
props: checkboxProps,
|
|
85819
85848
|
emits: checkboxEmits,
|
|
85820
85849
|
setup(__props) {
|
|
@@ -85922,12 +85951,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
85922
85951
|
};
|
|
85923
85952
|
}
|
|
85924
85953
|
});
|
|
85925
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
85926
|
-
const __default__$
|
|
85954
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "checkbox.vue"]]);
|
|
85955
|
+
const __default__$9 = defineComponent({
|
|
85927
85956
|
name: "ElCheckboxButton"
|
|
85928
85957
|
});
|
|
85929
|
-
const _sfc_main$
|
|
85930
|
-
...__default__$
|
|
85958
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
85959
|
+
...__default__$9,
|
|
85931
85960
|
props: checkboxProps,
|
|
85932
85961
|
emits: checkboxEmits,
|
|
85933
85962
|
setup(__props) {
|
|
@@ -86015,7 +86044,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
86015
86044
|
};
|
|
86016
86045
|
}
|
|
86017
86046
|
});
|
|
86018
|
-
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
86047
|
+
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "checkbox-button.vue"]]);
|
|
86019
86048
|
const checkboxGroupProps = buildProps({
|
|
86020
86049
|
modelValue: {
|
|
86021
86050
|
type: definePropType(Array),
|
|
@@ -86053,11 +86082,11 @@ const checkboxDefaultProps = {
|
|
|
86053
86082
|
value: "value",
|
|
86054
86083
|
disabled: "disabled"
|
|
86055
86084
|
};
|
|
86056
|
-
const __default__$
|
|
86085
|
+
const __default__$8 = defineComponent({
|
|
86057
86086
|
name: "ElCheckboxGroup"
|
|
86058
86087
|
});
|
|
86059
|
-
const _sfc_main$
|
|
86060
|
-
...__default__$
|
|
86088
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
86089
|
+
...__default__$8,
|
|
86061
86090
|
props: checkboxGroupProps,
|
|
86062
86091
|
emits: checkboxGroupEmits,
|
|
86063
86092
|
setup(__props, { emit }) {
|
|
@@ -86131,18 +86160,18 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
86131
86160
|
};
|
|
86132
86161
|
}
|
|
86133
86162
|
});
|
|
86134
|
-
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
86163
|
+
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "checkbox-group.vue"]]);
|
|
86135
86164
|
const ElCheckbox = withInstall(Checkbox, {
|
|
86136
86165
|
CheckboxButton,
|
|
86137
86166
|
CheckboxGroup
|
|
86138
86167
|
});
|
|
86139
86168
|
withNoopInstall(CheckboxButton);
|
|
86140
86169
|
withNoopInstall(CheckboxGroup);
|
|
86141
|
-
const __default__$
|
|
86170
|
+
const __default__$7 = defineComponent({
|
|
86142
86171
|
name: "ElCollapseTransition"
|
|
86143
86172
|
});
|
|
86144
|
-
const _sfc_main$
|
|
86145
|
-
...__default__$
|
|
86173
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
86174
|
+
...__default__$7,
|
|
86146
86175
|
setup(__props) {
|
|
86147
86176
|
const ns = useNamespace("collapse-transition");
|
|
86148
86177
|
const reset = (el) => {
|
|
@@ -86220,13 +86249,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
86220
86249
|
};
|
|
86221
86250
|
}
|
|
86222
86251
|
});
|
|
86223
|
-
var CollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
86252
|
+
var CollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "collapse-transition.vue"]]);
|
|
86224
86253
|
const ElCollapseTransition = withInstall(CollapseTransition);
|
|
86225
|
-
const __default__$
|
|
86254
|
+
const __default__$6 = defineComponent({
|
|
86226
86255
|
name: "ImgEmpty"
|
|
86227
86256
|
});
|
|
86228
|
-
const _sfc_main$
|
|
86229
|
-
...__default__$
|
|
86257
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
86258
|
+
...__default__$6,
|
|
86230
86259
|
setup(__props) {
|
|
86231
86260
|
const ns = useNamespace("empty");
|
|
86232
86261
|
const id = useId();
|
|
@@ -86351,7 +86380,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
86351
86380
|
};
|
|
86352
86381
|
}
|
|
86353
86382
|
});
|
|
86354
|
-
var ImgEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
86383
|
+
var ImgEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "img-empty.vue"]]);
|
|
86355
86384
|
const emptyProps = buildProps({
|
|
86356
86385
|
image: {
|
|
86357
86386
|
type: String,
|
|
@@ -86363,11 +86392,11 @@ const emptyProps = buildProps({
|
|
|
86363
86392
|
default: ""
|
|
86364
86393
|
}
|
|
86365
86394
|
});
|
|
86366
|
-
const __default__$
|
|
86395
|
+
const __default__$5 = defineComponent({
|
|
86367
86396
|
name: "ElEmpty"
|
|
86368
86397
|
});
|
|
86369
|
-
const _sfc_main$
|
|
86370
|
-
...__default__$
|
|
86398
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
86399
|
+
...__default__$5,
|
|
86371
86400
|
props: emptyProps,
|
|
86372
86401
|
setup(__props) {
|
|
86373
86402
|
const props = __props;
|
|
@@ -86408,7 +86437,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
86408
86437
|
};
|
|
86409
86438
|
}
|
|
86410
86439
|
});
|
|
86411
|
-
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
86440
|
+
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "empty.vue"]]);
|
|
86412
86441
|
const ElEmpty = withInstall(Empty);
|
|
86413
86442
|
const selectKey = Symbol("ElSelect");
|
|
86414
86443
|
const textProps = buildProps({
|
|
@@ -86431,11 +86460,11 @@ const textProps = buildProps({
|
|
|
86431
86460
|
default: "span"
|
|
86432
86461
|
}
|
|
86433
86462
|
});
|
|
86434
|
-
const __default__$
|
|
86463
|
+
const __default__$4 = defineComponent({
|
|
86435
86464
|
name: "ElText"
|
|
86436
86465
|
});
|
|
86437
|
-
const _sfc_main$
|
|
86438
|
-
...__default__$
|
|
86466
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
86467
|
+
...__default__$4,
|
|
86439
86468
|
props: textProps,
|
|
86440
86469
|
setup(__props) {
|
|
86441
86470
|
const props = __props;
|
|
@@ -86492,7 +86521,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
86492
86521
|
};
|
|
86493
86522
|
}
|
|
86494
86523
|
});
|
|
86495
|
-
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
86524
|
+
var Text = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "text.vue"]]);
|
|
86496
86525
|
const ElText = withInstall(Text);
|
|
86497
86526
|
const NODE_KEY = "$treeNodeId";
|
|
86498
86527
|
const markNodeData = function(node, data) {
|
|
@@ -87279,7 +87308,7 @@ class TreeStore {
|
|
|
87279
87308
|
const ROOT_TREE_INJECTION_KEY = "RootTree";
|
|
87280
87309
|
const NODE_INSTANCE_INJECTION_KEY = "NodeInstance";
|
|
87281
87310
|
const TREE_NODE_MAP_INJECTION_KEY = "TreeNodeMap";
|
|
87282
|
-
const _sfc_main$
|
|
87311
|
+
const _sfc_main$7 = defineComponent({
|
|
87283
87312
|
name: "ElTreeNodeContent",
|
|
87284
87313
|
props: {
|
|
87285
87314
|
node: {
|
|
@@ -87301,7 +87330,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
87301
87330
|
};
|
|
87302
87331
|
}
|
|
87303
87332
|
});
|
|
87304
|
-
var NodeContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
87333
|
+
var NodeContent = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "tree-node-content.vue"]]);
|
|
87305
87334
|
function useNodeExpandEventBroadcast(props) {
|
|
87306
87335
|
const parentNodeMap = inject(TREE_NODE_MAP_INJECTION_KEY, null);
|
|
87307
87336
|
const currentNodeMap = {
|
|
@@ -87491,7 +87520,7 @@ function useDragNodeHandler({
|
|
|
87491
87520
|
dragState
|
|
87492
87521
|
};
|
|
87493
87522
|
}
|
|
87494
|
-
const _sfc_main$
|
|
87523
|
+
const _sfc_main$6 = defineComponent({
|
|
87495
87524
|
name: "ElTreeNode",
|
|
87496
87525
|
components: {
|
|
87497
87526
|
ElCollapseTransition,
|
|
@@ -87789,7 +87818,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
87789
87818
|
[vShow, _ctx.node.visible]
|
|
87790
87819
|
]);
|
|
87791
87820
|
}
|
|
87792
|
-
var ElTreeNode = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
87821
|
+
var ElTreeNode = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$1], ["__file", "tree-node.vue"]]);
|
|
87793
87822
|
function useKeydown({ el$ }, store) {
|
|
87794
87823
|
const ns = useNamespace("tree");
|
|
87795
87824
|
onMounted(() => {
|
|
@@ -87879,7 +87908,7 @@ function useKeydown({ el$ }, store) {
|
|
|
87879
87908
|
(_a2 = treeItems[0]) == null ? void 0 : _a2.setAttribute("tabindex", "0");
|
|
87880
87909
|
};
|
|
87881
87910
|
}
|
|
87882
|
-
const _sfc_main$
|
|
87911
|
+
const _sfc_main$5 = defineComponent({
|
|
87883
87912
|
name: "ElTree",
|
|
87884
87913
|
components: { ElTreeNode },
|
|
87885
87914
|
props: {
|
|
@@ -88202,9 +88231,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
88202
88231
|
])
|
|
88203
88232
|
], 2);
|
|
88204
88233
|
}
|
|
88205
|
-
var Tree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
88234
|
+
var Tree = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render], ["__file", "tree.vue"]]);
|
|
88206
88235
|
const ElTree = withInstall(Tree);
|
|
88207
|
-
const _hoisted_1$
|
|
88236
|
+
const _hoisted_1$3 = { class: "gismap-layer" };
|
|
88208
88237
|
const _hoisted_2$2 = { class: "gismap-layer-title" };
|
|
88209
88238
|
const _hoisted_3$2 = { class: "gismap-layer-search" };
|
|
88210
88239
|
const _hoisted_4$2 = { class: "gismap-layer-tree-node" };
|
|
@@ -88220,7 +88249,7 @@ const _hoisted_7$1 = {
|
|
|
88220
88249
|
};
|
|
88221
88250
|
const _hoisted_8$1 = { class: "gismap-layer-tree-node-label" };
|
|
88222
88251
|
const _hoisted_9$1 = { class: "gismap-layer-tree-empty" };
|
|
88223
|
-
const _sfc_main$
|
|
88252
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
88224
88253
|
__name: "index",
|
|
88225
88254
|
props: {
|
|
88226
88255
|
title: {
|
|
@@ -88288,7 +88317,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
88288
88317
|
});
|
|
88289
88318
|
return (_ctx, _cache) => {
|
|
88290
88319
|
const _component_el_icon = ElIcon;
|
|
88291
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
88320
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
88292
88321
|
createElementVNode("div", _hoisted_2$2, toDisplayString(__props.title), 1),
|
|
88293
88322
|
createElementVNode("div", _hoisted_3$2, [
|
|
88294
88323
|
createVNode(unref(ElInput), {
|
|
@@ -88380,16 +88409,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
88380
88409
|
};
|
|
88381
88410
|
}
|
|
88382
88411
|
});
|
|
88383
|
-
const _hoisted_1$
|
|
88412
|
+
const _hoisted_1$2 = { class: "gismap-legend" };
|
|
88384
88413
|
const _hoisted_2$1 = { class: "gismap-legend-title" };
|
|
88385
88414
|
const _hoisted_3$1 = { class: "gismap-legend-content" };
|
|
88386
88415
|
const _hoisted_4$1 = { class: "gismap-legend-item" };
|
|
88387
88416
|
const _hoisted_5$1 = { class: "gismap-legend-item-text" };
|
|
88388
|
-
const __default__$
|
|
88417
|
+
const __default__$3 = {
|
|
88389
88418
|
name: "MapLegend"
|
|
88390
88419
|
};
|
|
88391
|
-
const _sfc_main$
|
|
88392
|
-
...__default__$
|
|
88420
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
88421
|
+
...__default__$3,
|
|
88393
88422
|
props: {
|
|
88394
88423
|
title: {
|
|
88395
88424
|
type: String,
|
|
@@ -88404,7 +88433,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
88404
88433
|
};
|
|
88405
88434
|
return (_ctx, _cache) => {
|
|
88406
88435
|
const _component_el_icon = ElIcon;
|
|
88407
|
-
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
88436
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
88408
88437
|
createElementVNode("div", _hoisted_2$1, [
|
|
88409
88438
|
createTextVNode(toDisplayString(__props.title) + " ", 1),
|
|
88410
88439
|
createElementVNode("span", {
|
|
@@ -88442,11 +88471,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
88442
88471
|
};
|
|
88443
88472
|
}
|
|
88444
88473
|
});
|
|
88445
|
-
const __default__$
|
|
88474
|
+
const __default__$2 = {
|
|
88446
88475
|
name: "MapTools"
|
|
88447
88476
|
};
|
|
88448
|
-
const _sfc_main$
|
|
88449
|
-
...__default__$
|
|
88477
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
88478
|
+
...__default__$2,
|
|
88450
88479
|
props: {
|
|
88451
88480
|
data: {
|
|
88452
88481
|
type: Array,
|
|
@@ -88459,7 +88488,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
88459
88488
|
};
|
|
88460
88489
|
}
|
|
88461
88490
|
});
|
|
88462
|
-
const _hoisted_1 = { class: "gismap-switch" };
|
|
88491
|
+
const _hoisted_1$1 = { class: "gismap-switch" };
|
|
88463
88492
|
const _hoisted_2 = {
|
|
88464
88493
|
key: 0,
|
|
88465
88494
|
class: "gismap-switch-extensions"
|
|
@@ -88477,11 +88506,11 @@ const _hoisted_9 = {
|
|
|
88477
88506
|
const _hoisted_10 = ["onClick"];
|
|
88478
88507
|
const _hoisted_11 = { class: "gismap-switch-item-icon" };
|
|
88479
88508
|
const _hoisted_12 = { class: "gismap-switch-item-text" };
|
|
88480
|
-
const __default__ = {
|
|
88509
|
+
const __default__$1 = {
|
|
88481
88510
|
name: "MapSwitch"
|
|
88482
88511
|
};
|
|
88483
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
88484
|
-
...__default__,
|
|
88512
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
88513
|
+
...__default__$1,
|
|
88485
88514
|
props: {
|
|
88486
88515
|
data: {
|
|
88487
88516
|
type: Object,
|
|
@@ -88566,7 +88595,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88566
88595
|
});
|
|
88567
88596
|
return (_ctx, _cache) => {
|
|
88568
88597
|
const _component_el_checkbox = ElCheckbox;
|
|
88569
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
88598
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
88570
88599
|
renderSlot(_ctx.$slots, "left"),
|
|
88571
88600
|
__props.extensionsPosition === "left" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
88572
88601
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data.extensions, (item) => {
|
|
@@ -88635,11 +88664,108 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88635
88664
|
};
|
|
88636
88665
|
}
|
|
88637
88666
|
});
|
|
88667
|
+
const _hoisted_1 = { class: "map-layout" };
|
|
88668
|
+
const __default__ = {
|
|
88669
|
+
name: "MapLayout"
|
|
88670
|
+
};
|
|
88671
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
88672
|
+
...__default__,
|
|
88673
|
+
props: {
|
|
88674
|
+
mapViewData: {
|
|
88675
|
+
type: Object,
|
|
88676
|
+
default: () => {
|
|
88677
|
+
}
|
|
88678
|
+
},
|
|
88679
|
+
switchData: {
|
|
88680
|
+
type: Object,
|
|
88681
|
+
default: () => []
|
|
88682
|
+
},
|
|
88683
|
+
layerData: {
|
|
88684
|
+
type: Array,
|
|
88685
|
+
default: () => []
|
|
88686
|
+
},
|
|
88687
|
+
toolsData: {
|
|
88688
|
+
type: Array,
|
|
88689
|
+
default: () => []
|
|
88690
|
+
}
|
|
88691
|
+
},
|
|
88692
|
+
emits: ["load"],
|
|
88693
|
+
setup(__props, { emit: __emit }) {
|
|
88694
|
+
const props = __props;
|
|
88695
|
+
const emits = __emit;
|
|
88696
|
+
const formData = reactive({
|
|
88697
|
+
mapViewData: props.mapViewData || { center: [120.35826594964023, 30.10842454359468] },
|
|
88698
|
+
switchData: props.switchData || {},
|
|
88699
|
+
layerData: props.layerData || [],
|
|
88700
|
+
toolsData: props.toolsData || []
|
|
88701
|
+
});
|
|
88702
|
+
let map2;
|
|
88703
|
+
const onMapLoad = (_map) => {
|
|
88704
|
+
map2 = _map;
|
|
88705
|
+
map2.manager.fogManager.setFog();
|
|
88706
|
+
emits("load", map2);
|
|
88707
|
+
};
|
|
88708
|
+
watch(() => props.mapViewData, (newVal) => {
|
|
88709
|
+
formData.mapViewData = newVal;
|
|
88710
|
+
});
|
|
88711
|
+
watch(() => props.switchData, (newVal) => {
|
|
88712
|
+
formData.switchData = newVal;
|
|
88713
|
+
});
|
|
88714
|
+
watch(() => props.layerData, (newVal) => {
|
|
88715
|
+
formData.layerData = newVal;
|
|
88716
|
+
});
|
|
88717
|
+
watch(() => props.toolsData, (newVal) => {
|
|
88718
|
+
formData.toolsData = newVal;
|
|
88719
|
+
});
|
|
88720
|
+
return (_ctx, _cache) => {
|
|
88721
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
88722
|
+
createVNode(unref(_sfc_main$h), {
|
|
88723
|
+
options: formData.mapViewData,
|
|
88724
|
+
onLoad: onMapLoad
|
|
88725
|
+
}, {
|
|
88726
|
+
"top-left": withCtx(() => [
|
|
88727
|
+
renderSlot(_ctx.$slots, "pre-top-left"),
|
|
88728
|
+
createVNode(unref(_sfc_main$2), {
|
|
88729
|
+
data: formData.toolsData
|
|
88730
|
+
}, null, 8, ["data"]),
|
|
88731
|
+
renderSlot(_ctx.$slots, "top-left")
|
|
88732
|
+
]),
|
|
88733
|
+
"top-right": withCtx(() => [
|
|
88734
|
+
renderSlot(_ctx.$slots, "pre-top-right"),
|
|
88735
|
+
createVNode(unref(_sfc_main$4), {
|
|
88736
|
+
class: "widget-right",
|
|
88737
|
+
data: formData.layerData
|
|
88738
|
+
}, null, 8, ["data"]),
|
|
88739
|
+
renderSlot(_ctx.$slots, "top-right")
|
|
88740
|
+
]),
|
|
88741
|
+
"bottom-left": withCtx(() => [
|
|
88742
|
+
renderSlot(_ctx.$slots, "pre-bottom-left"),
|
|
88743
|
+
createVNode(unref(_sfc_main$3)),
|
|
88744
|
+
renderSlot(_ctx.$slots, "bottom-left")
|
|
88745
|
+
]),
|
|
88746
|
+
"bottom-right": withCtx(() => [
|
|
88747
|
+
renderSlot(_ctx.$slots, "pre-bottom-right"),
|
|
88748
|
+
createVNode(unref(_sfc_main$1), {
|
|
88749
|
+
data: formData.switchData
|
|
88750
|
+
}, null, 8, ["data"]),
|
|
88751
|
+
renderSlot(_ctx.$slots, "bottom-right")
|
|
88752
|
+
]),
|
|
88753
|
+
default: withCtx(() => [
|
|
88754
|
+
renderSlot(_ctx.$slots, "default")
|
|
88755
|
+
]),
|
|
88756
|
+
_: 3
|
|
88757
|
+
}, 8, ["options"])
|
|
88758
|
+
]);
|
|
88759
|
+
};
|
|
88760
|
+
}
|
|
88761
|
+
});
|
|
88638
88762
|
export {
|
|
88639
|
-
_sfc_main$
|
|
88640
|
-
_sfc_main$
|
|
88641
|
-
_sfc_main as GisMapSwitch,
|
|
88642
|
-
_sfc_main$
|
|
88643
|
-
_sfc_main$
|
|
88763
|
+
_sfc_main$4 as GisMapLayer,
|
|
88764
|
+
_sfc_main$3 as GisMapLegend,
|
|
88765
|
+
_sfc_main$1 as GisMapSwitch,
|
|
88766
|
+
_sfc_main$2 as GisMapTools,
|
|
88767
|
+
_sfc_main$h as GisMapView,
|
|
88768
|
+
_sfc_main as MapPage,
|
|
88769
|
+
MarkerLayer,
|
|
88644
88770
|
Tile3DLayer2 as Tile3DLayer
|
|
88645
88771
|
};
|