You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
@incanus yep, that's it. Useful when you need to smoothly animate the view to some place no matter how far it is. E.g. it was used actively in the auto demo, and Mapbox party demo where it cycled between different places around the world. It can also rotate during animation.
We should emulate mapbox/mapbox-gl-js#1215 here for all the methods related to map view options. It would be nice if C++14 supported C99's designated initializers. In lieu of that we'll probably want to support a chaining syntax:
How about a struct (call it Viewport or somesuch) that specifies center, zoom, and bearing (and someday pitch)? It would be analogous to the MGLCoordinateRegion or MGLMapCamera that we’ll need to address #1092 and #1643.
It would be nice if C++14 supported C99's designated initializers.
Ah, using a struct would be less convenient in the absence of designated initializers or compound literals. clang++ supports both in C++14, but we’ve enabled pedantic warnings as errors, forbidding their use in this codebase.
A struct what I was implicitly going for with ViewOptions -- the question is what syntax is most convenient for setting some, but not all, of its members, where the unspecified members use the current map values.
Piggybacking off of @adam-mapbox's work in this branch in c788cea and some chat discussion, we might look into temporarily disabling compression in our SQLite caching backend to see if it helps with drawing after jumps. Profiling would probably be in order too, just to see what is the bottleneck (if possible).
Per some chat discussion, we could also look into loading 1/4 as many parent tiles or even 1/16 as many grandparent tiles for the destination as a way to quickly warm the cache so that something could be drawn closer to as soon as we land.
Activity
incanus commentedon May 27, 2014
Can you give an example of this? Is this where it zooms way high, then back down to earth?
mourner commentedon May 27, 2014
@incanus yep, that's it. Useful when you need to smoothly animate the view to some place no matter how far it is. E.g. it was used actively in the auto demo, and Mapbox party demo where it cycled between different places around the world. It can also rotate during animation.
[-]zoomPanTo equivalent[/-][+]flyTo equivalent[/+]jfirebaugh commentedon May 26, 2015
We should emulate mapbox/mapbox-gl-js#1215 here for all the methods related to map view options. It would be nice if C++14 supported C99's designated initializers. In lieu of that we'll probably want to support a chaining syntax:
1ec5 commentedon May 26, 2015
How about a struct (call it
Viewportor somesuch) that specifies center, zoom, and bearing (and someday pitch)? It would be analogous to theMGLCoordinateRegionorMGLMapCamerathat we’ll need to address #1092 and #1643.1ec5 commentedon May 26, 2015
Ah, using a struct would be less convenient in the absence of designated initializers or compound literals. clang++ supports both in C++14, but we’ve enabled pedantic warnings as errors, forbidding their use in this codebase.
jfirebaugh commentedon May 26, 2015
A struct what I was implicitly going for with
ViewOptions-- the question is what syntax is most convenient for setting some, but not all, of its members, where the unspecified members use the current map values.incanus commentedon Aug 28, 2015
Camera API is close to landing: #2193
1ec5 commentedon Sep 7, 2015
flyTostill needs to be implemented.jumpTois implemented though.incanus commentedon Sep 7, 2015
Whoops, good catch.
First pass at porting flyTo()
incanus commentedon Dec 2, 2015
Piggybacking off of @adam-mapbox's work in this branch in c788cea and some chat discussion, we might look into temporarily disabling compression in our SQLite caching backend to see if it helps with drawing after jumps. Profiling would probably be in order too, just to see what is the bottleneck (if possible).
incanus commentedon Dec 2, 2015
That'd be around here and here.
incanus commentedon Dec 2, 2015
Per some chat discussion, we could also look into loading 1/4 as many parent tiles or even 1/16 as many grandparent tiles for the destination as a way to quickly warm the cache so that something could be drawn closer to as soon as we land.
jfirebaugh commentedon Dec 15, 2015
#3171
[qt] Build with WebAssembly (mapbox#256)