@mappedin/viewer 0.5.1-57d6044.0 → 0.5.1-cd5be8d.0
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/index.js
CHANGED
|
@@ -64265,33 +64265,33 @@ class bHe {
|
|
|
64265
64265
|
return this.rootStore.departureMode === Pi.DROPPED_PIN && this.rootStore.departure == null || this.directions.directions != null ? Yp.CAMERA_ONLY : Yp.DEFAULT;
|
|
64266
64266
|
}
|
|
64267
64267
|
async init(e) {
|
|
64268
|
-
var
|
|
64268
|
+
var h;
|
|
64269
64269
|
this.container = e;
|
|
64270
|
-
const { aoQuality: n, aoResolution: r } = this.getAOSettings(), i = this.rootStore.uiStore.theme.map.streetMapVisible &&
|
|
64270
|
+
const { aoQuality: n, aoResolution: r } = this.getAOSettings(), i = this.rootStore.__startupOptions.outdoorMapsKey ?? "f8fd42d9e1c2751f", o = !!(this.rootStore.uiStore.theme.map.streetMapVisible && i != null), a = {
|
|
64271
64271
|
aoEnabled: !0,
|
|
64272
64272
|
antialias: !0,
|
|
64273
64273
|
aoQuality: n,
|
|
64274
64274
|
aoResolution: r,
|
|
64275
64275
|
multiBufferRendering: !0,
|
|
64276
64276
|
outdoorView: {
|
|
64277
|
-
enabled:
|
|
64277
|
+
enabled: o,
|
|
64278
64278
|
headers: {
|
|
64279
|
-
"x-mappedin-tiles-key":
|
|
64279
|
+
"x-mappedin-tiles-key": i
|
|
64280
64280
|
}
|
|
64281
64281
|
},
|
|
64282
|
-
firstMap: (
|
|
64282
|
+
firstMap: (h = this.rootStore.currentMap) == null ? void 0 : h.id
|
|
64283
64283
|
};
|
|
64284
64284
|
this.rootStore.uiStore.theme.map.watermarkVisible && p9e({
|
|
64285
64285
|
position: this.rootStore.uiStore.logoPosition,
|
|
64286
64286
|
padding: this.rootStore.isAppEmbedded ? 16 : 20,
|
|
64287
64287
|
scale: this.rootStore.isAppEmbedded ? 1.5 : 1
|
|
64288
64288
|
});
|
|
64289
|
-
const
|
|
64290
|
-
|
|
64289
|
+
const s = await c9e(e, this.rootStore.data, a);
|
|
64290
|
+
s.Camera.minZoom = this.rootStore.uiStore.theme.map.minZoom, s.Camera.set({
|
|
64291
64291
|
tilt: this.rootStore.uiStore.theme.map.initialTilt,
|
|
64292
64292
|
rotation: this.rootStore.uiStore.theme.map.initialRotation
|
|
64293
|
-
}),
|
|
64294
|
-
this.mapView =
|
|
64293
|
+
}), s.setHoverColor(this.rootStore.uiStore.theme.colors.map.hover), s.setBackgroundColor(this.rootStore.uiStore.theme.colors.map.background), s.on(Ru.CLICK, this.handleMapClick), YW(() => {
|
|
64294
|
+
this.mapView = s;
|
|
64295
64295
|
});
|
|
64296
64296
|
}
|
|
64297
64297
|
handleMapClick({ polygons: e }) {
|
|
@@ -67248,7 +67248,7 @@ class Fre {
|
|
|
67248
67248
|
*/
|
|
67249
67249
|
pn(this, "routerStore");
|
|
67250
67250
|
pn(this, "data");
|
|
67251
|
-
pn(this, "
|
|
67251
|
+
pn(this, "__startupOptions");
|
|
67252
67252
|
/**
|
|
67253
67253
|
* This is only populated if the viewer is hydrated with local data (i.e. in Maker's preview).
|
|
67254
67254
|
*/
|
|
@@ -67258,11 +67258,11 @@ class Fre {
|
|
|
67258
67258
|
pn(this, "analyticsStore");
|
|
67259
67259
|
pn(this, "departureMode", Pi.NEAREST_ENTRANCE);
|
|
67260
67260
|
pn(this, "isAppMobile", !1);
|
|
67261
|
-
if (this.
|
|
67261
|
+
if (this.__startupOptions = r, this.data = n, this.routerStore = e, m3(
|
|
67262
67262
|
this,
|
|
67263
67263
|
{ data: Ea.ref, reactionDisposers: !1 },
|
|
67264
67264
|
{ autoBind: !0 }
|
|
67265
|
-
), this.departureMode = this.getInitialDepartureMode(), this.uiStore = new G$e({ rootStore: this }), this.mapStore = new bHe({ rootStore: this }), this.analyticsStore = new JWe({ rootStore: this }), this.
|
|
67265
|
+
), this.departureMode = this.getInitialDepartureMode(), this.uiStore = new G$e({ rootStore: this }), this.mapStore = new bHe({ rootStore: this }), this.analyticsStore = new JWe({ rootStore: this }), this.__startupOptions.disableAnalytics || this.analyticsStore.init(), this.reactionDisposers.push(f0(() => this.selectedLocation, this.syncCurrentMap)), this.reactionDisposers.push(
|
|
67266
67266
|
f0(() => this.departureMode, this.syncDeparture, {
|
|
67267
67267
|
fireImmediately: !0
|
|
67268
67268
|
})
|
|
@@ -18,7 +18,7 @@ declare class RootStore {
|
|
|
18
18
|
*/
|
|
19
19
|
private routerStore;
|
|
20
20
|
readonly data: Mappedin;
|
|
21
|
-
|
|
21
|
+
__startupOptions: TStartViewerOptions | TStartViewerWithLocalDataOptions;
|
|
22
22
|
/**
|
|
23
23
|
* This is only populated if the viewer is hydrated with local data (i.e. in Maker's preview).
|
|
24
24
|
*/
|