@tileflow/vue 0.1.0-alpha.17 → 0.1.0-alpha.19
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.d.ts +0 -3
- package/dist/index.js +10 -11
- 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.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ type TileflowMapProps = {
|
|
|
26
26
|
styleBaseUrl?: string;
|
|
27
27
|
styleUrl?: string;
|
|
28
28
|
themes?: TileflowProjectThemes;
|
|
29
|
-
tileBaseUrl?: string;
|
|
30
29
|
zoom?: number;
|
|
31
30
|
};
|
|
32
31
|
declare const TileflowMap: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
@@ -74,7 +73,6 @@ declare const TileflowMap: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
74
73
|
styleBaseUrl: StringConstructor;
|
|
75
74
|
styleUrl: StringConstructor;
|
|
76
75
|
themes: PropType<TileflowProjectThemes>;
|
|
77
|
-
tileBaseUrl: StringConstructor;
|
|
78
76
|
zoom: NumberConstructor;
|
|
79
77
|
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
80
78
|
[key: string]: any;
|
|
@@ -125,7 +123,6 @@ declare const TileflowMap: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
125
123
|
styleBaseUrl: StringConstructor;
|
|
126
124
|
styleUrl: StringConstructor;
|
|
127
125
|
themes: PropType<TileflowProjectThemes>;
|
|
128
|
-
tileBaseUrl: StringConstructor;
|
|
129
126
|
zoom: NumberConstructor;
|
|
130
127
|
}>> & Readonly<{
|
|
131
128
|
onLoad?: ((_map: maplibregl.Map) => any) | undefined;
|
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,
|
|
@@ -80,7 +80,6 @@ var TileflowMap = defineComponent({
|
|
|
80
80
|
styleBaseUrl: String,
|
|
81
81
|
styleUrl: String,
|
|
82
82
|
themes: Object,
|
|
83
|
-
tileBaseUrl: String,
|
|
84
83
|
zoom: Number
|
|
85
84
|
},
|
|
86
85
|
emits: {
|
|
@@ -92,7 +91,6 @@ var TileflowMap = defineComponent({
|
|
|
92
91
|
const imageSize = shallowRef(null);
|
|
93
92
|
const mapRef = shallowRef(null);
|
|
94
93
|
const captureState = ref("loading");
|
|
95
|
-
const sessionId = createTileflowSessionId();
|
|
96
94
|
const markerController = createTileflowMarkerController({
|
|
97
95
|
attach(markerInstance, map, marker) {
|
|
98
96
|
markerInstance.setLngLat(marker.coordinates).addTo(map);
|
|
@@ -103,10 +101,6 @@ var TileflowMap = defineComponent({
|
|
|
103
101
|
}),
|
|
104
102
|
remove: (marker) => marker.remove()
|
|
105
103
|
});
|
|
106
|
-
const sessionStarter = createTileflowSessionStarter({
|
|
107
|
-
sessionId,
|
|
108
|
-
source: "vue"
|
|
109
|
-
});
|
|
110
104
|
let imageResizeObserver = null;
|
|
111
105
|
let mapLifecycle = null;
|
|
112
106
|
let mapResizeObserver = null;
|
|
@@ -138,8 +132,7 @@ var TileflowMap = defineComponent({
|
|
|
138
132
|
style: props.mapStyle,
|
|
139
133
|
styleBaseUrl: props.styleBaseUrl,
|
|
140
134
|
styleUrl: props.styleUrl,
|
|
141
|
-
themes: props.themes
|
|
142
|
-
tileBaseUrl: props.tileBaseUrl
|
|
135
|
+
themes: props.themes
|
|
143
136
|
})
|
|
144
137
|
);
|
|
145
138
|
const resolvedAnalytics = computed(
|
|
@@ -238,6 +231,12 @@ var TileflowMap = defineComponent({
|
|
|
238
231
|
}
|
|
239
232
|
const runtime = runtimeStyle.value;
|
|
240
233
|
const analyticsForMap = resolvedAnalytics.value;
|
|
234
|
+
const session = createTileflowSessionController({ source: "vue" });
|
|
235
|
+
const sessionStarter = createTileflowSessionStarter({
|
|
236
|
+
getSessionId: () => session.sessionId,
|
|
237
|
+
sessionId: session.sessionId,
|
|
238
|
+
source: "vue"
|
|
239
|
+
});
|
|
241
240
|
const map = new maplibregl.Map({
|
|
242
241
|
...props.mapOptions,
|
|
243
242
|
attributionControl: props.mapOptions?.attributionControl ?? { compact: true },
|
|
@@ -247,7 +246,8 @@ var TileflowMap = defineComponent({
|
|
|
247
246
|
style: runtime.style,
|
|
248
247
|
transformRequest: createTileflowTransformRequest({
|
|
249
248
|
getAnalytics: () => analyticsForMap,
|
|
250
|
-
|
|
249
|
+
sessionController: session,
|
|
250
|
+
sessionId: session.sessionId,
|
|
251
251
|
transformRequest: props.mapOptions?.transformRequest ?? void 0
|
|
252
252
|
}),
|
|
253
253
|
zoom: resolvedZoom.value
|
|
@@ -376,7 +376,6 @@ var TileflowMap = defineComponent({
|
|
|
376
376
|
props.styleBaseUrl,
|
|
377
377
|
props.styleUrl,
|
|
378
378
|
props.themes,
|
|
379
|
-
props.tileBaseUrl,
|
|
380
379
|
manifestMap.value
|
|
381
380
|
],
|
|
382
381
|
() => recreateMap(),
|
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.19",
|
|
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.19 <0.1.0-beta.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"maplibre-gl": ">=5",
|