sctj-components 1.0.21 → 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.
@@ -511,7 +511,7 @@ const _sfc_main$o = {
511
511
  }
512
512
  };
513
513
  const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-392c966d"]]);
514
- const index_vue_vue_type_style_index_0_scoped_68e409aa_lang = "";
514
+ const index_vue_vue_type_style_index_0_scoped_1fbca88e_lang = "";
515
515
  const _hoisted_1$h = { class: "component-upload-image" };
516
516
  const _hoisted_2$a = {
517
517
  key: 0,
@@ -802,7 +802,7 @@ const _sfc_main$n = {
802
802
  };
803
803
  }
804
804
  };
805
- const SCTJImageUpload = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-68e409aa"]]);
805
+ const SCTJImageUpload = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1fbca88e"]]);
806
806
  const index_vue_vue_type_style_index_0_scoped_bebc33d5_lang = "";
807
807
  const _hoisted_1$g = { class: "image-slot" };
808
808
  const _sfc_main$m = {
@@ -4114,7 +4114,7 @@ const _sfc_main$5 = {
4114
4114
  };
4115
4115
  }
4116
4116
  };
4117
- const index_vue_vue_type_style_index_0_scoped_24729613_lang = "";
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
- "c5256a18": __props.width,
4197
- "1325cc8e": __props.height
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-24729613"]]);
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 = {