@tileflow/svelte 0.1.0-alpha.32 → 0.1.0-alpha.34
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 +6 -5
- package/package.json +3 -3
- package/src/TileflowMap.svelte +7 -0
package/README.md
CHANGED
|
@@ -96,11 +96,12 @@ Maps without this capability ignore the option; omitting it keeps the selected t
|
|
|
96
96
|
Changing it uses the existing theme transition. `themeBlend` takes precedence. See the
|
|
97
97
|
[authoring contract](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md#style-with-themes-and-semantic-modules).
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
Theme and `timeOfDay` changes cross-fade over 450 ms by default, respecting reduced motion.
|
|
100
|
+
`themeTransition={{duration: 700}}` customizes the duration; use `duration: 0` for an immediate change.
|
|
100
101
|
`themeBlend={{themes: ['night', 'dusk', 'day'], position}}` shows a continuous blend of the map's
|
|
101
102
|
themes instead of `theme`: position 0 is the first theme and 1.5 is halfway from the second to the
|
|
102
103
|
third. Moving the position updates the map at once. See
|
|
103
|
-
[theme transitions and blends](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/
|
|
104
|
+
[theme transitions and blends](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md).
|
|
104
105
|
|
|
105
106
|
Interactive maps show the 3D scene their style declares by default: buildings with Tileflow
|
|
106
107
|
landmarks and the map's Team building models, 3D trees, and street lights where the map enables
|
|
@@ -110,8 +111,8 @@ draws vegetation as the map's policy sets for the 2D view (Streets keeps its mod
|
|
|
110
111
|
view). `vegetation` overrides vegetation visibility (omitting it uses the map default); `vegetation={false}`
|
|
111
112
|
hides models and flat artwork alike. Changing either prop updates the existing map immediately.
|
|
112
113
|
They do not change camera pitch and do not apply in image mode. See
|
|
113
|
-
[the map's 3D scene](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/
|
|
114
|
-
and [vegetation controls](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/
|
|
114
|
+
[the map's 3D scene](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md)
|
|
115
|
+
and [vegetation controls](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md).
|
|
115
116
|
|
|
116
117
|
`mapOptions` accepts native MapLibre options except `container` and `style`. Direct props win over
|
|
117
118
|
those options, then the manifest view, then shared defaults. `TileflowMap` always selects a Tileflow
|
|
@@ -223,5 +224,5 @@ managed delivery is required. Imports and the image path remain SSR-safe; intera
|
|
|
223
224
|
requires a browser with WebGL.
|
|
224
225
|
|
|
225
226
|
See the [interaction guide](https://github.com/tileflow/tileflow-sdk/blob/main/packages/interactions/README.md)
|
|
226
|
-
and [browser runtime contract](https://github.com/tileflow/tileflow-sdk/blob/main/
|
|
227
|
+
and [browser runtime contract](https://github.com/tileflow/tileflow-sdk/blob/main/README.md).
|
|
227
228
|
Use the installed declarations and README for release-specific behavior; `main` may be newer than npm.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/svelte",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.34",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Svelte component for rendering Tileflow maps with MapLibre.",
|
|
6
6
|
"type": "module",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
48
|
-
"@tileflow/interactions": ">=0.1.0-alpha.
|
|
47
|
+
"@tileflow/core": ">=0.1.0-alpha.43 <0.1.0-beta.0",
|
|
48
|
+
"@tileflow/interactions": ">=0.1.0-alpha.7 <0.1.0-beta.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"maplibre-gl": ">=6.4.1 <7",
|
package/src/TileflowMap.svelte
CHANGED
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
} from '@tileflow/core/runtime';
|
|
31
31
|
import {
|
|
32
32
|
attachTileflowAtmosphere,
|
|
33
|
+
attachTileflowLabelPlacement,
|
|
34
|
+
attachTileflowHorizonQueries,
|
|
33
35
|
attachTileflowFairUseNotice,
|
|
34
36
|
attachTileflowMap3D,
|
|
35
37
|
attachTileflowMapLifecycle,
|
|
@@ -42,6 +44,7 @@
|
|
|
42
44
|
getTileflowSystemColorScheme,
|
|
43
45
|
loadTileflowStyleFonts,
|
|
44
46
|
registerTileflowContourProtocol,
|
|
47
|
+
registerTileflowPathGroundProtocol,
|
|
45
48
|
registerTileflowPmtilesProtocol,
|
|
46
49
|
registerTileflowWorldRequestBridge,
|
|
47
50
|
subscribeTileflowSystemColorScheme,
|
|
@@ -582,6 +585,7 @@
|
|
|
582
585
|
});
|
|
583
586
|
mapFairUseNotice = attachTileflowFairUseNotice(targetContainer);
|
|
584
587
|
registerTileflowContourProtocol({addProtocol: maplibregl.addProtocol});
|
|
588
|
+
registerTileflowPathGroundProtocol({addProtocol: maplibregl.addProtocol});
|
|
585
589
|
registerTileflowPmtilesProtocol({addProtocol: maplibregl.addProtocol});
|
|
586
590
|
mapWorldRequestBridge = registerTileflowWorldRequestBridge({
|
|
587
591
|
addProtocol: maplibregl.addProtocol,
|
|
@@ -614,6 +618,9 @@
|
|
|
614
618
|
attachTileflowAtmosphere(maplibreMap);
|
|
615
619
|
attachTileflowNotices(maplibreMap);
|
|
616
620
|
attachTileflowNauticalLights(maplibreMap);
|
|
621
|
+
attachTileflowLabelPlacement(maplibreMap);
|
|
622
|
+
// Feature queries and taps keep working once a steep pitch shows the horizon.
|
|
623
|
+
attachTileflowHorizonQueries(maplibreMap);
|
|
617
624
|
themeController =
|
|
618
625
|
runtime.theme === undefined
|
|
619
626
|
? null
|