@unmap/sdk 0.19.0 → 0.20.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 +4 -4
- package/package.json +7 -7
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.20.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.20.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.20/` follows patches and `/sdk/latest/` follows everything.
|
|
86
86
|
|
|
87
87
|
## Options
|
|
88
88
|
|
|
@@ -116,7 +116,7 @@ resolves.
|
|
|
116
116
|
|
|
117
117
|
MapLibre 6 parses tiles in a module worker and locates it through `import.meta.url`, which does not
|
|
118
118
|
reliably resolve inside a bundler's module graph. Bundler users make a one-time `setWorkerUrl()`
|
|
119
|
-
call after copying `maplibre-gl-worker.mjs`
|
|
119
|
+
call after copying `maplibre-gl-worker.mjs` into their own `public/`.
|
|
120
120
|
Skip it and the map never finishes loading, with no error thrown and no failed request — see
|
|
121
121
|
[@unmap/maps](https://www.npmjs.com/package/@unmap/maps#web-worker) for the script and the call, or
|
|
122
122
|
[the quickstart](https://unmap.dev/docs/start/quickstart#if-the-map-never-finishes-loading).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unmap/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "One key, the whole unmap platform: map + geocoder + router",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"maplibre-gl": "^6.
|
|
43
|
-
"@unmap/core": "0.
|
|
44
|
-
"@unmap/elevation": "0.
|
|
45
|
-
"@unmap/geocoding": "0.
|
|
46
|
-
"@unmap/maps": "0.
|
|
47
|
-
"@unmap/routing": "0.
|
|
42
|
+
"maplibre-gl": "^6.9.0",
|
|
43
|
+
"@unmap/core": "0.20.0",
|
|
44
|
+
"@unmap/elevation": "0.20.0",
|
|
45
|
+
"@unmap/geocoding": "0.20.0",
|
|
46
|
+
"@unmap/maps": "0.20.0",
|
|
47
|
+
"@unmap/routing": "0.20.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"tsup": "^8.3.0",
|