@heycar/heycars-map 0.9.23-alpha11 → 0.9.23-alpha12

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.cjs CHANGED
@@ -19,7 +19,7 @@ if (typeof GeolocationPositionError === "undefined") {
19
19
  };
20
20
  }
21
21
  const name = "@heycar/heycars-map";
22
- const version = "0.9.23-alpha11";
22
+ const version = "0.9.23-alpha12";
23
23
  const type = "module";
24
24
  const bin = {
25
25
  checkVersion: "./bin/checkVersion.js"
@@ -3891,7 +3891,7 @@ const useAmapFitView = (props) => {
3891
3891
  const overlayGroup = /* @__PURE__ */ new Set();
3892
3892
  let timer = void 0;
3893
3893
  const setFitView = (immediate = false) => {
3894
- var _a, _b;
3894
+ var _a;
3895
3895
  const map = mapRef.value;
3896
3896
  if (!(map == null ? void 0 : map.amap))
3897
3897
  return;
@@ -3899,12 +3899,6 @@ const useAmapFitView = (props) => {
3899
3899
  const [top, right, bottom, left] = (_a = props.padding) != null ? _a : [0, 0, 0, 0];
3900
3900
  spaceLog("setFitView", "overlayGroup = ", overlayGroup);
3901
3901
  map.setFitView([...overlayGroup], immediate, [top * vw, bottom * vw, left * vw, right * vw]);
3902
- if (overlayGroup.size === 1) {
3903
- const [overlay] = [...overlayGroup];
3904
- const position = (_b = overlay.getPosition) == null ? void 0 : _b.call(overlay);
3905
- if (position)
3906
- map.panTo(position);
3907
- }
3908
3902
  };
3909
3903
  const registerFitVeiw = {
3910
3904
  add: (overlay) => {
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ if (typeof GeolocationPositionError === "undefined") {
17
17
  };
18
18
  }
19
19
  const name = "@heycar/heycars-map";
20
- const version = "0.9.23-alpha11";
20
+ const version = "0.9.23-alpha12";
21
21
  const type = "module";
22
22
  const bin = {
23
23
  checkVersion: "./bin/checkVersion.js"
@@ -3889,7 +3889,7 @@ const useAmapFitView = (props) => {
3889
3889
  const overlayGroup = /* @__PURE__ */ new Set();
3890
3890
  let timer = void 0;
3891
3891
  const setFitView = (immediate = false) => {
3892
- var _a, _b;
3892
+ var _a;
3893
3893
  const map = mapRef.value;
3894
3894
  if (!(map == null ? void 0 : map.amap))
3895
3895
  return;
@@ -3897,12 +3897,6 @@ const useAmapFitView = (props) => {
3897
3897
  const [top, right, bottom, left] = (_a = props.padding) != null ? _a : [0, 0, 0, 0];
3898
3898
  spaceLog("setFitView", "overlayGroup = ", overlayGroup);
3899
3899
  map.setFitView([...overlayGroup], immediate, [top * vw, bottom * vw, left * vw, right * vw]);
3900
- if (overlayGroup.size === 1) {
3901
- const [overlay] = [...overlayGroup];
3902
- const position = (_b = overlay.getPosition) == null ? void 0 : _b.call(overlay);
3903
- if (position)
3904
- map.panTo(position);
3905
- }
3906
3900
  };
3907
3901
  const registerFitVeiw = {
3908
3902
  add: (overlay) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.9.23-alpha11",
3
+ "version": "0.9.23-alpha12",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js"