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

Smooth transition when zooming #158

Closed
Hywan opened this issue Jun 8, 2015 · 8 comments
Closed

Smooth transition when zooming #158

Hywan opened this issue Jun 8, 2015 · 8 comments

Comments

@Hywan
Copy link

Hywan commented Jun 8, 2015

Hello :-),

Thanks for this great piece of code!
Nevertheless, is it possible to avoid to “repaint” the whole map when we zoom and have a smooth transition between 2 zoom levels instead? Like Mapbox GL does for instance.

Thanks :-).

@bcamper
Copy link
Member

bcamper commented Jun 9, 2015

Hi - I would like to do this as well, but it requires a little more research. There are two versions of Leaflet the library is compatible with:

  • 0.7.x (current prod release): I'm not sure it's possible to implement smooth zoom for Tangram with this version, because Leaflet uses CSS transitions to zoom the map elements, but this cannot be applied to a WebGL context. Since this version also does not support fractional zoom levels, I'm not sure what to do here.
  • 1.x (unreleased, next major release): The next version of Leaflet (used by the demo bundled with this repo) supports fractional zoom. It may still use CSS transitions for regular zooms (can't remember, need to check), but it also has new functions like map.flyTo() that allow you to animate smoothly across a range of zoom levels. As Leaflet 1.x becomes an official release, we will likely revisit this issue.

Thanks for your interest and let us know if you have any more questions!

@bcamper bcamper closed this as completed Jun 9, 2015
@Hywan
Copy link
Author

Hywan commented Jun 9, 2015

Anyway to be kept informed (maybe Twitter or if I watch this repository)?

@Hywan
Copy link
Author

Hywan commented Jun 9, 2015

(forget to say thank you for the answer!)

@bcamper
Copy link
Member

bcamper commented Jun 9, 2015

Certainly, I recommend watching this repository, and we also have a new twitter account at http://twitter.com/tangramjs, where we will post about new releases.

@Hywan
Copy link
Author

Hywan commented Jun 9, 2015

Do you have a list of “entry contributions”?

@Hywan
Copy link
Author

Hywan commented Nov 20, 2015

@bcamper Any good news :-)?

@meetar
Copy link
Member

meetar commented Nov 20, 2015

@Hywan Hi Evan – Thanks for your continued interest! We still plan to implement this in the future, but we don't have a deadline for it… we'll be sure to mention it in the release notes when we do.

And we don't have a list of “entry contributions”, although that's a good idea!

@Hywan
Copy link
Author

Hywan commented Nov 20, 2015

@meetar Thanks!

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

3 participants