@tracktor/map 0.2.1 → 0.2.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.
|
@@ -5,6 +5,7 @@ interface MapBoxProps {
|
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
containerStyle?: SxProps;
|
|
7
7
|
square?: boolean;
|
|
8
|
+
error?: string | boolean;
|
|
8
9
|
}
|
|
9
10
|
declare const _default: import('react').ForwardRefExoticComponent<MapBoxProps & import('react').RefAttributes<HTMLElement>>;
|
|
10
11
|
export default _default;
|
|
@@ -14,10 +14,11 @@ export declare const DEFAULT_CENTER_LAT = 46.8677;
|
|
|
14
14
|
* - Handles map click events with a provided callback
|
|
15
15
|
* - Supports customizable flyTo behavior, zoom levels, and map style
|
|
16
16
|
*/
|
|
17
|
-
declare const useMarkerMap: ({ markers, loading, center, flyToDuration, fitBoundDuration, fitBounds, disableFlyTo, fitBoundsPadding, mapStyle, zoom, zoomFlyFrom,
|
|
17
|
+
declare const useMarkerMap: ({ markers, loading, center, openPopup, onMapClick, flyToDuration, fitBoundDuration, fitBounds, disableFlyTo, fitBoundsPadding, mapStyle, zoom, zoomFlyFrom, }: MarkerMapProps) => {
|
|
18
18
|
loading: boolean | undefined;
|
|
19
19
|
map: import('react').RefObject<Map | null>;
|
|
20
20
|
mapContainer: import('react').RefObject<HTMLDivElement | null>;
|
|
21
21
|
markers: import('../../main.ts').MarkerProps[] | undefined;
|
|
22
|
+
webGLSupported: boolean;
|
|
22
23
|
};
|
|
23
24
|
export default useMarkerMap;
|