question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello all,

I’m working on a project right now for a museum and I’m new to OSD. There is an interactive that uses OpenSeaDragon to zoom in on a very detailed map of the Belgium and the Netherlands in the 1600s. You can view it here: http://web.stanford.edu/~cmalex/woel. I need to add an overlay on top of this map that shows the exact borders of the Dutch Republic )basically a line). Is there a way to add an overlay that uses a .dzi image? If so, where do I add it? Is this the best way to go?

I currently have an image overlaying (not the one I will use in the end) added as a CSS background image. This is the code I currently have set up for OSD:

<script type="text/javascript">
    var viewer = OpenSeadragon({
        id: "openseadragon",
        prefixUrl: "scripts/images/",
        tileSources: 
        	"openseadragon/map.dzi",
        overlays: [{
            id: 'overlay',
            x: 0.20, 
            y: 0.50, 
            width: 0.2, 
            height: 0.25,
            className: 'highlight'
        }],
		zoomInButton: 'zoom_in',
        zoomOutButton: 'zoom_out',
        homeButton: 'reset',
		showNavigator:  true,
        navigatorPosition: "ABSOLUTE",
        navigatorTop:      "10px",
        navigatorLeft:     "10px",
        navigatorHeight:   "145px",
        navigatorWidth:    "125px",
   	 	visibilityRatio: 1.0,
    	constrainDuringPan: true
    });
</script>

Any help would be greatly appreciated!

Chris

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
iangilmancommented, Nov 3, 2016

Sounds good… I assume it’s something you want to be able to turn on and off? Otherwise you could just bake it into your original DZI.

For information about adding the second image, check out:

http://openseadragon.github.io/examples/multi-image/

0reactions
iangilmancommented, Nov 7, 2016

Excellent, glad you got it sorted out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

73 Mobile Help Overlays ideas - Pinterest
Mobile Help Overlays. In app help to guide you through getting to know it. The ultimate performance support, you're not removed from the...
Read more >
Creating Multi-Step Help Overlay Screens - datavis.blog
Help overlay screens can help orient your dashboard consumers; providing context, instructions and the intended flow of analysis.
Read more >
Create a help overlay using layers | Interactions
Learn how to create a basic help overlay for a dashboard. A help overlay is information about a dashboard that is displayed when...
Read more >
How to Create Website Overlay Tutorials in 3 Steps
A website overlay tutorial or a tutorial overlay is a UX element or a flow of UX elements that are designed to help...
Read more >
Help Overlays - Dribbble
Help Overlays. Inspirational designs, illustrations, and graphic elements from the world's best designers. Want more inspiration? Browse our search results.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found