Leaflet.Photo
Leaflet.Photo copied to clipboard
feature request: functions to retrieve previous/next photo
I'd like to bind left/right arrow key presses to functions which move to previous/next photos on a map. Currently, browsing through all the photos on a map is a little tedious (requires a lot of clicking; close current photos, re-expand cluster group, pick next photo, etc).
The biggest challenge seems to be figuring out which photo is the correct previous or next photo from the currently-displayed popup. If you can suggest a way you'd approach this problem, I'm willing to try creating something. Do you think this can be implemented in one way for maps with and without markercluster, or will these require separate implementations?
I see that L.layerGroup
has a getLayer function, which seems like it would be useful, but it's not clear what kinds of id
values it's expecting or how those are generated.
I agree that feature can be a real + ;)
@turban Any ideas on how you'd approach this?