@heycar/heycars-map 0.5.3 → 0.5.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/index.cjs CHANGED
@@ -2327,7 +2327,10 @@ const useADrivingRoute = (props) => {
2327
2327
  const outputRoute = Vue.reactive({ path: [], distance: 0, duration: 0 });
2328
2328
  const amapDriving = new AMap.Driving({});
2329
2329
  watchPostEffectForDeepOption(
2330
- () => ({ ...props }),
2330
+ () => {
2331
+ const { from, to } = props;
2332
+ return { from, to };
2333
+ },
2331
2334
  ({ from, to }) => {
2332
2335
  amapDriving.search(
2333
2336
  AMap.LngLat.from(from),
@@ -4128,7 +4131,7 @@ const ATaxiCar = defineSetup(function ATaxiCar2(props) {
4128
4131
  "registerOverlay": props.registerOverlay,
4129
4132
  "zIndex": ZINDEX_CAR_LAYER
4130
4133
  }
4131
- }), Vue.h(AmapMarker, {
4134
+ }), !!contentRef.value.box && Vue.h(AmapMarker, {
4132
4135
  "attrs": {
4133
4136
  "position": props.position,
4134
4137
  "content": contentRef.value.box,
@@ -4176,7 +4179,7 @@ const GTaxiCar = defineSetup(function GTaxiCar2(props) {
4176
4179
  "registerOverlay": props.registerOverlay,
4177
4180
  "zIndex": ZINDEX_CAR_LAYER
4178
4181
  }
4179
- }), Vue.h(GmapAdvancedMarkerView, {
4182
+ }), !!contentRef.value.box && Vue.h(GmapAdvancedMarkerView, {
4180
4183
  "attrs": {
4181
4184
  "position": vec2lnglat(props.position),
4182
4185
  "content": contentRef.value.box,
@@ -4265,7 +4268,10 @@ const useAWalkingRoute = (props) => {
4265
4268
  const pathRef = Vue.shallowRef([]);
4266
4269
  const amapWalking = new AMap.Walking({});
4267
4270
  watchPostEffectForDeepOption(
4268
- () => ({ ...props }),
4271
+ () => {
4272
+ const { from, to } = props;
4273
+ return { from, to };
4274
+ },
4269
4275
  ({ from, to }) => {
4270
4276
  amapWalking.search(AMap.LngLat.from(from), AMap.LngLat.from(to), (status, result) => {
4271
4277
  switch (status) {
package/dist/index.js CHANGED
@@ -2325,7 +2325,10 @@ const useADrivingRoute = (props) => {
2325
2325
  const outputRoute = reactive({ path: [], distance: 0, duration: 0 });
2326
2326
  const amapDriving = new AMap.Driving({});
2327
2327
  watchPostEffectForDeepOption(
2328
- () => ({ ...props }),
2328
+ () => {
2329
+ const { from, to } = props;
2330
+ return { from, to };
2331
+ },
2329
2332
  ({ from, to }) => {
2330
2333
  amapDriving.search(
2331
2334
  AMap.LngLat.from(from),
@@ -4126,7 +4129,7 @@ const ATaxiCar = defineSetup(function ATaxiCar2(props) {
4126
4129
  "registerOverlay": props.registerOverlay,
4127
4130
  "zIndex": ZINDEX_CAR_LAYER
4128
4131
  }
4129
- }), h(AmapMarker, {
4132
+ }), !!contentRef.value.box && h(AmapMarker, {
4130
4133
  "attrs": {
4131
4134
  "position": props.position,
4132
4135
  "content": contentRef.value.box,
@@ -4174,7 +4177,7 @@ const GTaxiCar = defineSetup(function GTaxiCar2(props) {
4174
4177
  "registerOverlay": props.registerOverlay,
4175
4178
  "zIndex": ZINDEX_CAR_LAYER
4176
4179
  }
4177
- }), h(GmapAdvancedMarkerView, {
4180
+ }), !!contentRef.value.box && h(GmapAdvancedMarkerView, {
4178
4181
  "attrs": {
4179
4182
  "position": vec2lnglat(props.position),
4180
4183
  "content": contentRef.value.box,
@@ -4263,7 +4266,10 @@ const useAWalkingRoute = (props) => {
4263
4266
  const pathRef = shallowRef([]);
4264
4267
  const amapWalking = new AMap.Walking({});
4265
4268
  watchPostEffectForDeepOption(
4266
- () => ({ ...props }),
4269
+ () => {
4270
+ const { from, to } = props;
4271
+ return { from, to };
4272
+ },
4267
4273
  ({ from, to }) => {
4268
4274
  amapWalking.search(AMap.LngLat.from(from), AMap.LngLat.from(to), (status, result) => {
4269
4275
  switch (status) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite -c vite.config.dev.ts",
package/todo.md CHANGED
@@ -89,3 +89,8 @@ https://dawchihliou.github.io/articles/building-custom-google-maps-marker-react-
89
89
  - 5366
90
90
  - 5364
91
91
  - 5373
92
+
93
+ 0.5.4
94
+
95
+ - 5375
96
+ - 4946