@osm-editor-kit/street-imagery-react 0.1.0-alpha.14 → 0.1.0-alpha.15
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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/{PanoramaxPanel-NAKCJHT5.js → PanoramaxPanel-5P5LWMRY.js} +1 -1
- package/dist/{chunk-BZGY6BZC.js → chunk-R6BDVYWM.js} +1 -1
- package/dist/hooks/useProviderData.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/mapillary/useMapillaryFeatures.d.ts +5 -5
- package/dist/viewer-panels.js +1 -1
- package/package.json +7 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tobias Jordans / OSM Editor Kit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ import { PanoramaxWebViewerPanel } from '@osm-editor-kit/street-imagery-react/pa
|
|
|
75
75
|
<StreetLevelImageryViewer panoramaxPanel={PanoramaxWebViewerPanel} … />
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
Only then you need `@panoramax/web-viewer` (an optional peer dependency) and its Vite setup: see `vite.config.ts` of
|
|
78
|
+
Only then you need `@panoramax/web-viewer` (an optional peer dependency) and its Vite setup: see [`vite.config.ts` of the preview](https://github.com/osm-editor-kit/street-imagery/blob/main/apps/preview/vite.config.ts).
|
|
79
79
|
|
|
80
80
|
## Viewpoints and floating viewer
|
|
81
81
|
|
|
@@ -309,7 +309,7 @@ var PanoramaxDataProvider = class extends DataProviderBase {
|
|
|
309
309
|
this.itemRequests.set(id, request);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
await Promise.all(imageIds.
|
|
312
|
+
await Promise.all(imageIds.flatMap((id) => this.itemRequests.get(id) ?? []));
|
|
313
313
|
return imageIds.flatMap((id) => this.items.get(id) ?? []);
|
|
314
314
|
}
|
|
315
315
|
toImageEnt(item) {
|
|
@@ -10,7 +10,7 @@ export declare const previousDataWhile: (enabled: boolean) => typeof keepPreviou
|
|
|
10
10
|
type ProviderDataOptions = {
|
|
11
11
|
minZoom?: number;
|
|
12
12
|
};
|
|
13
|
-
export declare const useProviderPhotos: (providerId: ProviderId, bbox: Bbox | null, zoom: number, { minZoom }?: ProviderDataOptions) => import("@tanstack/react-query").UseQueryResult<
|
|
14
|
-
export declare const useProviderSequences: (providerId: ProviderId, bbox: Bbox | null, zoom: number, { minZoom }?: ProviderDataOptions) => import("@tanstack/react-query").UseQueryResult<
|
|
15
|
-
export declare const useProviderMapFeatures: (providerId: ProviderId, bbox: Bbox | null, zoom: number, { minZoom }?: ProviderDataOptions) => import("@tanstack/react-query").UseQueryResult<
|
|
13
|
+
export declare const useProviderPhotos: (providerId: ProviderId, bbox: Bbox | null, zoom: number, { minZoom }?: ProviderDataOptions) => import("@tanstack/react-query").UseQueryResult<import("@osm-editor-kit/street-imagery").NormalizedPhoto[], Error>;
|
|
14
|
+
export declare const useProviderSequences: (providerId: ProviderId, bbox: Bbox | null, zoom: number, { minZoom }?: ProviderDataOptions) => import("@tanstack/react-query").UseQueryResult<import("@osm-editor-kit/street-imagery").NormalizedSequence[], Error>;
|
|
15
|
+
export declare const useProviderMapFeatures: (providerId: ProviderId, bbox: Bbox | null, zoom: number, { minZoom }?: ProviderDataOptions) => import("@tanstack/react-query").UseQueryResult<import("@osm-editor-kit/street-imagery").NormalizedMapFeature[], Error>;
|
|
16
16
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1493,7 +1493,7 @@ function _temp(id) {
|
|
|
1493
1493
|
var MapillaryPanel = lazy(() => import('./MapillaryPanel-SOHGB7JA.js').then((module) => ({
|
|
1494
1494
|
default: module.MapillaryPanel
|
|
1495
1495
|
})));
|
|
1496
|
-
var PanoramaxPanel = lazy(() => import('./PanoramaxPanel-
|
|
1496
|
+
var PanoramaxPanel = lazy(() => import('./PanoramaxPanel-5P5LWMRY.js').then((module) => ({
|
|
1497
1497
|
default: module.PanoramaxPanel
|
|
1498
1498
|
})));
|
|
1499
1499
|
var ViewerPanelPlaceholder = () => {
|
|
@@ -6,7 +6,7 @@ import { type LngLat, type TargetShape } from '@osm-editor-kit/street-imagery';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const useMapillaryMapFeatureImages: (featureId: string | null | undefined, { shape }?: {
|
|
8
8
|
shape?: TargetShape;
|
|
9
|
-
}) => import("@tanstack/react-query").UseQueryResult<
|
|
9
|
+
}) => import("@tanstack/react-query").UseQueryResult<import("@osm-editor-kit/street-imagery").MapFeatureImages | null, Error>;
|
|
10
10
|
/**
|
|
11
11
|
* Map features within `radiusMeters` of a point (Graph API), nearest first, e.g. the traffic
|
|
12
12
|
* lights and markings at a junction. `objectValues` accepts wildcards (`object--traffic-light--*`).
|
|
@@ -15,7 +15,7 @@ export declare const useMapillaryMapFeaturesNear: (lngLat: LngLat | null | undef
|
|
|
15
15
|
radiusMeters?: number;
|
|
16
16
|
objectValues?: string[];
|
|
17
17
|
enabled?: boolean;
|
|
18
|
-
}) => import("@tanstack/react-query").UseQueryResult<
|
|
18
|
+
}) => import("@tanstack/react-query").UseQueryResult<{
|
|
19
19
|
id: string;
|
|
20
20
|
value: string;
|
|
21
21
|
lngLat: LngLat;
|
|
@@ -24,7 +24,7 @@ export declare const useMapillaryMapFeaturesNear: (lngLat: LngLat | null | undef
|
|
|
24
24
|
facing: number | null;
|
|
25
25
|
imageIds: string[];
|
|
26
26
|
distanceMeters: number;
|
|
27
|
-
}[]
|
|
27
|
+
}[], Error>;
|
|
28
28
|
/**
|
|
29
29
|
* Detection outlines of one image, for `outlines` of the Mapillary viewer. An image has ~500
|
|
30
30
|
* detections; pass `filter` (e.g. `matchesAnyGroup(JUNCTION_DETECTION_GROUPS)`) and name it with
|
|
@@ -33,7 +33,7 @@ export declare const useMapillaryMapFeaturesNear: (lngLat: LngLat | null | undef
|
|
|
33
33
|
export declare const useMapillaryImageDetections: (imageId: string | null | undefined, { filter, filterKey }?: {
|
|
34
34
|
filter?: (value: string) => boolean;
|
|
35
35
|
filterKey?: string;
|
|
36
|
-
}) => import("@tanstack/react-query").UseQueryResult<
|
|
36
|
+
}) => import("@tanstack/react-query").UseQueryResult<import("@osm-editor-kit/street-imagery").MapillaryDetection[], Error>;
|
|
37
37
|
/**
|
|
38
38
|
* A selected Mapillary map feature (sign, object) for a host's feature + photo selection: all its
|
|
39
39
|
* photos by day, the photo that is shown (`shownPhotoId`), and the one to open first — the best of
|
|
@@ -46,7 +46,7 @@ export declare const useSelectedMapillaryFeature: ({ featureId, shownPhotoId, mi
|
|
|
46
46
|
minCapturedAt?: number | null;
|
|
47
47
|
shape?: TargetShape;
|
|
48
48
|
}) => {
|
|
49
|
-
data:
|
|
49
|
+
data: import("@osm-editor-kit/street-imagery").MapFeatureImages | null;
|
|
50
50
|
isLoading: boolean;
|
|
51
51
|
isError: boolean;
|
|
52
52
|
shownImage: import("@osm-editor-kit/street-imagery").TargetImage | null;
|
package/dist/viewer-panels.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { MapillaryPanel, mapillaryViewFor, setMapillaryViewerOutlines, turnMapillaryViewerTo } from './chunk-LZR5SZDS.js';
|
|
2
|
-
export { PanoramaxDataProvider, PanoramaxPanel, panoramaxPhotoFromItem } from './chunk-
|
|
2
|
+
export { PanoramaxDataProvider, PanoramaxPanel, panoramaxPhotoFromItem } from './chunk-R6BDVYWM.js';
|
|
3
3
|
import './chunk-XLBFXACK.js';
|
|
4
4
|
import './chunk-GYUS2JVV.js';
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osm-editor-kit/street-imagery-react",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.15",
|
|
4
4
|
"description": "React MapLibre layers and photo viewers for street-level imagery providers.",
|
|
5
|
-
"homepage": "https://github.
|
|
5
|
+
"homepage": "https://osm-editor-kit.github.io/street-imagery/",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/osm-editor-kit/street-imagery/issues"
|
|
8
|
+
},
|
|
6
9
|
"license": "MIT",
|
|
7
10
|
"author": "Tobias Jordans",
|
|
8
11
|
"repository": {
|
|
9
12
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
13
|
+
"url": "git+https://github.com/osm-editor-kit/street-imagery.git",
|
|
11
14
|
"directory": "packages/street-imagery-react"
|
|
12
15
|
},
|
|
13
16
|
"files": [
|
|
@@ -67,7 +70,7 @@
|
|
|
67
70
|
"zustand": "^5.0.7"
|
|
68
71
|
},
|
|
69
72
|
"peerDependencies": {
|
|
70
|
-
"@osm-editor-kit/street-imagery": "^0.1.0-alpha.
|
|
73
|
+
"@osm-editor-kit/street-imagery": "^0.1.0-alpha.12",
|
|
71
74
|
"@panoramax/web-viewer": "^5",
|
|
72
75
|
"@tanstack/react-query": "^5",
|
|
73
76
|
"mapillary-js": "^4",
|