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

feature request: functions to retrieve previous/next photo #1

Open
alexdean opened this issue Dec 31, 2014 · 2 comments
Open

feature request: functions to retrieve previous/next photo #1

alexdean opened this issue Dec 31, 2014 · 2 comments

Comments

@alexdean
Copy link

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.

@LeOSW42
Copy link

LeOSW42 commented Jan 27, 2015

I agree that feature can be a real + ;)

@alexdean
Copy link
Author

@turban Any ideas on how you'd approach this?

iRGBit pushed a commit to iRGBit/Leaflet.Photo that referenced this issue Apr 26, 2017
iRGBit pushed a commit to iRGBit/Leaflet.Photo that referenced this issue Apr 26, 2017
Update index.html Removal of MapQuest for OpenStreetMap in examples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants