Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the rectangles of the large image appear on the navigation map synchronously #2520

Open
Whao510 opened this issue Apr 28, 2024 · 5 comments
Labels

Comments

@Whao510
Copy link

Whao510 commented Apr 28, 2024

13

@Whao510 Whao510 changed the title showNavigator is set to true, the large image is not displayed, only the Navigator image is displayed? openseadragon uses version 4.1.1 How to make the rectangles of the large image appear on the navigation map synchronously Apr 28, 2024
@pearcetm
Copy link
Contributor

I'm not sure what you're asking here. Is the purple rectangle an annotation of some kind? Are you wanting the annotation to also be visible in the navigator?

@Whao510
Copy link
Author

Whao510 commented Apr 29, 2024

I'm not sure what you're asking here. Is the purple rectangle an annotation of some kind? Are you wanting the annotation to also be visible in the navigator?

Thank you for your quick reply. Yes, that's what I meant

@iangilman
Copy link
Member

@Whao510 Ah, good... I see you've filed this here (after emailing me).

Are you creating the purple rectangle as an overlay? If so, you can add it to the navigator. The navigator is actually a second viewer, so you can add an overlay to it using viewer.navigator.addOverlay.

@Whao510
Copy link
Author

Whao510 commented May 6, 2024

@iangilman
this.anno.addAnnotation({
"@context": "http://www.w3.org/ns/anno.jsonld",
type: "Annotation",
body: [
{
type: "TextualBody",
value: "1",
purpose: "commenting",
},
],
target: {
source: "http://127.0.0.1:5500/",
selector: {
type: "FragmentSelector",
conformsTo: "http://www.w3.org/TR/media-frags/",
value: "xywh=pixel:46946.08984375,26356.234375,10099,7818.765625",
},
},
id: "#111cabe2e71-b19f-4499-80c6-235882fd50ba",
});
overlay is done through the plugin @recogito/annotorious-openseadragon, I don't know if it applies to the navigator

@iangilman
Copy link
Member

Interesting! You might try doing this:

var navAnno = OpenSeadragon.Annotorious(viewer.navigator);

...And then adding the same annotation to navAnno.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants