tangrams / tangram-es

2D and 3D map renderer using OpenGL ES
MIT License
821 stars 238 forks source link

zoom eased #1047

Closed ivangorelow closed 7 years ago

ivangorelow commented 7 years ago

I'd like to create such animayion: 1) make small zoom (for example 12) 2)change position 3) set bigger zoom (for example 18)

Is it possible?

matteblair commented 7 years ago

Yes. The functions for setting and easing position and zoom are defined here for the C++ interface and here for the Android interface.

ivangorelow commented 7 years ago

I know about this function, but I'd like to make it step by step. Nowadays if I make zoom(12) and after make zoom(16) map will have effect only for last function

rwrx commented 7 years ago

I know what do you mean. I am missing such functionality in Tangram-ES too. For example in Google Maps Android API this could be done by callbacks in camera animation functions.

matteblair commented 7 years ago

Ah, I misunderstood the question. What you want here is sometimes called "choreography", let's call it that for convenience. We don't have built-in functionality for camera choreography the way that the Google Maps API does, you would have to write additional code to manage that yourself. I've added an issue that describes this feature, where we'll track any decisions or progress on the feature: https://github.com/tangrams/tangram-es/issues/1050