Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

flyTo equivalent #256

Closed
Closed

Description

@mourner

It would be nice to port ballistic zoom-pan from llmr, as it is usually very useful in demos. I might look into it.

Activity

  1. incanus commented on May 27, 2014

    @incanus
    Contributor

    Can you give an example of this? Is this where it zooms way high, then back down to earth?

  2. mourner commented on May 27, 2014

    @mourner
    MemberAuthor

    @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.

  3. changed the title [-]zoomPanTo equivalent[/-] [+]flyTo equivalent[/+] on May 26, 2015
  4. jfirebaugh commented on May 26, 2015

    @jfirebaugh
    Contributor

    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:

    map.jumpTo(mbgl::ViewOptions().center({lat, lng}).zoom(4.2).bearing(45));
    
  5. added
    GL JS parity
    on May 26, 2015
  6. 1ec5 commented on May 26, 2015

    @1ec5
    Contributor

    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.

  7. 1ec5 commented on May 26, 2015

    @1ec5
    Contributor

    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.

  8. jfirebaugh commented on May 26, 2015

    @jfirebaugh
    Contributor

    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.

  9. incanus commented on Aug 28, 2015

    @incanus
    Contributor

    Camera API is close to landing: #2193

  10. reopened this on Sep 7, 2015
  11. 1ec5 commented on Sep 7, 2015

    @1ec5
    Contributor

    flyTo still needs to be implemented. jumpTo is implemented though.

  12. incanus commented on Sep 7, 2015

    @incanus
    Contributor

    Whoops, good catch.

  13. added a commit that references this issue on Sep 14, 2015
    0ab2f21
  14. incanus commented on Dec 2, 2015

    @incanus
    Contributor

    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).

  15. incanus commented on Dec 2, 2015

    @incanus
    Contributor

    That'd be around here and here.

  16. incanus commented on Dec 2, 2015

    @incanus
    Contributor

    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.

  17. jfirebaugh commented on Dec 15, 2015

    @jfirebaugh
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GL JS parityfeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions