@tileflow/core 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 +16 -17
- package/dist/browser.d.ts +600 -427
- package/dist/browser.js +1633 -431
- package/dist/build.d.ts +3 -3
- package/dist/build.js +1734 -1093
- package/dist/config-reference.json +2901 -1906
- package/dist/{icon-composition-DSjIKmrK.d.ts → icon-composition-sN3JkXdb.d.ts} +291 -93
- package/dist/index.d.ts +201 -7
- package/dist/index.js +4691 -3509
- package/dist/{manifest-types-Bzxon3dx.d.ts → manifest-types-jrBdBrES.d.ts} +29 -8
- package/dist/manifest.d.ts +2 -2
- package/dist/native.js +57 -57
- package/dist/runtime.d.ts +1 -1
- package/dist/worker/buildings-3d-worker.global.js +1 -0
- package/docs/authoring-model.md +8 -3
- package/docs/boundary-areas-and-choropleths.md +217 -0
- package/docs/buildings-3d.md +102 -21
- package/docs/cartographic-defaults.md +142 -0
- package/docs/data-is-separate-from-design.md +54 -2
- package/docs/hosted-session-authorization.md +2 -4
- package/docs/map-and-terrain-examples.md +10 -3
- package/docs/street-lights.md +22 -6
- package/docs/sun-and-light.md +42 -2
- package/docs/themes-and-module-styles.md +66 -0
- package/docs/trees-3d.md +22 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,9 +38,8 @@ export default defineMap({
|
|
|
38
38
|
});
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Coordinates use `[longitude, latitude]`.
|
|
42
|
-
A
|
|
43
|
-
extend an existing map instead of rebuilding its complete visual contract.
|
|
41
|
+
Coordinates use `[longitude, latitude]`. This map inherits Streets' themes and assets.
|
|
42
|
+
A standalone map uses `defineMap()` without `extends`.
|
|
44
43
|
|
|
45
44
|
Validate and preview the file with the project-local CLI:
|
|
46
45
|
|
|
@@ -158,12 +157,11 @@ A theme can describe its sun and sky light (`lighting.sun`, `lighting.ambient`);
|
|
|
158
157
|
returns the sun the map shows with `getSun()`, mixed during a blend, for an application's own 3D
|
|
159
158
|
layers, and `setSun()` places it by direction or by the real sun of a date and place; see
|
|
160
159
|
[sun and light](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/sun-and-light.md).
|
|
161
|
-
`createTileflowBuildings3D`
|
|
162
|
-
|
|
163
|
-
illuminated edges, colour variation, night lights and animation are explicit options; see
|
|
160
|
+
`createTileflowBuildings3D` enables worker-meshed buildings fading in at zoom 15–15.25, with scene
|
|
161
|
+
sun, cast/contact shadows and 0.8 m rounded corners. Each effect is independently overridable. See
|
|
164
162
|
[3D buildings](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/buildings-3d.md).
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
Street lights default to off, including in Streets. Set `roads.streetLights.enabled: true` and mount
|
|
164
|
+
`createTileflowStreetLights` to enable them; see
|
|
167
165
|
[street lights](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/street-lights.md).
|
|
168
166
|
`createTileflowVegetation` controls all trees using the map's `3d`, `flat` or `auto` policy; see
|
|
169
167
|
[vegetation controls and 3D trees](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/trees-3d.md).
|
|
@@ -184,15 +182,14 @@ validates the authoring input and throws on failure. `createStyle(map, options)`
|
|
|
184
182
|
throws; `createStyleResult(map, options)` returns structured diagnostics and a compilation report.
|
|
185
183
|
Only a successful result contains `style`.
|
|
186
184
|
|
|
187
|
-
|
|
188
|
-
directories needs the CLI, a build plugin, or
|
|
185
|
+
Maps with package/local icon or font directories need the CLI, a build plugin, or
|
|
189
186
|
[`@tileflow/dev/artifacts`](https://github.com/tileflow/tileflow-sdk/blob/main/packages/dev/README.md)
|
|
190
|
-
to
|
|
191
|
-
they do not import executable configs.
|
|
187
|
+
to prepare assets. Browser components consume the resulting manifest.
|
|
192
188
|
|
|
193
|
-
|
|
189
|
+
Discover the language and inspect a prepared map:
|
|
194
190
|
|
|
195
191
|
```sh
|
|
192
|
+
npx tileflow describe themes --json
|
|
196
193
|
npx tileflow language manifest --json
|
|
197
194
|
npx tileflow language schema --json
|
|
198
195
|
npx tileflow inspect --json
|
|
@@ -239,8 +236,8 @@ package uses this contract for its mounted Map; it is not yet published.
|
|
|
239
236
|
## Data, terrain, and browser resources
|
|
240
237
|
|
|
241
238
|
Tileflow World is the hosted primary source. `vectorTiles()` with `openMapTiles()` supports
|
|
242
|
-
external local/self-hosted data; hosted eligibility is separate. `hostedTileset()`
|
|
243
|
-
overlays add named sources. Local PMTiles inputs are tooling-only.
|
|
239
|
+
external local/self-hosted data; hosted eligibility is separate. `hostedTileset()`, `boundaryAreas`
|
|
240
|
+
and semantic overlays add named sources. Local PMTiles inputs are tooling-only.
|
|
244
241
|
|
|
245
242
|
`bathymetry({vectorLayers: {...}})` declares compatible contour/name layers; omission retains
|
|
246
243
|
legacy band geometry.
|
|
@@ -271,8 +268,8 @@ In a 3D scene, `createTileflowDepthMarkers` from `@tileflow/core/browser` draws
|
|
|
271
268
|
that nearer buildings hide, facing the viewer or lying on the ground. See
|
|
272
269
|
[depth markers](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/depth-markers.md).
|
|
273
270
|
|
|
274
|
-
A map with text must declare exactly one text provider. Streets,
|
|
275
|
-
and Blueprint use URL glyph providers. Baedeker and Siegfried use packaged Cormorant
|
|
271
|
+
A map with text must declare exactly one text provider. Streets, Soundings,
|
|
272
|
+
and Blueprint use URL glyph providers. Baedeker, 1777, and Siegfried use packaged Cormorant
|
|
276
273
|
fonts, and Cívica uses its packaged lettering. Hosted deployment currently rejects
|
|
277
274
|
package/local font bundles; use self-hosted output or explicitly replace the provider with compatible
|
|
278
275
|
public glyphs. Tile URLs and font providers do not establish redistribution rights.
|
|
@@ -297,6 +294,7 @@ revision; prefer the installed copy when working with an older release.
|
|
|
297
294
|
- [Shared visual primitives](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/shared-visual-primitives.md)
|
|
298
295
|
- [Compiled-style performance](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/compiled-style-performance.md)
|
|
299
296
|
- [Camera moves and the tile cache](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/camera-moves-and-tile-cache.md)
|
|
297
|
+
- [Cartographic defaults and overrides](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/cartographic-defaults.md)
|
|
300
298
|
- [Themes and module styles](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/themes-and-module-styles.md)
|
|
301
299
|
- [Theme transitions and blends](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/theme-transitions-and-blends.md)
|
|
302
300
|
- [Map emphasis](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/map-emphasis.md)
|
|
@@ -306,6 +304,7 @@ revision; prefer the installed copy when working with an older release.
|
|
|
306
304
|
- [3D buildings](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/buildings-3d.md)
|
|
307
305
|
- [Street lights](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/street-lights.md)
|
|
308
306
|
- [3D trees](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/trees-3d.md)
|
|
307
|
+
- [Boundary areas and choropleths](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/boundary-areas-and-choropleths.md)
|
|
309
308
|
- [Data is separate from design](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/data-is-separate-from-design.md)
|
|
310
309
|
- [Capture scenes](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/capture-scenes.md)
|
|
311
310
|
- [Capture shots](https://github.com/tileflow/tileflow-sdk/blob/main/packages/core/docs/capture-shots.md)
|