@tileflow/vue 0.1.0-alpha.17 → 0.1.0-alpha.18
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 -0
- package/dist/index.js +9 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -28,6 +28,10 @@ Tileflow resolves from the map name, manifest, or explicit style props. Direct
|
|
|
28
28
|
Tileflow props such as `center`, `zoom`, and `interactive` take priority when
|
|
29
29
|
provided.
|
|
30
30
|
|
|
31
|
+
Hosted maps automatically preflight a short-lived commercial session grant before eligible
|
|
32
|
+
resources. Setting `analytics` with `enabled: false` disables the optional beacon only; it does not
|
|
33
|
+
remove hosted authorization or override a user `mapOptions.transformRequest` callback.
|
|
34
|
+
|
|
31
35
|
## Headless capture readiness
|
|
32
36
|
|
|
33
37
|
Pass `capture-id` when a page contains multiple copies of the same named map:
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
watch
|
|
13
13
|
} from "vue";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
createTileflowSessionController,
|
|
16
16
|
defaultTileflowManifestUrl,
|
|
17
17
|
loadTileflowManifest,
|
|
18
18
|
mergeTileflowAnalytics,
|
|
@@ -92,7 +92,6 @@ var TileflowMap = defineComponent({
|
|
|
92
92
|
const imageSize = shallowRef(null);
|
|
93
93
|
const mapRef = shallowRef(null);
|
|
94
94
|
const captureState = ref("loading");
|
|
95
|
-
const sessionId = createTileflowSessionId();
|
|
96
95
|
const markerController = createTileflowMarkerController({
|
|
97
96
|
attach(markerInstance, map, marker) {
|
|
98
97
|
markerInstance.setLngLat(marker.coordinates).addTo(map);
|
|
@@ -103,10 +102,6 @@ var TileflowMap = defineComponent({
|
|
|
103
102
|
}),
|
|
104
103
|
remove: (marker) => marker.remove()
|
|
105
104
|
});
|
|
106
|
-
const sessionStarter = createTileflowSessionStarter({
|
|
107
|
-
sessionId,
|
|
108
|
-
source: "vue"
|
|
109
|
-
});
|
|
110
105
|
let imageResizeObserver = null;
|
|
111
106
|
let mapLifecycle = null;
|
|
112
107
|
let mapResizeObserver = null;
|
|
@@ -238,6 +233,12 @@ var TileflowMap = defineComponent({
|
|
|
238
233
|
}
|
|
239
234
|
const runtime = runtimeStyle.value;
|
|
240
235
|
const analyticsForMap = resolvedAnalytics.value;
|
|
236
|
+
const session = createTileflowSessionController({ source: "vue" });
|
|
237
|
+
const sessionStarter = createTileflowSessionStarter({
|
|
238
|
+
getSessionId: () => session.sessionId,
|
|
239
|
+
sessionId: session.sessionId,
|
|
240
|
+
source: "vue"
|
|
241
|
+
});
|
|
241
242
|
const map = new maplibregl.Map({
|
|
242
243
|
...props.mapOptions,
|
|
243
244
|
attributionControl: props.mapOptions?.attributionControl ?? { compact: true },
|
|
@@ -247,7 +248,8 @@ var TileflowMap = defineComponent({
|
|
|
247
248
|
style: runtime.style,
|
|
248
249
|
transformRequest: createTileflowTransformRequest({
|
|
249
250
|
getAnalytics: () => analyticsForMap,
|
|
250
|
-
|
|
251
|
+
sessionController: session,
|
|
252
|
+
sessionId: session.sessionId,
|
|
251
253
|
transformRequest: props.mapOptions?.transformRequest ?? void 0
|
|
252
254
|
}),
|
|
253
255
|
zoom: resolvedZoom.value
|
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.18",
|
|
4
4
|
"description": "Vue component for rendering Tileflow maps with MapLibre.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
39
|
+
"@tileflow/core": ">=0.1.0-alpha.18 <0.1.0-beta.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"maplibre-gl": ">=5",
|