ry-vue-mapv3 0.0.9 → 0.1.0

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/index.js CHANGED
@@ -21193,12 +21193,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21193
21193
  selectGPSAll(props.gpsType);
21194
21194
  }
21195
21195
  );
21196
- const init = (model) => {
21197
- _insert(model);
21196
+ const init = async (model) => {
21197
+ await _insert(model);
21198
21198
  if (props.isFit) {
21199
- setTimeout(() => {
21200
- setFit();
21201
- }, 50);
21199
+ setFit();
21202
21200
  }
21203
21201
  };
21204
21202
  const _insert = async (dto) => {
@@ -21421,26 +21419,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21421
21419
  _setColor(val);
21422
21420
  }
21423
21421
  );
21424
- const init = (arr) => {
21422
+ const init = async (arr) => {
21425
21423
  if (!arr || !arr.length) return;
21426
- arr.forEach((item) => {
21427
- _insert(item);
21428
- });
21424
+ for (let i = 0; i < arr.length; i++) {
21425
+ await _insert(arr[0]);
21426
+ }
21429
21427
  if (props.isFit) {
21430
- setTimeout(() => {
21431
- setFit();
21432
- }, 50);
21428
+ setFit();
21433
21429
  }
21434
21430
  };
21435
- const _inserts = (arr) => {
21431
+ const _inserts = async (arr) => {
21436
21432
  lastType.value = props.gpsType;
21437
- arr.forEach((val) => {
21438
- _insert(val);
21439
- });
21433
+ for (let i = 0; i < arr.length; i++) {
21434
+ await _insert(arr[0]);
21435
+ }
21440
21436
  if (props.isFit) {
21441
- setTimeout(() => {
21442
- setFit();
21443
- }, 50);
21437
+ setFit();
21444
21438
  }
21445
21439
  };
21446
21440
  const _insert = async (dto) => {
@@ -21457,8 +21451,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21457
21451
  gcj02Url
21458
21452
  } = dto;
21459
21453
  if (!kmlMap.value.has(id)) {
21460
- console.log(dto);
21461
- console.log(props.map);
21462
21454
  const lKml = new ryMapts.LKML(
21463
21455
  {
21464
21456
  id,
package/dist/index.mjs CHANGED
@@ -21192,12 +21192,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
21192
21192
  selectGPSAll(props.gpsType);
21193
21193
  }
21194
21194
  );
21195
- const init = (model) => {
21196
- _insert(model);
21195
+ const init = async (model) => {
21196
+ await _insert(model);
21197
21197
  if (props.isFit) {
21198
- setTimeout(() => {
21199
- setFit();
21200
- }, 50);
21198
+ setFit();
21201
21199
  }
21202
21200
  };
21203
21201
  const _insert = async (dto) => {
@@ -21420,26 +21418,22 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
21420
21418
  _setColor(val);
21421
21419
  }
21422
21420
  );
21423
- const init = (arr) => {
21421
+ const init = async (arr) => {
21424
21422
  if (!arr || !arr.length) return;
21425
- arr.forEach((item) => {
21426
- _insert(item);
21427
- });
21423
+ for (let i = 0; i < arr.length; i++) {
21424
+ await _insert(arr[0]);
21425
+ }
21428
21426
  if (props.isFit) {
21429
- setTimeout(() => {
21430
- setFit();
21431
- }, 50);
21427
+ setFit();
21432
21428
  }
21433
21429
  };
21434
- const _inserts = (arr) => {
21430
+ const _inserts = async (arr) => {
21435
21431
  lastType.value = props.gpsType;
21436
- arr.forEach((val) => {
21437
- _insert(val);
21438
- });
21432
+ for (let i = 0; i < arr.length; i++) {
21433
+ await _insert(arr[0]);
21434
+ }
21439
21435
  if (props.isFit) {
21440
- setTimeout(() => {
21441
- setFit();
21442
- }, 50);
21436
+ setFit();
21443
21437
  }
21444
21438
  };
21445
21439
  const _insert = async (dto) => {
@@ -21456,8 +21450,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
21456
21450
  gcj02Url
21457
21451
  } = dto;
21458
21452
  if (!kmlMap.value.has(id)) {
21459
- console.log(dto);
21460
- console.log(props.map);
21461
21453
  const lKml = new LKML(
21462
21454
  {
21463
21455
  id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ry-vue-mapv3",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -43,5 +43,8 @@
43
43
  "vite": "^6.0.7",
44
44
  "vite-plugin-dts": "^4.4.0",
45
45
  "vue": "^3.5.13"
46
+ },
47
+ "dependencies": {
48
+ "ry-vue-mapv3": "^0.0.9"
46
49
  }
47
50
  }