Displaying a popup when clicking an overlay?

  • 2
  • Question
  • Updated 10 years ago
  • Answered
Hi all,
I am starting playing with seadragon (ajax version) and so far I am impressed by the nice animations, tiling, etc
For a project I am comparing the use of seadragon against a custom google map: one feature I feel missing on seadragon is the "clickable markers + popups" feature of google maps (i.e. the marker.openInfoWindowHtml(......) machinery):

do you have any example/hint? should I play with overlays?
thank you!!!!!
Photo of black kitten

black kitten

  • 3 Posts
  • 0 Reply Likes
  • confident

Posted 10 years ago

  • 2
Photo of black kitten

black kitten

  • 3 Posts
  • 0 Reply Likes
(up!)
Photo of Aseem Kishore

Aseem Kishore, Former Employee

  • 702 Posts
  • 124 Reply Likes
Sorry for the delay in responding! We've all just been super busy.
Photo of Aseem Kishore

Aseem Kishore, Former Employee

  • 702 Posts
  • 124 Reply Likes
Yes, that was definitely a source for inspiration for us adding overlays into the core Seadragon Ajax! (As opposed to relegating them to be application code outside Seadragon Ajax.)

We didn't want to get carried away though and make a full-fledged framework for overlays, so we didn't do anything specific like info bubbles. Instead, our overlay support is general, which makes it pretty flexible I think that you can implement stuff like bubbles on top of it pretty easily.

I don't have any hints exactly, but yes, play with overlays and hopefully they can get you close enough. Let us know if you make any progress and how it turns out. =) Good luck!
Photo of black kitten

black kitten

  • 3 Posts
  • 0 Reply Likes
Hi,
thank you for the reply: since I need a "info bubble" like interface what would you suggest:
1) should I try with the seadragon overlays or....
2) ... try to hook something like jquery to the "mouse click" events?

regards!
bk
Photo of Aseem Kishore

Aseem Kishore, Former Employee

  • 702 Posts
  • 124 Reply Likes
Sorry for the delay in responding, bk. I think you need to do both -- listen for a mouse click event, and on that event, add (or un-hide) a Seadragon overlay. Not sure if you were asking something different, but hope this helps!