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

Scalable overlay text #1726

Closed
742617000027 opened this issue Oct 26, 2019 · 3 comments
Closed

Scalable overlay text #1726

742617000027 opened this issue Oct 26, 2019 · 3 comments
Labels

Comments

@742617000027
Copy link

Hey, first of all, thanks for this awesome library! I'm using OSD to create a visual representation of the board state of an SciFi MMO game usually exclusively played through spreadsheets.¹ Right now, for the planet names (displayed at the bottom of the grey circles representing planets), I'm using .png files as overlays. Since I'm planning to make the whole thing more dynamic, what I would like to do is replace those .png files with actual HTML text. Unfortunately, I can't seem to figure out how to create text overlays with OSD that scale according to the zoom level of the map. Have I just missed a simple solution? Help would be greatly appreciated, and thanks in advance!

¹ It's based on the Faction Turn of the Stars Without Number RPG, you can check the whole thing out here if you're interested.

@iangilman
Copy link
Member

Wow, that's cool use for OpenSeadragon! Do you mind if we add it to our examples page?

http://openseadragon.github.io/examples/in-the-wild/

Probably the easiest way to add scalable overlay text is with the SVG overlay plugin:

https://github.com/openseadragon/svg-overlay

You can see an example of it in action here (click on one of the photos):

https://iangilman.com/openseadragon/flickr/

@742617000027
Copy link
Author

Awesome, thanks for the quick reply, will check out SVG overlays! And by all means, I'd be flattered if you added my project to the examples page! Just don't look too closely at the messy code 😄

@iangilman
Copy link
Member

Awesome. I've added it to the issue for "In the Wild":

openseadragon/site-build#200

It may take a while before someone gets around to actually adding it. You're welcome to do so if you'd like; just make a PR against:

https://github.com/openseadragon/site-build/blob/master/www/in-the-wild.html

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

2 participants