@carto/ps-react-maps 1.5.1 → 1.6.0
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-event-manager.hook';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventManager } from 'mjolnir.js';
|
|
2
|
+
type UseEventManagerProps = {
|
|
3
|
+
mapId: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Custom hook that provides an event manager for a specific map.
|
|
7
|
+
* The event manager is responsible for handling user interactions with the map.
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} props - The hook props.
|
|
10
|
+
* @param {string} props.mapId - The ID of the map.
|
|
11
|
+
* @returns {EventManager | null} The event manager instance, or null if the map is not loaded or not using Google Maps.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useEventManager({ mapId }: UseEventManagerProps): EventManager | null;
|
|
14
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carto/ps-react-maps",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "CARTO's Professional Service React Maps library",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -29,14 +29,12 @@
|
|
|
29
29
|
"storybook:build": "storybook build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"convert-units": "3.0.0-beta.6",
|
|
33
32
|
"@nebula.gl/edit-modes": "1.0.4",
|
|
34
33
|
"@nebula.gl/layers": "1.0.4",
|
|
34
|
+
"convert-units": "3.0.0-beta.6",
|
|
35
35
|
"mjolnir.js": "2.7.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@carto/react-basemaps": "2.3.13",
|
|
39
|
-
"@deck.gl/core": "8.9.35",
|
|
40
38
|
"@deck.gl/google-maps": "8.9.35",
|
|
41
39
|
"@deck.gl/react": "8.9.35",
|
|
42
40
|
"@react-google-maps/api": "2.19.3",
|
|
@@ -45,6 +43,8 @@
|
|
|
45
43
|
"react-map-gl": "7.1.7"
|
|
46
44
|
},
|
|
47
45
|
"peerDependencies": {
|
|
46
|
+
"@deck.gl/core": "8.x",
|
|
47
|
+
"@deck.gl/layers": "8.x",
|
|
48
48
|
"@nebula.gl/edit-modes": "1.x",
|
|
49
49
|
"@nebula.gl/layers": "1.x",
|
|
50
50
|
"convert-units": "3.x",
|