@tileflow/react 0.1.0-alpha.35 → 0.1.0-alpha.36
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/dist/index.js +4 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ Theme and `timeOfDay` changes cross-fade over 450 ms by default, respecting redu
|
|
|
110
110
|
`themeBlend={{themes: ['night', 'dusk', 'day'], position}}` shows a continuous blend of the map's
|
|
111
111
|
themes instead of `theme`: position 0 is the first theme and 1.5 is halfway from the second to the
|
|
112
112
|
third. Moving the position updates the map at once. See
|
|
113
|
-
[theme transitions and blends](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/
|
|
113
|
+
[theme transitions and blends](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md).
|
|
114
114
|
|
|
115
115
|
Interactive maps show the 3D scene their style declares by default: buildings with Tileflow
|
|
116
116
|
landmarks and the map's Team building models, 3D trees, and street lights where the map enables
|
|
@@ -120,8 +120,8 @@ draws vegetation as the map's policy sets for the 2D view (Streets keeps its mod
|
|
|
120
120
|
view). `vegetation` overrides vegetation visibility (omitting it uses the map default); `vegetation={false}`
|
|
121
121
|
hides models and flat artwork alike. Changing either prop updates the existing map immediately.
|
|
122
122
|
They do not change camera pitch and do not apply in image mode. See
|
|
123
|
-
[the map's 3D scene](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/
|
|
124
|
-
and [vegetation controls](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/
|
|
123
|
+
[the map's 3D scene](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md)
|
|
124
|
+
and [vegetation controls](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md).
|
|
125
125
|
|
|
126
126
|
`mapOptions` accepts native MapLibre options except `container` and `style`. Direct camera props
|
|
127
127
|
take priority over `mapOptions`, then the manifest view, then shared defaults. `Map` always selects
|
|
@@ -163,7 +163,7 @@ export function Unemployment({rates}: {rates: {ine: string; rate: number}[]}) {
|
|
|
163
163
|
|
|
164
164
|
Rows join by `ref` here, so this map declares `boundaryAreas: {family: 'boundaries', promoteId:
|
|
165
165
|
'ref'}`. Without `promoteId`, rows join by registry `id`. See
|
|
166
|
-
[boundary areas and choropleths](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/
|
|
166
|
+
[boundary areas and choropleths](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/README.md)
|
|
167
167
|
for scales, joins and the lookup table.
|
|
168
168
|
|
|
169
169
|
## Add annotations and popups
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ import { createPortal } from "react-dom";
|
|
|
41
41
|
import {
|
|
42
42
|
attachTileflowAtmosphere,
|
|
43
43
|
attachTileflowFairUseNotice,
|
|
44
|
+
attachTileflowHorizonQueries,
|
|
44
45
|
attachTileflowLabelPlacement,
|
|
45
46
|
attachTileflowMap3D,
|
|
46
47
|
attachTileflowMapLifecycle,
|
|
@@ -52,6 +53,7 @@ import {
|
|
|
52
53
|
getTileflowSystemColorScheme,
|
|
53
54
|
loadTileflowStyleFonts,
|
|
54
55
|
registerTileflowContourProtocol,
|
|
56
|
+
registerTileflowPathGroundProtocol,
|
|
55
57
|
registerTileflowPmtilesProtocol,
|
|
56
58
|
registerTileflowWorldRequestBridge,
|
|
57
59
|
subscribeTileflowSystemColorScheme,
|
|
@@ -794,6 +796,7 @@ function Map2(props) {
|
|
|
794
796
|
const fairUseNotice = attachTileflowFairUseNotice(container);
|
|
795
797
|
registerCleanup(() => fairUseNotice.dispose());
|
|
796
798
|
registerTileflowContourProtocol({ addProtocol: maplibregl.addProtocol });
|
|
799
|
+
registerTileflowPathGroundProtocol({ addProtocol: maplibregl.addProtocol });
|
|
797
800
|
registerTileflowPmtilesProtocol({ addProtocol: maplibregl.addProtocol });
|
|
798
801
|
const worldRequestBridge = registerTileflowWorldRequestBridge({
|
|
799
802
|
addProtocol: maplibregl.addProtocol,
|
|
@@ -834,6 +837,7 @@ function Map2(props) {
|
|
|
834
837
|
registerCleanup(attachTileflowNotices(map));
|
|
835
838
|
registerCleanup(attachTileflowNauticalLights(map));
|
|
836
839
|
registerCleanup(attachTileflowLabelPlacement(map));
|
|
840
|
+
registerCleanup(attachTileflowHorizonQueries(map));
|
|
837
841
|
const themeController = initialRuntimeStyle.theme === void 0 ? void 0 : createTileflowThemeController({
|
|
838
842
|
initial: initialRuntimeStyle,
|
|
839
843
|
map,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/react",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.36",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "React components for rendering Tileflow maps with MapLibre.",
|
|
6
6
|
"type": "module",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
47
|
-
"@tileflow/interactions": ">=0.1.0-alpha.
|
|
48
|
-
"@tileflow/static": ">=0.1.0-alpha.
|
|
46
|
+
"@tileflow/core": ">=0.1.0-alpha.43 <0.1.0-beta.0",
|
|
47
|
+
"@tileflow/interactions": ">=0.1.0-alpha.7 <0.1.0-beta.0",
|
|
48
|
+
"@tileflow/static": ">=0.1.0-alpha.29 <0.1.0-beta.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"maplibre-gl": ">=6.4.1 <7",
|