@carto/ps-react-maps 0.0.1-alpha.10 → 0.0.1-alpha.12
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,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import type { PickingInfo, MapViewState } from '@deck.gl/core/typed';
|
|
3
|
+
import type { GoogleMapsOverlay, GoogleMapsOverlayProps } from '@deck.gl/google-maps/typed';
|
|
4
|
+
import type { DeckGLProps, DeckGLRef } from '@deck.gl/react/typed';
|
|
5
5
|
import type { StyleSpecification } from 'maplibre-gl';
|
|
6
6
|
import type { Properties } from 'csstype';
|
|
7
|
-
import type { MutableRefObject, ReactNode
|
|
8
|
-
import {
|
|
7
|
+
import type { MutableRefObject, ReactNode } from 'react';
|
|
8
|
+
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;
|
|
@@ -31,9 +31,10 @@ export type MapContextInterface = {
|
|
|
31
31
|
export type Basemap = (typeof GMapsBasemap)[keyof typeof GMapsBasemap] | (typeof CartoBasemapsNames)[keyof typeof CartoBasemapsNames] | string | StyleSpecification;
|
|
32
32
|
export type CommonProps = {
|
|
33
33
|
id: string;
|
|
34
|
-
basemap
|
|
35
|
-
instanceRef?:
|
|
34
|
+
basemap: Basemap;
|
|
35
|
+
instanceRef?: MutableRefObject<InstanceMapRef>;
|
|
36
36
|
overlayRef?: MutableRefObject<OverlayMapRef>;
|
|
37
|
+
viewState: DeckGLProps['viewState'];
|
|
37
38
|
} & DeckGLProps;
|
|
38
39
|
export type MapsProps = DeckGLMapsProps & GoogleMapsProps;
|
|
39
40
|
export type InstanceMapRef = GoogleMapsOverlay | DeckGLRef | null;
|
|
@@ -49,3 +50,9 @@ export type GoogleMapsProps = {
|
|
|
49
50
|
version?: string;
|
|
50
51
|
width?: string | undefined;
|
|
51
52
|
} & CommonProps & GoogleMapsOverlayProps;
|
|
53
|
+
export type Tooltip = {
|
|
54
|
+
text?: string | undefined;
|
|
55
|
+
html?: string | undefined;
|
|
56
|
+
className?: string | undefined;
|
|
57
|
+
style?: Partial<CSSStyleDeclaration> | undefined;
|
|
58
|
+
} & PickingInfo;
|