@tracktor/map 0.8.1 → 0.8.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { MarkerMapProps } from '../../types/MarkerMapProps.ts';
|
|
3
|
-
declare const _default: import('react').MemoExoticComponent<({ containerStyle, square, height, width, ...props }: MarkerMapProps) => ReactElement>;
|
|
3
|
+
declare const _default: import('react').MemoExoticComponent<({ containerStyle, square, loading, height, width, ...props }: MarkerMapProps) => ReactElement>;
|
|
4
4
|
export default _default;
|
|
@@ -13,10 +13,9 @@ export declare const DEFAULT_CENTER_LAT = 46.8677;
|
|
|
13
13
|
* - Adjusts the map center or fits bounds based on markers
|
|
14
14
|
* - Handles map click events with a provided callback
|
|
15
15
|
*/
|
|
16
|
-
declare const useMarkerMap: ({ markers,
|
|
16
|
+
declare const useMarkerMap: ({ markers, center, disableAnimation, openPopup, onMapClick, projection, theme, mapStyle, fitBoundsAnimationKey, baseMapView, zoom, fitBoundsPadding, fitBoundDuration, fitBounds, cooperativeGestures, doubleClickZoom, }: MarkerMapProps) => {
|
|
17
17
|
containerRef: import('react').RefObject<string | HTMLDivElement>;
|
|
18
18
|
isMapInitialized: boolean;
|
|
19
|
-
loading: boolean | undefined;
|
|
20
19
|
map: import('react').RefObject<Map | null>;
|
|
21
20
|
markers: import('../../main').MarkerProps[];
|
|
22
21
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Map } from 'mapbox-gl';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
import { MarkerProps } from '../types/MarkerProps.ts';
|
|
4
|
-
type
|
|
4
|
+
type useFitBoundsProps = {
|
|
5
5
|
map: RefObject<Map | null>;
|
|
6
6
|
disableAnimation: boolean | undefined;
|
|
7
7
|
fitBounds?: boolean;
|
|
@@ -11,5 +11,5 @@ type UseAnimationMapProps = {
|
|
|
11
11
|
markers?: MarkerProps[];
|
|
12
12
|
fitBoundsAnimationKey?: unknown;
|
|
13
13
|
};
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
14
|
+
declare const useFitBounds: ({ map, disableAnimation, fitBounds, markers, fitBoundDuration, fitBoundsPadding, isMapInitialized, fitBoundsAnimationKey, }: useFitBoundsProps) => void;
|
|
15
|
+
export default useFitBounds;
|