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

Scrolling across IDL when bounds crosses IDL #51

Closed
tobrun opened this issue Jan 28, 2021 · 0 comments
Closed

Scrolling across IDL when bounds crosses IDL #51

tobrun opened this issue Jan 28, 2021 · 0 comments
Labels
bug 🪲 Something isn't working 🛑 blocked

Comments

@tobrun
Copy link
Member

tobrun commented Jan 28, 2021

Given:

    private val CROSS_IDL_BOUNDS: BoundOptions = BoundOptions.Builder()
      .bounds(
        CoordinateBounds(
          Point.fromLngLat(170.0202020, -20.0),
          Point.fromLngLat(190.0, 20.0)
        )
      )
      .minZoom(2.0)
      .build()

and calling Map#setBounds(CROSS_IDL_BOUNDS)

I'm unable to use this bounds correctly, when I pan across IDL. It jumps back.

ezgif com-video-to-gif(13)

The source of the issue stems from the new platform driven camera system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working 🛑 blocked
Projects
None yet
Development

No branches or pull requests

1 participant