@heycar/heycars-map 0.4.7 → 0.4.8
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/Demo/Demo.css.d.ts +2 -0
- package/dist/Demo/DemoBusinessTaxiEnd.d.ts +1 -0
- package/dist/Demo/DemoBusinessTaxiService.d.ts +1 -0
- package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +1 -1
- package/dist/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +1 -2
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -1
- package/dist/components/Amap/Amap.d.ts +2 -1
- package/dist/components/MapProvider/MapProvider.d.ts +2 -1
- package/dist/index.cjs +27 -8
- package/dist/index.js +27 -8
- package/package.json +1 -1
- package/todo.md +5 -5
package/dist/Demo/Demo.css.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const DemoBusinessTaxiEnd: import("vue").DefineComponent<{}, unknown, {
|
|
2
2
|
from: {};
|
|
3
3
|
to: {};
|
|
4
|
+
contentHeight: number;
|
|
4
5
|
}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -2050,6 +2050,7 @@ export declare const DemoBusinessTaxiService: import("vue").DefineComponent<Read
|
|
|
2050
2050
|
from: Partial<Place>;
|
|
2051
2051
|
to: Partial<Place>;
|
|
2052
2052
|
status: DriverStatus;
|
|
2053
|
+
contentHeight: number;
|
|
2053
2054
|
}, {}, {
|
|
2054
2055
|
getDriverPosition(): Promise<Point>;
|
|
2055
2056
|
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{}>>>, {}>;
|
|
@@ -11,4 +11,4 @@ export type BusinessQuotingMapProps = Omit<HeycarMapProps, "center" | "zoom"> &
|
|
|
11
11
|
}) => string;
|
|
12
12
|
log?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export declare const BusinessQuotingMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessQuotingMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessQuotingMapProps, Required<BusinessQuotingMapProps>>, "dragEnd" | "zoomEnd", BusinessQuotingMapProps, {} | {}>;
|
|
14
|
+
export declare const BusinessQuotingMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessQuotingMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessQuotingMapProps, Required<BusinessQuotingMapProps>>, "resize" | "dragEnd" | "zoomEnd", BusinessQuotingMapProps, {} | {}>;
|
|
@@ -14,7 +14,6 @@ export interface BusinessRecomendPlaceMapProps extends Omit<HeycarMapProps, "cen
|
|
|
14
14
|
geoLoadingTitle: string;
|
|
15
15
|
unavailableTitle: string;
|
|
16
16
|
recomendDescription: string;
|
|
17
|
-
noRecomendDescription: string;
|
|
18
17
|
geoDefaultPosition?: Point;
|
|
19
18
|
mapContext: BusinessRecomendPlaceContext;
|
|
20
19
|
getDefaultCenterPlace: () => Promise<Place | undefined>;
|
|
@@ -28,4 +27,4 @@ export interface BusinessRecomendPlaceMapProps extends Omit<HeycarMapProps, "cen
|
|
|
28
27
|
onGeoError?: UseGeoLocationProps["onError"];
|
|
29
28
|
onClickLocator?: AbsoluteAddressBoxProps["onClick"];
|
|
30
29
|
}
|
|
31
|
-
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "dragEnd" | "zoomEnd" | "changeCity" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "clickLocator", BusinessRecomendPlaceMapProps, {}>;
|
|
30
|
+
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "resize" | "dragEnd" | "zoomEnd" | "changeCity" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "clickLocator", BusinessRecomendPlaceMapProps, {}>;
|
|
@@ -20,4 +20,4 @@ export type BusinessTaxiServiceMapProps = Omit<HeycarMapProps, "center" | "zoom"
|
|
|
20
20
|
}) => string;
|
|
21
21
|
getDriverPosition: () => Promise<Point>;
|
|
22
22
|
};
|
|
23
|
-
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "dragEnd" | "zoomEnd", BusinessTaxiServiceMapProps, {} | {}>;
|
|
23
|
+
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "resize" | "dragEnd" | "zoomEnd", BusinessTaxiServiceMapProps, {} | {}>;
|
|
@@ -15,5 +15,6 @@ export interface AmapProps extends Omit<AMap.MapOptions, "vectorMapForeign"> {
|
|
|
15
15
|
onDragStart?: MapEventHandler<AMap.Map>;
|
|
16
16
|
onDragEnd?: MapEventHandler<AMap.Map>;
|
|
17
17
|
onZoomEnd?: MapEventHandler<AMap.Map>;
|
|
18
|
+
onResize?: MapEventHandler<AMap.Map>;
|
|
18
19
|
}
|
|
19
|
-
export declare const Amap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AmapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AmapProps, Required<AmapProps>>, "dragStart" | "dragEnd" | "zoomEnd", AmapProps, {}>;
|
|
20
|
+
export declare const Amap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AmapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AmapProps, Required<AmapProps>>, "resize" | "dragStart" | "dragEnd" | "zoomEnd", AmapProps, {}>;
|
|
@@ -9,6 +9,7 @@ export interface HeycarMapProps extends Pick<GmapLoaderProps, "fallback" | "load
|
|
|
9
9
|
mapRef?: SetMap<AMap.Map> | SetMap<google.maps.Map>;
|
|
10
10
|
onDragEnd?: (value: [number, number]) => any;
|
|
11
11
|
onZoomEnd?: (value: number) => any;
|
|
12
|
+
onResize?: () => any;
|
|
12
13
|
touchEnable?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const HeycarMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<HeycarMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<HeycarMapProps, Required<HeycarMapProps>>, "dragEnd" | "zoomEnd", HeycarMapProps, {}>;
|
|
15
|
+
export declare const HeycarMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<HeycarMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<HeycarMapProps, Required<HeycarMapProps>>, "resize" | "dragEnd" | "zoomEnd", HeycarMapProps, {}>;
|
package/dist/index.cjs
CHANGED
|
@@ -1860,6 +1860,7 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
|
|
|
1860
1860
|
onDragStart,
|
|
1861
1861
|
onDragEnd,
|
|
1862
1862
|
onZoomEnd,
|
|
1863
|
+
onResize,
|
|
1863
1864
|
mapRef: setMap,
|
|
1864
1865
|
vectorMapForeign = "style_zh_cn",
|
|
1865
1866
|
...defaultOptions
|
|
@@ -1926,7 +1927,12 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
|
|
|
1926
1927
|
{ name: "mask", defaultValue: [] },
|
|
1927
1928
|
{ name: "labelRejectMask", defaultValue: false }
|
|
1928
1929
|
]);
|
|
1929
|
-
watchPostEffectForAMapEvent(mapRef, props, emit, [
|
|
1930
|
+
watchPostEffectForAMapEvent(mapRef, props, emit, [
|
|
1931
|
+
"onDragStart",
|
|
1932
|
+
"onDragEnd",
|
|
1933
|
+
"onZoomEnd",
|
|
1934
|
+
"onResize"
|
|
1935
|
+
]);
|
|
1930
1936
|
return () => {
|
|
1931
1937
|
var _a;
|
|
1932
1938
|
return Vue.h("div", { ref: elementRef, class: amap }, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
@@ -2020,7 +2026,7 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2020
2026
|
emit
|
|
2021
2027
|
}) {
|
|
2022
2028
|
const payload = useMapSupplier();
|
|
2023
|
-
const
|
|
2029
|
+
const gmapHandleDargEnd = ({
|
|
2024
2030
|
target
|
|
2025
2031
|
}) => {
|
|
2026
2032
|
const {
|
|
@@ -2029,7 +2035,7 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2029
2035
|
} = target.getCenter();
|
|
2030
2036
|
emit("dragEnd", [lng(), lat()]);
|
|
2031
2037
|
};
|
|
2032
|
-
const
|
|
2038
|
+
const amapHandleDragEnd = ({
|
|
2033
2039
|
target
|
|
2034
2040
|
}) => {
|
|
2035
2041
|
const {
|
|
@@ -2038,6 +2044,7 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2038
2044
|
} = target.getCenter();
|
|
2039
2045
|
emit("dragEnd", [lng, lat]);
|
|
2040
2046
|
};
|
|
2047
|
+
const handleResize = () => emit("resize");
|
|
2041
2048
|
return () => {
|
|
2042
2049
|
var _a, _b, _c;
|
|
2043
2050
|
const {
|
|
@@ -2075,7 +2082,7 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2075
2082
|
"panControl": touchEnable
|
|
2076
2083
|
},
|
|
2077
2084
|
"on": {
|
|
2078
|
-
"dragEnd":
|
|
2085
|
+
"dragEnd": gmapHandleDargEnd
|
|
2079
2086
|
}
|
|
2080
2087
|
}, [children]);
|
|
2081
2088
|
default:
|
|
@@ -2095,7 +2102,8 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2095
2102
|
"pitchEnable": touchEnable
|
|
2096
2103
|
},
|
|
2097
2104
|
"on": {
|
|
2098
|
-
"dragEnd":
|
|
2105
|
+
"dragEnd": amapHandleDragEnd,
|
|
2106
|
+
"resize": handleResize
|
|
2099
2107
|
}
|
|
2100
2108
|
}, [children]);
|
|
2101
2109
|
}
|
|
@@ -2830,6 +2838,7 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props)
|
|
|
2830
2838
|
renderDescription
|
|
2831
2839
|
} = props;
|
|
2832
2840
|
const fittableRegistryOverlay = createFittableRegisterOverlay(registerOverlay);
|
|
2841
|
+
const deferedSetFitView = pipeDefer(registerOverlay.setFitView);
|
|
2833
2842
|
return () => {
|
|
2834
2843
|
const {
|
|
2835
2844
|
from: fromPlace,
|
|
@@ -2843,6 +2852,9 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props)
|
|
|
2843
2852
|
"mapRef": mapRef,
|
|
2844
2853
|
"center": from,
|
|
2845
2854
|
"zoom": 13
|
|
2855
|
+
},
|
|
2856
|
+
"on": {
|
|
2857
|
+
"resize": deferedSetFitView
|
|
2846
2858
|
}
|
|
2847
2859
|
}, [Vue.h(StartEndPoint, {
|
|
2848
2860
|
"attrs": {
|
|
@@ -3888,11 +3900,10 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
3888
3900
|
const {
|
|
3889
3901
|
geoLoadingTitle,
|
|
3890
3902
|
recomendDescription,
|
|
3891
|
-
noRecomendDescription,
|
|
3892
3903
|
unavailableTitle
|
|
3893
3904
|
} = props;
|
|
3894
3905
|
const title = geoLoading.value ? geoLoadingTitle : !availableRef.value ? unavailableTitle : (_a2 = centerPlace.name) != null ? _a2 : DEFAULT_PLACE_NAME;
|
|
3895
|
-
const description = !availableRef.value ? void 0 : isElectedRef.value ? recomendDescription :
|
|
3906
|
+
const description = !availableRef.value ? void 0 : isElectedRef.value ? recomendDescription : void 0;
|
|
3896
3907
|
return Vue.h(HeycarMap, {
|
|
3897
3908
|
"attrs": {
|
|
3898
3909
|
"center": centerPoint.value,
|
|
@@ -3922,7 +3933,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
3922
3933
|
}
|
|
3923
3934
|
})]);
|
|
3924
3935
|
};
|
|
3925
|
-
}).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "
|
|
3936
|
+
}).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "getDefaultCenterPlace", "loading", "mapContext"]);
|
|
3926
3937
|
const BEIJIN_POINT = [116.2317, 39.5427];
|
|
3927
3938
|
const isPlace = (place) => {
|
|
3928
3939
|
return place.lng !== void 0 && place.lat !== void 0;
|
|
@@ -4715,6 +4726,7 @@ const BusinessTaxiEndMap = defineSetup(function BusinessTaxiEndMap2(props) {
|
|
|
4715
4726
|
autoFitTimeout: 5e3,
|
|
4716
4727
|
padding: [25, 20, 15, 15]
|
|
4717
4728
|
});
|
|
4729
|
+
const deferedSetFitView = pipeDefer(registerFitVeiw.setFitView);
|
|
4718
4730
|
return () => {
|
|
4719
4731
|
const {
|
|
4720
4732
|
from,
|
|
@@ -4728,6 +4740,9 @@ const BusinessTaxiEndMap = defineSetup(function BusinessTaxiEndMap2(props) {
|
|
|
4728
4740
|
"zoom": 3,
|
|
4729
4741
|
"mapRef": setMap,
|
|
4730
4742
|
"touchEnable": false
|
|
4743
|
+
},
|
|
4744
|
+
"on": {
|
|
4745
|
+
"resize": deferedSetFitView
|
|
4731
4746
|
}
|
|
4732
4747
|
}, [isReady && Vue.h(SectionEndService, {
|
|
4733
4748
|
"attrs": {
|
|
@@ -4749,6 +4764,7 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
|
|
|
4749
4764
|
renderStartSerivceTitle,
|
|
4750
4765
|
renderInServiceTitle
|
|
4751
4766
|
} = props;
|
|
4767
|
+
const deferedSetFitView = pipeDefer(registerOverlay.setFitView);
|
|
4752
4768
|
const {
|
|
4753
4769
|
geoPosition,
|
|
4754
4770
|
geoError
|
|
@@ -4784,6 +4800,9 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
|
|
|
4784
4800
|
"zoom": 13,
|
|
4785
4801
|
"mapRef": mapRef,
|
|
4786
4802
|
"touchEnable": touchEnable
|
|
4803
|
+
},
|
|
4804
|
+
"on": {
|
|
4805
|
+
"resize": deferedSetFitView
|
|
4787
4806
|
}
|
|
4788
4807
|
}, [driverStatus === "dispatching" ? Vue.h(SectionDispatching, {
|
|
4789
4808
|
"attrs": {
|
package/dist/index.js
CHANGED
|
@@ -1858,6 +1858,7 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
|
|
|
1858
1858
|
onDragStart,
|
|
1859
1859
|
onDragEnd,
|
|
1860
1860
|
onZoomEnd,
|
|
1861
|
+
onResize,
|
|
1861
1862
|
mapRef: setMap,
|
|
1862
1863
|
vectorMapForeign = "style_zh_cn",
|
|
1863
1864
|
...defaultOptions
|
|
@@ -1924,7 +1925,12 @@ const Amap = defineSetup(function Amap2(props, { slots, emit }) {
|
|
|
1924
1925
|
{ name: "mask", defaultValue: [] },
|
|
1925
1926
|
{ name: "labelRejectMask", defaultValue: false }
|
|
1926
1927
|
]);
|
|
1927
|
-
watchPostEffectForAMapEvent(mapRef, props, emit, [
|
|
1928
|
+
watchPostEffectForAMapEvent(mapRef, props, emit, [
|
|
1929
|
+
"onDragStart",
|
|
1930
|
+
"onDragEnd",
|
|
1931
|
+
"onZoomEnd",
|
|
1932
|
+
"onResize"
|
|
1933
|
+
]);
|
|
1928
1934
|
return () => {
|
|
1929
1935
|
var _a;
|
|
1930
1936
|
return h("div", { ref: elementRef, class: amap }, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
@@ -2018,7 +2024,7 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2018
2024
|
emit
|
|
2019
2025
|
}) {
|
|
2020
2026
|
const payload = useMapSupplier();
|
|
2021
|
-
const
|
|
2027
|
+
const gmapHandleDargEnd = ({
|
|
2022
2028
|
target
|
|
2023
2029
|
}) => {
|
|
2024
2030
|
const {
|
|
@@ -2027,7 +2033,7 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2027
2033
|
} = target.getCenter();
|
|
2028
2034
|
emit("dragEnd", [lng(), lat()]);
|
|
2029
2035
|
};
|
|
2030
|
-
const
|
|
2036
|
+
const amapHandleDragEnd = ({
|
|
2031
2037
|
target
|
|
2032
2038
|
}) => {
|
|
2033
2039
|
const {
|
|
@@ -2036,6 +2042,7 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2036
2042
|
} = target.getCenter();
|
|
2037
2043
|
emit("dragEnd", [lng, lat]);
|
|
2038
2044
|
};
|
|
2045
|
+
const handleResize = () => emit("resize");
|
|
2039
2046
|
return () => {
|
|
2040
2047
|
var _a, _b, _c;
|
|
2041
2048
|
const {
|
|
@@ -2073,7 +2080,7 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2073
2080
|
"panControl": touchEnable
|
|
2074
2081
|
},
|
|
2075
2082
|
"on": {
|
|
2076
|
-
"dragEnd":
|
|
2083
|
+
"dragEnd": gmapHandleDargEnd
|
|
2077
2084
|
}
|
|
2078
2085
|
}, [children]);
|
|
2079
2086
|
default:
|
|
@@ -2093,7 +2100,8 @@ const HeycarMap = defineLagecySetup(function HeycarMap2(props, {
|
|
|
2093
2100
|
"pitchEnable": touchEnable
|
|
2094
2101
|
},
|
|
2095
2102
|
"on": {
|
|
2096
|
-
"dragEnd":
|
|
2103
|
+
"dragEnd": amapHandleDragEnd,
|
|
2104
|
+
"resize": handleResize
|
|
2097
2105
|
}
|
|
2098
2106
|
}, [children]);
|
|
2099
2107
|
}
|
|
@@ -2828,6 +2836,7 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props)
|
|
|
2828
2836
|
renderDescription
|
|
2829
2837
|
} = props;
|
|
2830
2838
|
const fittableRegistryOverlay = createFittableRegisterOverlay(registerOverlay);
|
|
2839
|
+
const deferedSetFitView = pipeDefer(registerOverlay.setFitView);
|
|
2831
2840
|
return () => {
|
|
2832
2841
|
const {
|
|
2833
2842
|
from: fromPlace,
|
|
@@ -2841,6 +2850,9 @@ const BusinessQuotingMap = defineLagecySetup(function BusinessQuotingMap2(props)
|
|
|
2841
2850
|
"mapRef": mapRef,
|
|
2842
2851
|
"center": from,
|
|
2843
2852
|
"zoom": 13
|
|
2853
|
+
},
|
|
2854
|
+
"on": {
|
|
2855
|
+
"resize": deferedSetFitView
|
|
2844
2856
|
}
|
|
2845
2857
|
}, [h(StartEndPoint, {
|
|
2846
2858
|
"attrs": {
|
|
@@ -3886,11 +3898,10 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
3886
3898
|
const {
|
|
3887
3899
|
geoLoadingTitle,
|
|
3888
3900
|
recomendDescription,
|
|
3889
|
-
noRecomendDescription,
|
|
3890
3901
|
unavailableTitle
|
|
3891
3902
|
} = props;
|
|
3892
3903
|
const title = geoLoading.value ? geoLoadingTitle : !availableRef.value ? unavailableTitle : (_a2 = centerPlace.name) != null ? _a2 : DEFAULT_PLACE_NAME;
|
|
3893
|
-
const description = !availableRef.value ? void 0 : isElectedRef.value ? recomendDescription :
|
|
3904
|
+
const description = !availableRef.value ? void 0 : isElectedRef.value ? recomendDescription : void 0;
|
|
3894
3905
|
return h(HeycarMap, {
|
|
3895
3906
|
"attrs": {
|
|
3896
3907
|
"center": centerPoint.value,
|
|
@@ -3920,7 +3931,7 @@ const BusinessRecomendPlaceMap = defineLagecySetup(function BusinessRecomendPlac
|
|
|
3920
3931
|
}
|
|
3921
3932
|
})]);
|
|
3922
3933
|
};
|
|
3923
|
-
}).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "
|
|
3934
|
+
}).props(["log", "geoLoadingTitle", "unavailableTitle", "recomendDescription", "fallback", "geoDefaultPosition", "getRecomendPlace", "getDefaultCenterPlace", "loading", "mapContext"]);
|
|
3924
3935
|
const BEIJIN_POINT = [116.2317, 39.5427];
|
|
3925
3936
|
const isPlace = (place) => {
|
|
3926
3937
|
return place.lng !== void 0 && place.lat !== void 0;
|
|
@@ -4713,6 +4724,7 @@ const BusinessTaxiEndMap = defineSetup(function BusinessTaxiEndMap2(props) {
|
|
|
4713
4724
|
autoFitTimeout: 5e3,
|
|
4714
4725
|
padding: [25, 20, 15, 15]
|
|
4715
4726
|
});
|
|
4727
|
+
const deferedSetFitView = pipeDefer(registerFitVeiw.setFitView);
|
|
4716
4728
|
return () => {
|
|
4717
4729
|
const {
|
|
4718
4730
|
from,
|
|
@@ -4726,6 +4738,9 @@ const BusinessTaxiEndMap = defineSetup(function BusinessTaxiEndMap2(props) {
|
|
|
4726
4738
|
"zoom": 3,
|
|
4727
4739
|
"mapRef": setMap,
|
|
4728
4740
|
"touchEnable": false
|
|
4741
|
+
},
|
|
4742
|
+
"on": {
|
|
4743
|
+
"resize": deferedSetFitView
|
|
4729
4744
|
}
|
|
4730
4745
|
}, [isReady && h(SectionEndService, {
|
|
4731
4746
|
"attrs": {
|
|
@@ -4747,6 +4762,7 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
|
|
|
4747
4762
|
renderStartSerivceTitle,
|
|
4748
4763
|
renderInServiceTitle
|
|
4749
4764
|
} = props;
|
|
4765
|
+
const deferedSetFitView = pipeDefer(registerOverlay.setFitView);
|
|
4750
4766
|
const {
|
|
4751
4767
|
geoPosition,
|
|
4752
4768
|
geoError
|
|
@@ -4782,6 +4798,9 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
|
|
|
4782
4798
|
"zoom": 13,
|
|
4783
4799
|
"mapRef": mapRef,
|
|
4784
4800
|
"touchEnable": touchEnable
|
|
4801
|
+
},
|
|
4802
|
+
"on": {
|
|
4803
|
+
"resize": deferedSetFitView
|
|
4785
4804
|
}
|
|
4786
4805
|
}, [driverStatus === "dispatching" ? h(SectionDispatching, {
|
|
4787
4806
|
"attrs": {
|
package/package.json
CHANGED
package/todo.md
CHANGED
|
@@ -2,6 +2,7 @@ https://dawchihliou.github.io/articles/building-custom-google-maps-marker-react-
|
|
|
2
2
|
|
|
3
3
|
2. Google 地址名称太长
|
|
4
4
|
3. 高德地图加载期间出现大量的请求
|
|
5
|
+
4. 做完其他事情进入首页,变成了获取定位失败,但其实 gps 是 ok 的,因为刷新页面是有点位的
|
|
5
6
|
|
|
6
7
|
郝瑞
|
|
7
8
|
|
|
@@ -19,10 +20,6 @@ https://dawchihliou.github.io/articles/building-custom-google-maps-marker-react-
|
|
|
19
20
|
|
|
20
21
|
- 4772
|
|
21
22
|
|
|
22
|
-
谭瑞平
|
|
23
|
-
|
|
24
|
-
- 5145 关闭浏览器再打开,sensor 失效了
|
|
25
|
-
|
|
26
23
|
测试环境看下
|
|
27
24
|
|
|
28
25
|
- 4903
|
|
@@ -34,7 +31,6 @@ https://dawchihliou.github.io/articles/building-custom-google-maps-marker-react-
|
|
|
34
31
|
- 5017
|
|
35
32
|
- 5036
|
|
36
33
|
- 5092
|
|
37
|
-
- 5095 大概率可以关掉
|
|
38
34
|
- 5223
|
|
39
35
|
- 5225
|
|
40
36
|
- 5229 优先看
|
|
@@ -80,3 +76,7 @@ setView 类 bug
|
|
|
80
76
|
- 4836
|
|
81
77
|
- 4915
|
|
82
78
|
- 5228
|
|
79
|
+
|
|
80
|
+
0.4.8
|
|
81
|
+
|
|
82
|
+
- 5014
|