@panoramax/web-viewer 3.2.3-develop-efc61aeb → 3.2.3-develop-587a6b56
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/package.json
CHANGED
|
@@ -60,8 +60,8 @@ export default class Basic extends LitElement {
|
|
|
60
60
|
this.mapstyle = this.getAttribute("mapstyle") || DEFAULT_TILES;
|
|
61
61
|
this.lang = this.getAttribute("lang") || null;
|
|
62
62
|
this.endpoint = this.getAttribute("endpoint") || null; // No default
|
|
63
|
-
this.picture = null;
|
|
64
|
-
this.sequence = null;
|
|
63
|
+
this.picture = this.getAttribute("picture") || null;
|
|
64
|
+
this.sequence = this.getAttribute("sequence") || null;
|
|
65
65
|
|
|
66
66
|
// Display version in logs
|
|
67
67
|
console.info(`📷 Panoramax ${this.getClassName()} - Version ${PACKAGE_JSON.version} (${__COMMIT_HASH__})
|
|
@@ -358,7 +358,7 @@ export function alterPhotoViewerState(viewer, params) {
|
|
|
358
358
|
console.warn("Multiple picture IDs passed in URL, only first one kept");
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
viewer.select(null, picIds[0]);
|
|
361
|
+
viewer.select(null, picIds[0], true);
|
|
362
362
|
}
|
|
363
363
|
else {
|
|
364
364
|
viewer.select();
|
|
@@ -451,7 +451,7 @@ describe("alterViewerState", () => {
|
|
|
451
451
|
it("should select the first picture ID when picture param is provided", () => {
|
|
452
452
|
const params = { picture: "pic1;pic2" };
|
|
453
453
|
alterViewerState(viewer, params);
|
|
454
|
-
expect(viewer.select).toHaveBeenCalledWith(null, "pic1");
|
|
454
|
+
expect(viewer.select).toHaveBeenCalledWith(null, "pic1", true);
|
|
455
455
|
expect(console.warn).toHaveBeenCalledWith("Multiple picture IDs passed in URL, only first one kept");
|
|
456
456
|
});
|
|
457
457
|
|
|
@@ -492,7 +492,7 @@ describe("alterViewerState", () => {
|
|
|
492
492
|
const params = { picture: "pic1", focus: "map", forceFocus: true };
|
|
493
493
|
viewer.map = {};
|
|
494
494
|
alterViewerState(viewer, params);
|
|
495
|
-
expect(viewer.select).toHaveBeenCalledWith(null, "pic1");
|
|
495
|
+
expect(viewer.select).toHaveBeenCalledWith(null, "pic1", true);
|
|
496
496
|
expect(viewer.setPopup).toHaveBeenCalledWith(false);
|
|
497
497
|
expect(viewer._setFocus).toHaveBeenCalledWith("map", null, true);
|
|
498
498
|
});
|