@carto/ps-react-maps 4.7.2 → 4.7.4
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.
- package/dist/index.js +886 -884
- package/dist/index.js.map +1 -1
- package/dist/types/maps/google-maps.d.ts +1 -1
- package/dist/types/maps/map-libre.d.ts +1 -1
- package/dist/types/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeckGLComponentProps } from '../types';
|
|
2
|
-
export declare function GoogleMaps({ id, instanceRef, basemap, layers, gmapsProps: { apiKey, APIProviderProps, ..._gmapsProps }, overlayRef, parameters, controller, onLoad, onViewStateChange, ...rest }: Omit<DeckGLComponentProps, 'onLoad'> & {
|
|
2
|
+
export declare function GoogleMaps({ id, instanceRef, basemap, layers, gmapsProps: { apiKey, APIProviderProps, ..._gmapsProps }, overlayRef, parameters, controller, onLoad, onIdle, onViewStateChange, ...rest }: Omit<DeckGLComponentProps, 'onLoad'> & {
|
|
3
3
|
onLoad: (event: {
|
|
4
4
|
type: 'deckgl' | 'load';
|
|
5
5
|
value: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeckGLComponentProps } from '../types';
|
|
2
|
-
export declare function MapLibre({ instanceRef, overlayRef, controller, id, layers, mapStyle, parameters, getCursor, getTooltip, onLoad, onViewStateChange, attributionProps, ...rest }: Omit<DeckGLComponentProps, 'onLoad'> & {
|
|
2
|
+
export declare function MapLibre({ instanceRef, overlayRef, controller, id, layers, mapStyle, parameters, getCursor, getTooltip, onLoad, onIdle, onViewStateChange, attributionProps, ...rest }: Omit<DeckGLComponentProps, 'onLoad'> & {
|
|
3
3
|
onLoad: (event: {
|
|
4
4
|
type: 'deckgl' | 'load';
|
|
5
5
|
value: boolean;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -35,12 +35,14 @@ export interface DeckGLComponentProps extends Omit<DeckGLProps, 'layers' | 'onLo
|
|
|
35
35
|
gmapsProps?: GmapsProps;
|
|
36
36
|
onLoad?: (value: boolean) => void;
|
|
37
37
|
attributionProps?: AttributionControlProps;
|
|
38
|
+
onIdle?: () => void;
|
|
38
39
|
}
|
|
39
40
|
export type ViewStateChange = ViewStateChangeParameters<MapViewState>;
|
|
40
41
|
export type ViewStateChangeCallback = (id: MapComponentProps['id'], props: MapViewState) => void;
|
|
41
42
|
export interface MapComponentProps extends Omit<DeckGLComponentProps, 'onViewStateChange' | 'layers' | 'controller'> {
|
|
42
43
|
id: NonNullable<DeckGLComponentProps['id']>;
|
|
43
44
|
onViewStateChange?: (props: ViewStateChangeParameters<MapViewState>, callback: ViewStateChangeCallback) => void;
|
|
45
|
+
onIdle?: () => void;
|
|
44
46
|
}
|
|
45
47
|
export interface LayersLoadedProps {
|
|
46
48
|
id: MapComponentProps['id'];
|