@heycar/heycars-map 0.7.5 → 0.7.6
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 +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7081,6 +7081,19 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
|
|
|
7081
7081
|
)]);
|
|
7082
7082
|
};
|
|
7083
7083
|
}).props(["bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]);
|
|
7084
|
+
const useBusinessAlarm = (props) => {
|
|
7085
|
+
const emptyPlaceName = props == null ? void 0 : props.emptyPlaceName;
|
|
7086
|
+
const { geoPosition, geoError } = useGeoLocation({
|
|
7087
|
+
onChange: ({ position }) => {
|
|
7088
|
+
updatePlace(position);
|
|
7089
|
+
}
|
|
7090
|
+
});
|
|
7091
|
+
const { updatePlace, place } = useMapPlace({
|
|
7092
|
+
pointRef: geoPosition,
|
|
7093
|
+
emptyPlaceName: emptyPlaceName != null ? emptyPlaceName : ""
|
|
7094
|
+
});
|
|
7095
|
+
return { place, geoError };
|
|
7096
|
+
};
|
|
7084
7097
|
const useBusinessQuotingMap = () => {
|
|
7085
7098
|
const { setMap, mapRef } = useHeycarMap();
|
|
7086
7099
|
const { registerFitVeiw, setFitView } = useMapFitView({
|
|
@@ -7152,6 +7165,7 @@ exports.TaxiCar = TaxiCar;
|
|
|
7152
7165
|
exports.WalkingLine = WalkingLine;
|
|
7153
7166
|
exports.WalkingRoute = WalkingRoute;
|
|
7154
7167
|
exports.WaveCircle = WaveCircle;
|
|
7168
|
+
exports.useBusinessAlarm = useBusinessAlarm;
|
|
7155
7169
|
exports.useBusinessQuotingMap = useBusinessQuotingMap;
|
|
7156
7170
|
exports.useBusinessRecomendPlaceMap = useBusinessRecomendPlaceMap;
|
|
7157
7171
|
exports.useBusinessTaxiServiceMap = useBusinessTaxiServiceMap;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { WalkingLine } from "./business-components/WalkingLine";
|
|
|
16
16
|
export { WalkingRoute } from "./business-components/WalkingRoute";
|
|
17
17
|
export { WaveCircle } from "./business-components/WaveCircle";
|
|
18
18
|
export * from "./components/MapProvider";
|
|
19
|
+
export * from "./hooks-business/useBusinessAlarm";
|
|
19
20
|
export * from "./hooks-business/useBusinessQuotingMap";
|
|
20
21
|
export * from "./hooks-business/useBusinessRecomendPlaceMap";
|
|
21
22
|
export * from "./hooks-business/useBusinessTaxiServiceMap";
|
package/dist/index.js
CHANGED
|
@@ -7079,6 +7079,19 @@ const BusinessTaxiServiceMap = defineLagecySetup(function BusinessTaxiServiceMap
|
|
|
7079
7079
|
)]);
|
|
7080
7080
|
};
|
|
7081
7081
|
}).props(["bookDispatchingTitle", "dispatchingTitle", "driverArrivedTitle", "driverStatus", "fallback", "from", "getDriverPosition", "interval", "loading", "mapRef", "renderInServiceTitle", "renderStartSerivceTitle", "to", "registerOverlay"]);
|
|
7082
|
+
const useBusinessAlarm = (props) => {
|
|
7083
|
+
const emptyPlaceName = props == null ? void 0 : props.emptyPlaceName;
|
|
7084
|
+
const { geoPosition, geoError } = useGeoLocation({
|
|
7085
|
+
onChange: ({ position }) => {
|
|
7086
|
+
updatePlace(position);
|
|
7087
|
+
}
|
|
7088
|
+
});
|
|
7089
|
+
const { updatePlace, place } = useMapPlace({
|
|
7090
|
+
pointRef: geoPosition,
|
|
7091
|
+
emptyPlaceName: emptyPlaceName != null ? emptyPlaceName : ""
|
|
7092
|
+
});
|
|
7093
|
+
return { place, geoError };
|
|
7094
|
+
};
|
|
7082
7095
|
const useBusinessQuotingMap = () => {
|
|
7083
7096
|
const { setMap, mapRef } = useHeycarMap();
|
|
7084
7097
|
const { registerFitVeiw, setFitView } = useMapFitView({
|
|
@@ -7151,6 +7164,7 @@ export {
|
|
|
7151
7164
|
WalkingLine,
|
|
7152
7165
|
WalkingRoute,
|
|
7153
7166
|
WaveCircle,
|
|
7167
|
+
useBusinessAlarm,
|
|
7154
7168
|
useBusinessQuotingMap,
|
|
7155
7169
|
useBusinessRecomendPlaceMap,
|
|
7156
7170
|
useBusinessTaxiServiceMap,
|