@mapvx/web-components 0.0.27 → 0.0.28
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/dist/cjs/{base-floor-selector-CLFTtgbp.cjs → base-floor-selector-B3a-e0nh.cjs} +2 -2
- package/dist/cjs/{class-map-BTH_74Qs.cjs → class-map-CIXsqmkI.cjs} +2 -2
- package/dist/cjs/{compact-floor-selector-CUgAJzTC.cjs → compact-floor-selector-DH5p6Akw.cjs} +2 -2
- package/dist/cjs/{consume-DvEpk7ME.cjs → consume-DbQgH4p2.cjs} +2 -2
- package/dist/cjs/custom-map-BNkNKDPg.cjs +97 -0
- package/dist/cjs/{floor-selector-_ZGeTisd.cjs → floor-selector-BnDHhgRH.cjs} +2 -2
- package/dist/cjs/{lazy-load-C0UlvHkw.cjs → lazy-load-D1GQGqJ4.cjs} +2 -2
- package/dist/cjs/map-view-with-modal.cjs +1 -1
- package/dist/cjs/{qr-modal-dwEr6sDk.cjs → qr-modal-DqYNHVOp.cjs} +2 -2
- package/dist/cjs/{route-options-5hZvnUEf.cjs → route-options-DlRssN7i.cjs} +2 -2
- package/dist/cjs/route-view-totems.cjs +1 -1
- package/dist/components/custom-map.d.ts +13 -0
- package/dist/components/custom-map.js +64 -0
- package/dist/components/floor-selector.d.ts +6 -0
- package/dist/components/floor-selector.js +40 -0
- package/dist/components/qr-modal.d.ts +7 -0
- package/dist/components/qr-modal.js +69 -0
- package/dist/components/route-options.d.ts +6 -0
- package/dist/components/route-options.js +51 -0
- package/dist/components/zoom-controls.d.ts +6 -0
- package/dist/components/zoom-controls.js +40 -0
- package/dist/es/assets/{compact-floor-selector-oq3Ovsm1.js → compact-floor-selector-COkSgy5C.js} +3 -3
- package/dist/es/assets/{components-BT9NDTry.js → components-Hs2pRrmU.js} +9 -6
- package/dist/es/assets/{map-view-with-modal-DiR8q30Q.js → map-view-with-modal-dYGc6zQN.js} +3 -3
- package/dist/es/assets/{route-view-totems-CdM6PRGO.js → route-view-totems-DdSI5H8D.js} +7 -7
- package/dist/es/assets/{utils-DM-AJZn2.js → utils-Fh1PwBJP.js} +11 -30
- package/dist/es/index.js +2 -2
- package/dist/es/route-view-totems.js +2 -2
- package/dist/iife/map-view-with-modal.js +1 -1
- package/dist/iife/route-view-totems.js +1 -1
- package/dist/route-view-totems.d.ts +16 -0
- package/dist/route-view-totems.js +58 -0
- package/dist/utils/styles.d.ts +2 -0
- package/dist/utils/styles.js +5 -0
- package/package.json +1 -1
- package/dist/cjs/custom-map-BT2xrMK_.cjs +0 -97
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SDKController } from './utils-
|
|
1
|
+
import { S as SDKController } from './utils-Fh1PwBJP.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
@@ -184,11 +184,11 @@ class AnalyticsController {
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
const loadCustomMap = () => import('./components-
|
|
188
|
-
const loadFloorSelector = () => import('./components-
|
|
189
|
-
const loadCompactFloorSelector = () => import('./compact-floor-selector-
|
|
190
|
-
const loadQrModal = () => import('./components-
|
|
191
|
-
const loadRouteOptions = () => import('./components-
|
|
187
|
+
const loadCustomMap = () => import('./components-Hs2pRrmU.js').then(n => n.c);
|
|
188
|
+
const loadFloorSelector = () => import('./components-Hs2pRrmU.js').then(n => n.f);
|
|
189
|
+
const loadCompactFloorSelector = () => import('./compact-floor-selector-COkSgy5C.js');
|
|
190
|
+
const loadQrModal = () => import('./components-Hs2pRrmU.js').then(n => n.q);
|
|
191
|
+
const loadRouteOptions = () => import('./components-Hs2pRrmU.js').then(n => n.r);
|
|
192
192
|
const preloadMaplibreCss = async () => {
|
|
193
193
|
try {
|
|
194
194
|
await import('./maplibre-gl-BKzNcqp_.js');
|
|
@@ -466,4 +466,4 @@ RouteViewTotems = __decorateClass([
|
|
|
466
466
|
], RouteViewTotems);
|
|
467
467
|
|
|
468
468
|
export { AnalyticsController as A, RollbarController as R, T, i as a, loadCompactFloorSelector as b, RouteViewTotems as c, i$3 as i, loadCustomMap as l, n, preloadMaplibreCss as p, r$3 as r, t, x };
|
|
469
|
-
//# sourceMappingURL=route-view-totems-
|
|
469
|
+
//# sourceMappingURL=route-view-totems-DdSI5H8D.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i, s as sdkContext } from './components-
|
|
2
|
-
import { R as RollbarController } from './route-view-totems-
|
|
1
|
+
import { i, s as sdkContext } from './components-Hs2pRrmU.js';
|
|
2
|
+
import { R as RollbarController } from './route-view-totems-DdSI5H8D.js';
|
|
3
3
|
|
|
4
4
|
var dist = {exports: {}};
|
|
5
5
|
|
|
@@ -12829,7 +12829,8 @@ class MarkerController {
|
|
|
12829
12829
|
center: coordinates[0],
|
|
12830
12830
|
bearing: this.config?.mapRotations?.[this.parentPlace?.lazarilloId ?? ""]?.angle ?? 0,
|
|
12831
12831
|
pitch: this.config?.pitch ?? 0,
|
|
12832
|
-
zoom:
|
|
12832
|
+
zoom: 20.5,
|
|
12833
|
+
// zoom: this.config?.initialZoom ?? 18,
|
|
12833
12834
|
animate: true
|
|
12834
12835
|
});
|
|
12835
12836
|
}, 200);
|
|
@@ -12846,8 +12847,8 @@ class MarkerController {
|
|
|
12846
12847
|
this.map?.updateCamera({
|
|
12847
12848
|
bearing: this.config?.mapRotations?.[this.parentPlace?.lazarilloId ?? ""]?.angle ?? 0,
|
|
12848
12849
|
pitch: this.config?.pitch ?? 0,
|
|
12849
|
-
|
|
12850
|
-
zoom: Math.min(this.config?.initialZoom ?? 18, this.map?.map.getZoom() ?? 18),
|
|
12850
|
+
zoom: 20.5,
|
|
12851
|
+
// zoom: Math.min(this.config?.initialZoom ?? 18, this.map?.map.getZoom() ?? 18),
|
|
12851
12852
|
animate: true
|
|
12852
12853
|
});
|
|
12853
12854
|
}, 200);
|
|
@@ -12894,30 +12895,10 @@ class RouteAnimationController {
|
|
|
12894
12895
|
if (coordinates.length > 0) {
|
|
12895
12896
|
this.lzMap?.fitCoordinates(coordinates, {
|
|
12896
12897
|
padding: {
|
|
12897
|
-
bottom:
|
|
12898
|
-
left:
|
|
12899
|
-
right:
|
|
12900
|
-
top:
|
|
12901
|
-
}
|
|
12902
|
-
});
|
|
12903
|
-
const routeSteps = [
|
|
12904
|
-
{
|
|
12905
|
-
floorId: this.route?.legs?.at(0)?.steps?.at(0)?.startInsideFloor,
|
|
12906
|
-
coordinates: this.route?.legs?.at(0)?.steps?.at(0)?.startLocation
|
|
12907
|
-
},
|
|
12908
|
-
{
|
|
12909
|
-
floorId: this.route?.legs?.at(-1)?.steps?.at(-1)?.endInsideFloor,
|
|
12910
|
-
coordinates: this.route?.legs?.at(-1)?.steps?.at(-1)?.endLocation
|
|
12911
|
-
}
|
|
12912
|
-
];
|
|
12913
|
-
routeSteps.forEach((step) => {
|
|
12914
|
-
if (floorId === step.floorId && step.coordinates) {
|
|
12915
|
-
this.lzMap?.updateCamera({
|
|
12916
|
-
animate: false,
|
|
12917
|
-
center: step.coordinates,
|
|
12918
|
-
// @ts-expect-error TODO: need sdk to get zoom
|
|
12919
|
-
zoom: Math.min(this.lzMap?.map.getZoom() ?? 18, this.config?.initialZoom ?? 18)
|
|
12920
|
-
});
|
|
12898
|
+
bottom: 200,
|
|
12899
|
+
left: 350,
|
|
12900
|
+
right: 350,
|
|
12901
|
+
top: 200
|
|
12921
12902
|
}
|
|
12922
12903
|
});
|
|
12923
12904
|
}
|
|
@@ -13058,4 +13039,4 @@ class RouteAnimationController {
|
|
|
13058
13039
|
}
|
|
13059
13040
|
|
|
13060
13041
|
export { MarkerController as M, RouteAnimationController as R, SDKController as S };
|
|
13061
|
-
//# sourceMappingURL=utils-
|
|
13042
|
+
//# sourceMappingURL=utils-Fh1PwBJP.js.map
|
package/dist/es/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as RouteViewTotems } from './assets/route-view-totems-
|
|
2
|
-
export { M as MapViewWithModal } from './assets/map-view-with-modal-
|
|
1
|
+
export { c as RouteViewTotems } from './assets/route-view-totems-DdSI5H8D.js';
|
|
2
|
+
export { M as MapViewWithModal } from './assets/map-view-with-modal-dYGc6zQN.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as RouteViewTotems } from './assets/route-view-totems-
|
|
2
|
-
import './assets/utils-
|
|
1
|
+
export { c as RouteViewTotems } from './assets/route-view-totems-DdSI5H8D.js';
|
|
2
|
+
import './assets/utils-Fh1PwBJP.js';
|
|
3
3
|
//# sourceMappingURL=route-view-totems.js.map
|