Lightbox in marker popup

297 views
Skip to first unread message

firebwoy

unread,
Sep 6, 2013, 12:05:28 PM9/6/13
to leafl...@googlegroups.com
Can i use lightbox in open marker popup? And how i have to implement it to work? I'd tried but it didn't work.

Lindsay Cunningham

unread,
Sep 24, 2013, 8:18:01 AM9/24/13
to leafl...@googlegroups.com
This is really easy to do. First, you need to find, and get working, your lightbox library of choice. Once you have that work and you know how to access directly from the Javascript (ie, you know how to open the lightbox window from the JS code and you are not relying on JS listening to the onclick of certain classes) you just need to add that to a mouse event of the marker on creation by using 'e.target.options.title' to identify which is which and bam!

If you are not using an array for your markers, then you should do that.
Reply all
Reply to author
Forward
0 new messages