@tracktor/map 0.7.1 → 0.8.0

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.
@@ -12,9 +12,8 @@ export declare const DEFAULT_CENTER_LAT = 46.8677;
12
12
  * - Adds popups to specific markers when requested
13
13
  * - Adjusts the map center or fits bounds based on markers
14
14
  * - Handles map click events with a provided callback
15
- * - Supports customizable flyTo behavior, zoom levels, and map style
16
15
  */
17
- declare const useMarkerMap: ({ markers, loading, center, disableAnimation, openPopup, onMapClick, projection, theme, mapStyle, baseMapView, zoom, fitBoundsPadding, zoomFlyFrom, flyToDuration, fitBoundDuration, fitBounds, disableFlyTo, cooperativeGestures, doubleClickZoom, }: MarkerMapProps) => {
16
+ declare const useMarkerMap: ({ markers, loading, center, disableAnimation, openPopup, onMapClick, projection, theme, mapStyle, fitBoundsAnimationKey, baseMapView, zoom, fitBoundsPadding, fitBoundDuration, fitBounds, cooperativeGestures, doubleClickZoom, }: MarkerMapProps) => {
18
17
  containerRef: import('react').RefObject<string | HTMLDivElement>;
19
18
  isMapInitialized: boolean;
20
19
  loading: boolean | undefined;
@@ -3,16 +3,14 @@ import { RefObject } from 'react';
3
3
  import { MarkerProps } from '../types/MarkerProps.ts';
4
4
  type UseAnimationMapProps = {
5
5
  map: RefObject<Map | null>;
6
- disableFlyTo?: boolean;
7
6
  disableAnimation: boolean | undefined;
8
- flyToDuration?: number;
9
- zoom?: number;
10
7
  fitBounds?: boolean;
11
8
  fitBoundDuration?: number;
12
9
  fitBoundsPadding?: number;
13
10
  isMapInitialized: boolean;
14
11
  markers?: MarkerProps[];
15
12
  center?: LngLatLike | number[];
13
+ fitBoundsAnimationKey?: unknown;
16
14
  };
17
- declare const useAnimationMap: ({ map, disableFlyTo, disableAnimation, flyToDuration, zoom, fitBounds, markers, fitBoundDuration, fitBoundsPadding, isMapInitialized, center, }: UseAnimationMapProps) => void;
15
+ declare const useAnimationMap: ({ map, disableAnimation, fitBounds, markers, fitBoundDuration, fitBoundsPadding, isMapInitialized, center, fitBoundsAnimationKey, }: UseAnimationMapProps) => void;
18
16
  export default useAnimationMap;