@tileflow/vue 0.1.0-alpha.31 → 0.1.0-alpha.32
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 +3 -0
- package/dist/index.js +9 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -116,6 +116,9 @@ priority over those options, then the published view, then shared defaults. `Til
|
|
|
116
116
|
selects a Tileflow map through its manifest; it has no renderer discriminator or direct-style mode.
|
|
117
117
|
Tileflow's styles are validated when they are compiled, so `validateStyle` defaults to `false`; pass
|
|
118
118
|
`true` to validate them again in the browser.
|
|
119
|
+
The map canvas is multisampled by default (`canvasContextAttributes.antialias` is `true`) so the
|
|
120
|
+
thin edges of 3D models stay continuous; other context attributes you pass are kept, and
|
|
121
|
+
`canvasContextAttributes: {antialias: false}` trades that smoothing for lower GPU cost.
|
|
119
122
|
The obsolete source fields `kind` and `style` are rejected. For a completely unmanaged map, use
|
|
120
123
|
`maplibre-gl` directly rather than a Tileflow component.
|
|
121
124
|
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
attachTileflowFairUseNotice,
|
|
19
19
|
attachTileflowMap3D,
|
|
20
20
|
attachTileflowMapLifecycle,
|
|
21
|
+
attachTileflowNauticalLights,
|
|
21
22
|
attachTileflowNotices,
|
|
22
23
|
createTileflowSessionStarter,
|
|
23
24
|
createTileflowThemeController,
|
|
@@ -27,7 +28,9 @@ import {
|
|
|
27
28
|
registerTileflowContourProtocol,
|
|
28
29
|
registerTileflowPmtilesProtocol,
|
|
29
30
|
registerTileflowWorldRequestBridge,
|
|
30
|
-
subscribeTileflowSystemColorScheme
|
|
31
|
+
subscribeTileflowSystemColorScheme,
|
|
32
|
+
tileflowMaxPitch,
|
|
33
|
+
tileflowCanvasContextAttributes
|
|
31
34
|
} from "@tileflow/core/browser";
|
|
32
35
|
import { normalizeTileflowCaptureId } from "@tileflow/core/capture";
|
|
33
36
|
import {
|
|
@@ -794,11 +797,15 @@ var TileflowMap = defineComponent({
|
|
|
794
797
|
});
|
|
795
798
|
const map = new maplibregl.Map({
|
|
796
799
|
...props.mapOptions,
|
|
800
|
+
canvasContextAttributes: tileflowCanvasContextAttributes(
|
|
801
|
+
props.mapOptions?.canvasContextAttributes
|
|
802
|
+
),
|
|
797
803
|
attributionControl: props.mapOptions?.attributionControl ?? {
|
|
798
804
|
compact: true
|
|
799
805
|
},
|
|
800
806
|
// Tileflow's compiled styles are validated when they are built.
|
|
801
807
|
validateStyle: props.mapOptions?.validateStyle ?? false,
|
|
808
|
+
maxPitch: props.mapOptions?.maxPitch ?? tileflowMaxPitch,
|
|
802
809
|
bearing: resolvedBearing.value,
|
|
803
810
|
center: resolvedCenter.value,
|
|
804
811
|
container,
|
|
@@ -817,6 +824,7 @@ var TileflowMap = defineComponent({
|
|
|
817
824
|
mapRef.value = map;
|
|
818
825
|
attachTileflowAtmosphere(map);
|
|
819
826
|
attachTileflowNotices(map);
|
|
827
|
+
attachTileflowNauticalLights(map);
|
|
820
828
|
themeController = runtime.theme === void 0 ? null : createTileflowThemeController({
|
|
821
829
|
initial: runtime,
|
|
822
830
|
map,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/vue",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.32",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Vue component for rendering Tileflow maps with MapLibre.",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
41
|
+
"@tileflow/core": ">=0.1.0-alpha.39 <0.1.0-beta.0",
|
|
42
42
|
"@tileflow/interactions": ">=0.1.0-alpha.6 <0.1.0-beta.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|