@unmap/sdk 0.20.0 → 0.21.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.
- package/README.md +3 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -74,15 +74,15 @@ A `File` goes as multipart, a plain object as GeoJSON, raw bytes as PMTiles.
|
|
|
74
74
|
The same SDK loads from a script tag, with MapLibre already inside it:
|
|
75
75
|
|
|
76
76
|
```html
|
|
77
|
-
<link rel="stylesheet" href="https://cdn.unmap.dev/sdk/0.
|
|
77
|
+
<link rel="stylesheet" href="https://cdn.unmap.dev/sdk/0.21.0/unmap.css">
|
|
78
78
|
<div id="map" style="height: 400px"></div>
|
|
79
|
-
<script src="https://cdn.unmap.dev/sdk/0.
|
|
79
|
+
<script src="https://cdn.unmap.dev/sdk/0.21.0/unmap.js"></script>
|
|
80
80
|
<script>
|
|
81
81
|
unmap.createMap({ key: 'um_live_...', container: '#map', center: [-114.07, 51.05] })
|
|
82
82
|
</script>
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
Everything above is on the `unmap` global: `unmap.Unmap`, `unmap.Geocoder`, `unmap.Router`, `unmap.maplibregl`. Pin the exact version in production; `/sdk/0.
|
|
85
|
+
Everything above is on the `unmap` global: `unmap.Unmap`, `unmap.Geocoder`, `unmap.Router`, `unmap.maplibregl`. Pin the exact version in production; `/sdk/0.21/` follows patches and `/sdk/latest/` follows everything.
|
|
86
86
|
|
|
87
87
|
## Options
|
|
88
88
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unmap/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "One key, the whole unmap platform: map + geocoder + router",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"homepage": "https://unmap.dev/docs/start/quickstart",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/unmap-dev/
|
|
18
|
+
"url": "git+https://github.com/unmap-dev/sdk-js.git",
|
|
19
19
|
"directory": "packages/sdk"
|
|
20
20
|
},
|
|
21
21
|
"bugs": {
|
|
22
|
-
"url": "https://github.com/unmap-dev/
|
|
22
|
+
"url": "https://github.com/unmap-dev/sdk-js/issues"
|
|
23
23
|
},
|
|
24
24
|
"type": "module",
|
|
25
25
|
"main": "./dist/index.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"maplibre-gl": "^6.9.0",
|
|
43
|
-
"@unmap/core": "0.
|
|
44
|
-
"@unmap/elevation": "0.
|
|
45
|
-
"@unmap/geocoding": "0.
|
|
46
|
-
"@unmap/maps": "0.
|
|
47
|
-
"@unmap/routing": "0.
|
|
43
|
+
"@unmap/core": "0.21.0",
|
|
44
|
+
"@unmap/elevation": "0.21.0",
|
|
45
|
+
"@unmap/geocoding": "0.21.0",
|
|
46
|
+
"@unmap/maps": "0.21.0",
|
|
47
|
+
"@unmap/routing": "0.21.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"tsup": "^8.3.0",
|