@tracktor/map 0.8.0 → 0.8.1
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/hooks/useAnimationMap.d.ts +2 -3
- package/dist/hooks/useMarkers.d.ts +4 -2
- package/dist/main.js +298 -296
- package/dist/main.umd.cjs +9 -9
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Map } from 'mapbox-gl';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
import { MarkerProps } from '../types/MarkerProps.ts';
|
|
4
4
|
type UseAnimationMapProps = {
|
|
@@ -9,8 +9,7 @@ type UseAnimationMapProps = {
|
|
|
9
9
|
fitBoundsPadding?: number;
|
|
10
10
|
isMapInitialized: boolean;
|
|
11
11
|
markers?: MarkerProps[];
|
|
12
|
-
center?: LngLatLike | number[];
|
|
13
12
|
fitBoundsAnimationKey?: unknown;
|
|
14
13
|
};
|
|
15
|
-
declare const useAnimationMap: ({ map, disableAnimation, fitBounds, markers, fitBoundDuration, fitBoundsPadding, isMapInitialized,
|
|
14
|
+
declare const useAnimationMap: ({ map, disableAnimation, fitBounds, markers, fitBoundDuration, fitBoundsPadding, isMapInitialized, fitBoundsAnimationKey, }: UseAnimationMapProps) => void;
|
|
16
15
|
export default useAnimationMap;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Palette } from '@tracktor/design-system';
|
|
2
|
-
import { Map } from 'mapbox-gl';
|
|
2
|
+
import { LngLatLike, Map } from 'mapbox-gl';
|
|
3
3
|
import { RefObject } from 'react';
|
|
4
4
|
import { MarkerProps } from '../types/MarkerProps.ts';
|
|
5
5
|
type UseInitializeMapProps = {
|
|
@@ -7,6 +7,8 @@ type UseInitializeMapProps = {
|
|
|
7
7
|
markers?: MarkerProps[];
|
|
8
8
|
palette: Palette;
|
|
9
9
|
isMapInitialized: boolean;
|
|
10
|
+
fitBounds?: boolean;
|
|
11
|
+
center?: LngLatLike | number[];
|
|
10
12
|
};
|
|
11
|
-
declare const useMarkers: ({ map, markers, palette, isMapInitialized }: UseInitializeMapProps) => void;
|
|
13
|
+
declare const useMarkers: ({ map, markers, palette, isMapInitialized, fitBounds, center }: UseInitializeMapProps) => void;
|
|
12
14
|
export default useMarkers;
|