@tracktor/map 1.0.3 → 1.0.5

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.
@@ -14,5 +14,5 @@ interface GetFeatureProps {
14
14
  *
15
15
  * @param {GetFeatureProps} options - Configuration params
16
16
  */
17
- declare const getFeature: ({ map, point }: GetFeatureProps) => (import('mapbox-gl').GeoJSONFeature & import('../types/typeguard').ClickedFeature) | null | undefined;
17
+ declare const getFeature: ({ map, point }: GetFeatureProps) => (import('mapbox-gl').GeoJSONFeature & import('./typeguard').ClickedFeature) | null | undefined;
18
18
  export default getFeature;
@@ -1,4 +1,4 @@
1
- import { Palette, Theme } from '@tracktor/design-system';
1
+ import { Palette } from '@tracktor/design-system';
2
2
  import { Map } from 'mapbox-gl';
3
3
  import { ComponentType, RefObject } from 'react';
4
4
  import { MarkerProps } from '../types/MarkerProps.ts';
@@ -19,7 +19,6 @@ export interface CustomMarkerMapProps {
19
19
  IconComponent?: ComponentType<any>;
20
20
  };
21
21
  type: string;
22
- theme?: Theme;
23
22
  }
24
23
  interface GenerateMarkersProps {
25
24
  palette: Palette;
@@ -29,7 +28,6 @@ interface LoadMarkersProps {
29
28
  map: RefObject<Map | null>;
30
29
  palette: Palette;
31
30
  markers: MarkerProps[];
32
- theme: Theme;
33
31
  }
34
32
  /**
35
33
  * Generates visual styles for map markers based on theme palette and marker type
@@ -71,5 +69,5 @@ export declare const generateMarkers: ({ palette, type }: GenerateMarkersProps)
71
69
  * @param {Palette} params.palette - Design system color palette
72
70
  * @param {MarkerProps[]} params.markers - Array of marker definitions
73
71
  */
74
- export declare const loadMarkers: ({ map, palette, markers, theme }: LoadMarkersProps) => void;
72
+ export declare const loadMarkers: ({ map, palette, markers }: LoadMarkersProps) => void;
75
73
  export {};
@@ -12,6 +12,14 @@ export interface ClickedFeature {
12
12
  properties: FeatureProperties;
13
13
  [key: string]: unknown;
14
14
  }
15
+ /**
16
+ * Type guard to check if the given geometry is a valid GeoJSON Point geometry
17
+ * @param geometry
18
+ */
15
19
  export declare const isFeatureGeometry: (geometry: unknown) => geometry is GeometryPoint;
20
+ /**
21
+ * Type guard to check if the given feature is a ClickedFeature
22
+ * @param feature
23
+ */
16
24
  export declare const isClickedFeature: (feature: unknown) => feature is ClickedFeature;
17
25
  export {};
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.0.3",
6
+ "version": "1.0.5",
7
7
  "type": "module",
8
8
  "main": "dist/main.umd.cjs",
9
9
  "module": "dist/main.js",