@tracktor/map 1.6.0 → 1.6.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.
@@ -1,3 +1,3 @@
1
- import { IsochroneProps } from '../../types/MarkerMapProps';
1
+ import { IsochroneProps } from '../../types/MapViewProps.ts';
2
2
  declare const _default: import('react').MemoExoticComponent<({ origin, profile, intervals, onIsochroneLoaded }: IsochroneProps) => import("react/jsx-runtime").JSX.Element | null>;
3
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Engine, ItineraryLineStyle, Profile } from '../../types/MarkerMapProps';
1
+ import { Engine, ItineraryLineStyle, Profile } from '../../types/MapViewProps.ts';
2
2
  type ItineraryProps = {
3
3
  from?: [number, number];
4
4
  to?: [number, number];
@@ -1,4 +1,4 @@
1
1
  import { ReactElement } from 'react';
2
- import { MarkerMapProps } from '../../types/MarkerMapProps';
3
- declare const _default: import('react').MemoExoticComponent<({ containerStyle, square, loading, height, width, center, zoom, popupMaxWidth, openPopup, openPopupOnHover, markers, fitBounds, fitBoundsPadding, fitBoundDuration, fitBoundsAnimationKey, disableAnimation, mapStyle: baseMapStyle, onMapClick, baseMapView, cooperativeGestures, doubleClickZoom, projection, theme: themeOverride, features, from, to, profile, itineraryLineStyle, engine, findNearestMarker, onNearestFound, isochrone, }: MarkerMapProps) => ReactElement>;
2
+ import { MapViewProps } from '../../types/MapViewProps.ts';
3
+ declare const _default: import('react').MemoExoticComponent<({ containerStyle, square, loading, height, width, center, zoom, popupMaxWidth, openPopup, openPopupOnHover, markers, fitBounds, fitBoundsPadding, fitBoundDuration, fitBoundsAnimationKey, disableAnimation, mapStyle: baseMapStyle, onMapClick, baseMapView, cooperativeGestures, doubleClickZoom, projection, theme: themeOverride, features, from, to, profile, itineraryLineStyle, engine, findNearestMarker, onNearestFound, isochrone, }: MapViewProps) => ReactElement>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Engine, FindNearestMarkerParams } from '../../types/MarkerMapProps';
1
+ import { Engine, FindNearestMarkerParams } from '../../types/MapViewProps.ts';
2
2
  export interface NearestResult {
3
3
  id: number | string;
4
4
  point: [number, number];
package/dist/main.d.ts CHANGED
@@ -3,7 +3,7 @@ export * from './context/MapProvider';
3
3
  export { default as MapProvider } from './context/MapProvider';
4
4
  export * from './features/MapView/MapView.tsx';
5
5
  export { default as MapView } from './features/MapView/MapView.tsx';
6
- export * from './types/MarkerMapProps';
6
+ export * from './types/MapViewProps.ts';
7
7
  export * from './types/MarkerProps';
8
8
  export { default as isPointInGeoJSON } from './utils/isPointInGeoJSON.ts';
9
9
  export * from './utils/isValidLatLng';
@@ -30,7 +30,7 @@ export interface FindNearestMarkerParams {
30
30
  onNearestFound?: (id: number | string | null, coords: [number, number] | null, distanceMeters: number) => void;
31
31
  profile?: Profile;
32
32
  }
33
- export interface MarkerMapProps {
33
+ export interface MapViewProps {
34
34
  /**
35
35
  * Automatically adjusts the map's zoom and center
36
36
  * to ensure all markers are visible within the viewport.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A React library to easily display map with multiple tools",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
- "version": "1.6.0",
6
+ "version": "1.6.1",
7
7
  "type": "module",
8
8
  "main": "dist/main.umd.cjs",
9
9
  "module": "dist/main.js",