Skip to content

Commit 8cb1bca

Browse files
committed
fix MapIdentify geometry; update imports
1 parent 03bc4a2 commit 8cb1bca

15 files changed

Lines changed: 189 additions & 24 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/map-gl-native/jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ export default {
33
setupFiles: ["./setup-jest.js"],
44
testMatch: ["**/__tests__/**/*.js?(x)"],
55
transformIgnorePatterns: [],
6+
moduleNameMapper: {
7+
"@wq/map-gl-native": "<rootDir>/src/index.js",
8+
},
69
};

packages/map-gl-native/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/map-gl-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wq/map-gl-native",
3-
"version": "3.0.0-alpha.0",
3+
"version": "3.0.0-alpha.1",
44
"description": "React Native & Expo bindings for @wq/map-gl",
55
"type": "module",
66
"main": "src/index.js",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import * as mapgl from "@wq/map-gl/src/index.native.js";
2+
3+
test("it loads", () => {
4+
for (const key in mapgl) {
5+
expect(mapgl).toHaveProperty(key, expect.anything());
6+
}
7+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
export default function FIXME() {
22
return null;
33
}
4+
5+
export function InMapPopup() {
6+
return null;
7+
}
8+
9+
export function ModalPopup() {
10+
return null;
11+
}
12+
13+
export function HighlightContent() {
14+
return null;
15+
}

packages/map-gl-native/src/components/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@ import Map, { createMapInstance } from "./Map.js";
22
import MapInteraction from "./MapInteraction.js";
33
import MapAutoZoom from "./MapAutoZoom.js";
44
import MapIdentify from "./MapIdentify.js";
5-
import HighlightPopup from "./HighlightPopup.js";
5+
import HighlightPopup, {
6+
InMapPopup,
7+
ModalPopup,
8+
HighlightContent,
9+
} from "./HighlightPopup.js";
610

711
export {
812
Map,
913
MapInteraction,
1014
MapAutoZoom,
1115
MapIdentify,
1216
HighlightPopup,
17+
InMapPopup,
18+
ModalPopup,
19+
HighlightContent,
1320
createMapInstance,
1421
};

packages/map-gl-native/src/hooks.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,7 @@ export function useBasemapStyle(basemap) {
7878
};
7979
}
8080
}
81+
82+
export function useStyleProp() {
83+
return null;
84+
}

packages/map-gl-native/src/index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ import {
55
MapAutoZoom,
66
MapIdentify,
77
HighlightPopup,
8+
InMapPopup,
9+
ModalPopup,
10+
HighlightContent,
811
createMapInstance,
912
} from "./components/index.js";
1013
import { Geojson, Highlight, VectorTile, Tile } from "./overlays/index.js";
11-
import { useMapInstance, useGeolocation, useBasemapStyle } from "./hooks.js";
14+
import {
15+
useMapInstance,
16+
useGeolocation,
17+
useBasemapStyle,
18+
useStyleProp,
19+
} from "./hooks.js";
1220

1321
export {
1422
MapProvider,
@@ -17,6 +25,9 @@ export {
1725
MapAutoZoom,
1826
MapIdentify,
1927
HighlightPopup,
28+
InMapPopup,
29+
ModalPopup,
30+
HighlightContent,
2031
Geojson,
2132
Highlight,
2233
VectorTile,
@@ -25,4 +36,5 @@ export {
2536
useMapInstance,
2637
useGeolocation,
2738
useBasemapStyle,
39+
useStyleProp,
2840
};

packages/map-gl-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wq/map-gl-web",
3-
"version": "3.0.0-alpha.1",
3+
"version": "3.0.0-alpha.2",
44
"description": "Web bindings for for @wq/map-gl",
55
"type": "module",
66
"main": "index.js",

0 commit comments

Comments
 (0)