@osm-editor-kit/street-imagery 0.1.0-alpha.0 → 0.1.0-alpha.2
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/README.md +9 -5
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# `@osm-editor-kit/street-imagery`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This package is an **alpha** release and still under active development. APIs may change; install with the npm `alpha` dist-tag.
|
|
4
5
|
|
|
5
6
|
## What it does
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
- Talk to many street-photo providers through one adapter API (Mapillary, Panoramax, KartaView, Mapilio, Bing Streetside, Vegbilder, Google Street View, Apple Look Around, …)
|
|
9
|
+
- Normalize photos, sequences, and map features into shared types
|
|
10
|
+
- Fetch by map bbox or MVT tiles
|
|
11
|
+
- Build GeoJSON for map layers (points, sequences, viewfields)
|
|
12
|
+
- Filter by date and photo type (flat / panorama)
|
|
13
|
+
- Helpers for deep links, nearby-photo grouping, and thumbnails
|
|
8
14
|
|
|
9
15
|
For MapLibre React layers, use `@osm-editor-kit/street-imagery-react`.
|
|
10
16
|
|
|
@@ -18,9 +24,7 @@ import {
|
|
|
18
24
|
setStreetImageryConfig,
|
|
19
25
|
} from '@osm-editor-kit/street-imagery'
|
|
20
26
|
|
|
21
|
-
setStreetImageryConfig(
|
|
22
|
-
createStreetImageryConfig({ mapillaryToken: '…' }),
|
|
23
|
-
)
|
|
27
|
+
setStreetImageryConfig(createStreetImageryConfig({ mapillaryToken: '…' }))
|
|
24
28
|
|
|
25
29
|
const bbox = [13.44, 52.47, 13.45, 52.48] as const // west, south, east, north
|
|
26
30
|
const controller = new AbortController()
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osm-editor-kit/street-imagery",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "Street-level imagery providers, GeoJSON, viewfields, tiles, and viewer helpers (Mapillary, Panoramax, and more).",
|
|
5
|
+
"homepage": "https://github.com/osmberlin/street-space-editor/tree/main/packages/street-imagery",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"author": "Tobias Jordans",
|
|
7
8
|
"repository": {
|
|
@@ -9,11 +10,11 @@
|
|
|
9
10
|
"url": "git+https://github.com/osmberlin/street-space-editor.git",
|
|
10
11
|
"directory": "packages/street-imagery"
|
|
11
12
|
},
|
|
12
|
-
"type": "module",
|
|
13
|
-
"sideEffects": false,
|
|
14
13
|
"files": [
|
|
15
14
|
"dist"
|
|
16
15
|
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": false,
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
19
20
|
"types": "./dist/index.d.ts",
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@types/geojson": "^7946.0.16",
|
|
43
44
|
"bun-types": "^1.2.20",
|
|
44
|
-
"maplibre-gl": "^
|
|
45
|
+
"maplibre-gl": "^6.7.0",
|
|
45
46
|
"tsup": "^8.5.1",
|
|
46
47
|
"typescript": "^7.0.0",
|
|
47
48
|
"vite": "^8.0.0"
|