@tileflow/react 0.1.0-alpha.6 → 0.1.0-alpha.8
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 +13 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -10,6 +10,19 @@ export function App() {
|
|
|
10
10
|
}
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
To reuse one published map across multiple repos, point every app at the same
|
|
14
|
+
manifest:
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
<Map map="madrid" manifestUrl="https://cdn.example.com/tileflow/manifest.json" />
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or bypass the manifest and load a hosted style directly:
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
<Map styleUrl="https://api.tileflow.dev/v1/styles/acme/madrid.json" />
|
|
24
|
+
```
|
|
25
|
+
|
|
13
26
|
For simple hosted static images, use image mode:
|
|
14
27
|
|
|
15
28
|
```tsx
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/react",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.8",
|
|
4
4
|
"description": "React components for rendering Tileflow maps with MapLibre.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
6
7
|
"homepage": "https://tileflow.dev",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
@@ -40,8 +41,8 @@
|
|
|
40
41
|
"access": "public"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@tileflow/
|
|
44
|
-
"@tileflow/
|
|
44
|
+
"@tileflow/core": "0.1.0-alpha.8",
|
|
45
|
+
"@tileflow/static": "0.1.0-alpha.8"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
48
|
"maplibre-gl": ">=5",
|