sctj-components 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sctj-components.es.js +11 -5
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -4114,7 +4114,7 @@ const _sfc_main$5 = {
|
|
|
4114
4114
|
};
|
|
4115
4115
|
}
|
|
4116
4116
|
};
|
|
4117
|
-
const
|
|
4117
|
+
const index_vue_vue_type_style_index_0_scoped_23f6e80a_lang = "";
|
|
4118
4118
|
const _hoisted_1$2 = { class: "action-container" };
|
|
4119
4119
|
const _hoisted_2$2 = {
|
|
4120
4120
|
key: 0,
|
|
@@ -4193,8 +4193,8 @@ const _sfc_main$4 = {
|
|
|
4193
4193
|
setup(__props, { expose, emit }) {
|
|
4194
4194
|
const props = __props;
|
|
4195
4195
|
useCssVars((_ctx) => ({
|
|
4196
|
-
"
|
|
4197
|
-
"
|
|
4196
|
+
"21fc5abb": __props.width,
|
|
4197
|
+
"03c002d2": __props.height
|
|
4198
4198
|
}));
|
|
4199
4199
|
const mapContainer = ref$1(null);
|
|
4200
4200
|
const map = shallowRef(null);
|
|
@@ -4523,6 +4523,11 @@ const _sfc_main$4 = {
|
|
|
4523
4523
|
map.value.setCenter(parsePosition(newCenter));
|
|
4524
4524
|
}
|
|
4525
4525
|
};
|
|
4526
|
+
const setZoomAndCenter = (newCenter, zoom = 20) => {
|
|
4527
|
+
if (map.value) {
|
|
4528
|
+
map.value.setZoomAndCenter(zoom, parsePosition(newCenter));
|
|
4529
|
+
}
|
|
4530
|
+
};
|
|
4526
4531
|
const fitView = (padding = null) => {
|
|
4527
4532
|
if (map.value) {
|
|
4528
4533
|
const allFeatures = [
|
|
@@ -5001,7 +5006,8 @@ const _sfc_main$4 = {
|
|
|
5001
5006
|
expose({
|
|
5002
5007
|
fitView,
|
|
5003
5008
|
updateCenter,
|
|
5004
|
-
handleLayerChange
|
|
5009
|
+
handleLayerChange,
|
|
5010
|
+
setZoomAndCenter
|
|
5005
5011
|
});
|
|
5006
5012
|
return (_ctx, _cache) => {
|
|
5007
5013
|
const _component_el_switch = resolveComponent("el-switch");
|
|
@@ -5050,7 +5056,7 @@ const _sfc_main$4 = {
|
|
|
5050
5056
|
};
|
|
5051
5057
|
}
|
|
5052
5058
|
};
|
|
5053
|
-
const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
5059
|
+
const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-23f6e80a"]]);
|
|
5054
5060
|
const index_vue_vue_type_style_index_0_scoped_d89fd5ba_lang = "";
|
|
5055
5061
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-d89fd5ba"), n = n(), popScopeId(), n);
|
|
5056
5062
|
const _hoisted_1$1 = {
|