@tileflow/vite 0.1.0-alpha.20 → 0.1.0-alpha.21
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 +16 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -32,6 +32,22 @@ const source = {
|
|
|
32
32
|
|
|
33
33
|
Development and production expose that same prefixed URL.
|
|
34
34
|
|
|
35
|
+
## MapLibre 6 worker
|
|
36
|
+
|
|
37
|
+
Vite applications configure the MapLibre worker in their client entry before mounting an interactive
|
|
38
|
+
Tileflow map:
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
import {configureTileflowMapLibre} from '@tileflow/react';
|
|
42
|
+
import workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url';
|
|
43
|
+
|
|
44
|
+
configureTileflowMapLibre({workerUrl});
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Import `configureTileflowMapLibre` from the adapter in use (`@tileflow/react`, `@tileflow/vue`, or
|
|
48
|
+
`@tileflow/svelte`). Vite emits the matching worker closure from the application's installed
|
|
49
|
+
MapLibre package. MapLibre GL JS 6.4.1-6.x is supported.
|
|
50
|
+
|
|
35
51
|
Development snapshots local `hostedTileset()` archives for coherent preview requests. Production
|
|
36
52
|
builds reject unresolved local PMTiles before emitting Tileflow assets; they never copy, hash, or
|
|
37
53
|
deduplicate user datasets. Publish a managed tileset explicitly or provide an application-owned
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/vite",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.21",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Vite plugin for Tileflow map style development and static artifacts.",
|
|
6
6
|
"engines": {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@tileflow/dev": ">=0.1.0-alpha.
|
|
44
|
+
"@tileflow/dev": ">=0.1.0-alpha.23 <0.1.0-beta.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"vite": ">=5 <9"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"vite": "^8.0.16",
|
|
51
|
-
"@tileflow/maps": "0.1.0-alpha.
|
|
51
|
+
"@tileflow/maps": "0.1.0-alpha.3"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsup src/index.ts --format esm --dts --clean --external vite --platform node",
|