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

Support more granularity in zoom levels #1309

Closed
wants to merge 1 commit into from

Conversation

lapo-luchini
Copy link

Support more granularity in zoom levels (e.g. zoomStep=0.5) that can be used, with providers that produce those levels, to have smaller changes in zoom level after a pinch operation, or a better fit with fit-to-bounds operations.

…be used, with providers that produce those levels, to have smaller changes in zoom level after a pinch operation, or a better fit with fit-to-bounds.
@mourner
Copy link
Member

mourner commented Jan 24, 2013

Wow, does this change really make fractional zoom work on touch devices? I'll check it out, interesting stuff!

@nator
Copy link

nator commented Jan 31, 2013

I've taken a crack at this another way with a jsfiddle in the thread here: https://groups.google.com/forum/#!topic/leaflet-js/L4WRlqbvlzU

Feedback / improvements welcome.

@danzel
Copy link
Member

danzel commented Jan 31, 2013

See #1066 for some details on the firefox grid issue.

@rassie
Copy link
Contributor

rassie commented Feb 11, 2013

This patch is a great start, especially for pure GeoJSON maps, but by no means enough. I have extended it for my project:

  1. Extended zoomIn and zoomOut functions in L.Map to use zoomStep
  2. Extended _zoomIn and _zoomOut in L.Control.Zoom

There is probably more stuff I missed, but this allowed mouse zooming and zooming with + and - to work. If you are interested in my patch, I can put up a separate pull request.

@ghost ghost assigned mourner Apr 20, 2013
@kcivey
Copy link

kcivey commented May 16, 2013

Have there been any more developments on fractional zoom, especially for tile layers, implemented by resizing the tiles in CSS? Something like it is used for the zoom animations, but you can't stop at a fractional level. Is it just not practical in current browsers? I'm sure it's hairier than one might initially imagine, but I was thinking of taking a stab at it.

@fly2279
Copy link

fly2279 commented Jun 4, 2013

I would really like to use fractional zooming with leaflet. OpenLayers and Polymaps don't have a complete set of features like leaflet does. I would be willing to pay for someone to develop a plugin for fraction zooming.

@kanotson
Copy link

I'd also like this to be made. I'm using Leaflet for image viewing, and I'd love to have the possibility to emulate the Rijskmuseum (they use Leaflet, but a very modified one, it seems?).
I need to fill the container with the image at load (cropping it if is of another proportion), but also being able to see the whole picture after zoomin out.
Nator's code is the closest to this that I've found, but lacks the filling container option.

@mourner
Copy link
Member

mourner commented Jan 15, 2014

Closing in favor of #2382

@lapo-luchini
Copy link
Author

Change merged from #2382 is much more comprehensive, but it lacks the ability to support tile layers with support for fractional zoom.
I'll try and do a new PR for that.

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

Successfully merging this pull request may close these issues.

8 participants