@carto/ps-react-maps 0.0.1-alpha.12 → 0.0.1-alpha.13
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.
|
@@ -9,7 +9,11 @@ import type { MapRef } from 'react-map-gl';
|
|
|
9
9
|
import { CartoBasemapsNames, GMapsBasemap } from './map-provider.const';
|
|
10
10
|
export type MapProviderProps = {
|
|
11
11
|
children: ReactNode;
|
|
12
|
-
maps:
|
|
12
|
+
maps: {
|
|
13
|
+
id: MapsProps['id'];
|
|
14
|
+
basemap: MapsProps['basemap'];
|
|
15
|
+
viewState: MapsProps['viewState'];
|
|
16
|
+
}[];
|
|
13
17
|
};
|
|
14
18
|
export type MapState = {
|
|
15
19
|
maps: Record<MapsProps['id'], MapsProps>;
|
|
@@ -34,7 +38,6 @@ export type CommonProps = {
|
|
|
34
38
|
basemap: Basemap;
|
|
35
39
|
instanceRef?: MutableRefObject<InstanceMapRef>;
|
|
36
40
|
overlayRef?: MutableRefObject<OverlayMapRef>;
|
|
37
|
-
viewState: DeckGLProps['viewState'];
|
|
38
41
|
} & DeckGLProps;
|
|
39
42
|
export type MapsProps = DeckGLMapsProps & GoogleMapsProps;
|
|
40
43
|
export type InstanceMapRef = GoogleMapsOverlay | DeckGLRef | null;
|